Wed Oct 28 11:53:27 2009

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
char acceptdtmf
int ackcall
int acknowledged
char agent [AST_MAX_AGENT]
ast_cond_t app_complete_cond
ast_mutex_t app_lock
int app_lock_flag
volatile 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
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 163 of file chan_agent.c.


Field Documentation

About to grab

Definition at line 167 of file chan_agent.c.

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

char acceptdtmf

Definition at line 171 of file chan_agent.c.

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

int ackcall

ackcall

Definition at line 169 of file chan_agent.c.

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

char agent[AST_MAX_AGENT]

Synchronization between owning applications

Definition at line 183 of file chan_agent.c.

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

Definition at line 184 of file chan_agent.c.

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

volatile int app_sleep_cond

Sleep condition for the login app

Definition at line 186 of file chan_agent.c.

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

Auto timeout time

Definition at line 168 of file chan_agent.c.

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

struct ast_channel* chan [read]

int dead

Poised for destruction?

Definition at line 165 of file chan_agent.c.

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

Defer logoff to hangup

Definition at line 170 of file chan_agent.c.

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

char enddtmf

Definition at line 172 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 191 of file chan_agent.c.

Group memberships

Definition at line 177 of file chan_agent.c.

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

struct timeval lastdisc [read]

When last disconnected

Definition at line 175 of file chan_agent.c.

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

struct { ... } list

Next Agent in the linked list.

char logincallerid[80]

Caller ID they had when they logged in

Definition at line 189 of file chan_agent.c.

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

char loginchan[80]

time_t loginstart

When agent first logged in (0 when logged off)

Definition at line 173 of file chan_agent.c.

Referenced by action_agents(), agent_hangup(), agent_logoff(), agent_read(), complete_agent_logoff_cmd(), login_exec(), and reload_agents().

char moh[80]

Which music on hold

Definition at line 179 of file chan_agent.c.

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

char name[AST_MAX_AGENT]

struct agent_pvt* next [read]

Definition at line 192 of file chan_agent.c.

struct ast_channel* owner [read]

char password[AST_MAX_AGENT]

Password for Agent login

Definition at line 181 of file chan_agent.c.

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

int pending

Not a real agent -- just pending a match

Definition at line 166 of file chan_agent.c.

Referenced by add_agent(), agent_call(), agent_devicestate(), agent_hangup(), agent_new(), agent_request(), agents_show(), check_availability(), check_beep(), and login_exec().

time_t start

When call started

Definition at line 174 of file chan_agent.c.

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

Wrapup time in ms

Definition at line 176 of file chan_agent.c.

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


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

Generated on Wed Oct 28 11:53:28 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6