Wed Jan 8 2020 09:50:23

Asterisk developer's documentation


agent_pvt Struct Reference

Structure representing an agent. More...

Data Fields

int abouttograb
 
char acceptdtmf
 
int ackcall
 
int acknowledged
 
char agent [AST_MAX_AGENT]
 
ast_cond_t app_complete_cond
 
int app_lock_flag
 
int app_sleep_cond
 
int autologoff
 
struct ast_channelchan
 
int dead
 
int deferlogoff
 
char enddtmf
 
unsigned int flags
 
ast_group_t group
 
struct timeval lastdisc
 
struct {
   struct agent_pvt *   next
 
list
 
ast_mutex_t lock
 
ast_cond_t login_wait_cond
 
time_t loginstart
 
char moh [80]
 
char name [AST_MAX_AGENT]
 
struct ast_channelowner
 
char password [AST_MAX_AGENT]
 
int pending
 
time_t start
 
int wrapuptime
 

Detailed Description

Structure representing an agent.

Definition at line 252 of file chan_agent.c.

Field Documentation

int abouttograb

About to grab

Definition at line 256 of file chan_agent.c.

Referenced by agent_hangup(), check_availability(), and check_beep().

char acceptdtmf

Definition at line 260 of file chan_agent.c.

Referenced by add_agent(), agent_ack_sleep(), agent_read(), and login_exec().

int ackcall

ackcall

Definition at line 258 of file chan_agent.c.

Referenced by add_agent(), agent_call(), agent_read(), check_availability(), and login_exec().

int acknowledged

Acknowledged

Definition at line 267 of file chan_agent.c.

Referenced by agent_call(), agent_hangup(), agent_read(), check_availability(), and login_exec().

ast_cond_t app_complete_cond

Definition at line 273 of file chan_agent.c.

Referenced by add_agent(), agent_cleanup(), agent_hangup(), agent_pvt_destroy(), and login_exec().

int app_lock_flag

Definition at line 272 of file chan_agent.c.

Referenced by add_agent(), agent_cleanup(), agent_hangup(), agent_request(), and login_exec().

int app_sleep_cond

Non-zero if the login app should sleep.

Definition at line 275 of file chan_agent.c.

Referenced by add_agent(), agent_ack_sleep(), agent_cleanup(), agent_cont_sleep(), agent_hangup(), and agent_request().

int autologoff

Auto timeout time

Definition at line 257 of file chan_agent.c.

Referenced by add_agent(), agent_read(), and login_exec().

int dead

Poised for destruction?

Definition at line 254 of file chan_agent.c.

Referenced by add_agent(), agent_cleanup(), agent_hangup(), login_exec(), and read_agent_config().

int deferlogoff

Defer logoff to hangup

Definition at line 259 of file chan_agent.c.

Referenced by agent_devicestate(), agent_logoff(), and login_exec().

char enddtmf

Definition at line 261 of file chan_agent.c.

Referenced by add_agent(), agent_read(), and login_exec().

unsigned int flags

Flags show if settings were applied with channel vars

Definition at line 278 of file chan_agent.c.

Group memberships

Definition at line 266 of file chan_agent.c.

Referenced by add_agent(), agent_request(), agents_show(), check_availability(), and check_beep().

struct timeval lastdisc

When last disconnected

Definition at line 264 of file chan_agent.c.

Referenced by add_agent(), agent_ack_sleep(), agent_cont_sleep(), agent_devicestate(), agent_hangup(), agent_request(), and login_exec().

struct { ... } list

Next Agent in the linked list.

ast_cond_t login_wait_cond

Definition at line 274 of file chan_agent.c.

Referenced by add_agent(), agent_pvt_destroy(), agent_request(), and login_exec().

time_t loginstart

When agent first logged in (0 when logged off)

Definition at line 262 of file chan_agent.c.

Referenced by action_agents(), agent_hangup(), agent_request(), complete_agent_logoff_cmd(), and login_exec().

char moh[80]
struct agent_pvt* next

Definition at line 279 of file chan_agent.c.

char password[AST_MAX_AGENT]

Password for Agent login

Definition at line 270 of file chan_agent.c.

Referenced by add_agent(), function_agent(), and login_exec().

int pending
time_t start

When call started

Definition at line 263 of file chan_agent.c.

Referenced by agent_hangup(), and agent_read().

int wrapuptime

Wrapup time in ms

Definition at line 265 of file chan_agent.c.

Referenced by add_agent(), agent_hangup(), and login_exec().


The documentation for this struct was generated from the following file: