Thu Oct 11 06:44:31 2012

Asterisk developer's documentation


agent_pvt Struct Reference

Structure representing an agent. More...

Collaboration diagram for agent_pvt:

Collaboration graph
[legend]

Data Fields

int abouttograb
int ackcall
int acknowledged
char agent [AST_MAX_AGENT]
ast_cond_t app_complete_cond
int app_lock_flag
volatile int app_sleep_cond
int autologoff
struct ast_channelchan
int dead
int deferlogoff
ast_group_t group
int inherited_devicestate
struct timeval lastdisc
struct {
   struct agent_pvt *   next
list
ast_mutex_t lock
ast_cond_t login_wait_cond
char logincallerid [80]
char loginchan [80]
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 178 of file chan_agent.c.


Field Documentation

About to grab

Definition at line 182 of file chan_agent.c.

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

int ackcall

char agent[AST_MAX_AGENT]

Definition at line 197 of file chan_agent.c.

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

volatile int app_sleep_cond

Sleep condition for the login app

Definition at line 200 of file chan_agent.c.

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

Auto timeout time

Definition at line 183 of file chan_agent.c.

Referenced by __login_exec(), add_agent(), agent_hangup(), and agent_read().

struct ast_channel* chan [read]

int dead

Poised for destruction?

Definition at line 180 of file chan_agent.c.

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

Defer logoff to hangup

Definition at line 185 of file chan_agent.c.

Referenced by __login_exec(), agent_hangup(), and agent_logoff().

Group memberships

Definition at line 190 of file chan_agent.c.

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

Does the underlying channel have a devicestate to pass?

Definition at line 196 of file chan_agent.c.

Referenced by __login_exec(), add_agent(), agent_call(), agent_devicestate(), agent_devicestate_cb(), agent_hangup(), agent_logoff_maintenance(), and agent_read().

struct timeval lastdisc [read]

When last disconnected

Definition at line 188 of file chan_agent.c.

Referenced by __login_exec(), add_agent(), agent_cont_sleep(), agent_hangup(), agent_read(), agent_request(), and agents_show().

struct { ... } list

Next Agent in the linked list.

char logincallerid[80]

Caller ID they had when they logged in

Definition at line 206 of file chan_agent.c.

Referenced by __login_exec(), agent_hangup(), agent_logoff_maintenance(), dump_agents(), and reload_agents().

char loginchan[80]

! channel they logged in from. This may also be used to tell if an agent is a callback agent or not. If this field is not zero-length, then this is a callback agent

Definition at line 205 of file chan_agent.c.

Referenced by __login_exec(), action_agent_callback_login(), action_agents(), agent_call(), agent_devicestate(), agent_devicestate_cb(), agent_hangup(), agent_logoff(), agent_logoff_maintenance(), agent_read(), agent_request(), agents_show(), agents_show_online(), allow_multiple_login(), dump_agents(), function_agent(), and reload_agents().

time_t loginstart

When agent first logged in (0 when logged off)

Definition at line 186 of file chan_agent.c.

Referenced by __login_exec(), action_agent_callback_login(), action_agents(), agent_hangup(), agent_logoff(), agent_read(), and reload_agents().

char moh[80]

Which music on hold

Definition at line 192 of file chan_agent.c.

Referenced by __login_exec(), add_agent(), agent_hangup(), agents_show(), agents_show_online(), and function_agent().

char name[AST_MAX_AGENT]

struct agent_pvt* next [read]

Definition at line 208 of file chan_agent.c.

struct ast_channel* owner [read]

char password[AST_MAX_AGENT]

Password for Agent login

Definition at line 194 of file chan_agent.c.

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

int pending

time_t start

When call started

Definition at line 187 of file chan_agent.c.

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

Wrapup time in ms

Definition at line 189 of file chan_agent.c.

Referenced by __login_exec(), action_agent_callback_login(), add_agent(), agent_hangup(), and agent_read().


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

Generated on Thu Oct 11 06:44:32 2012 for Asterisk - the Open Source PBX by  doxygen 1.5.6