Sat Mar 10 01:55:53 2012

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
volatile int app_sleep_cond
int autologoff
ast_channelchan
int dead
int deferlogoff
char enddtmf
unsigned int flags
ast_group_t group
timeval lastdisc
struct {
   agent_pvt *   next
list
ast_mutex_t lock
ast_cond_t login_wait_cond
char logincallerid [80]
time_t loginstart
char moh [80]
char name [AST_MAX_AGENT]
ast_channelowner
char password [AST_MAX_AGENT]
int pending
time_t start
int wrapuptime


Detailed Description

Structure representing an agent.

Definition at line 253 of file chan_agent.c.


Field Documentation

int abouttograb

About to grab

Definition at line 257 of file chan_agent.c.

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

char acceptdtmf

Definition at line 261 of file chan_agent.c.

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

int ackcall

ackcall

Definition at line 259 of file chan_agent.c.

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

int acknowledged

Acknowledged

Definition at line 268 of file chan_agent.c.

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

char agent[AST_MAX_AGENT]

Agent ID

Definition at line 270 of file chan_agent.c.

Referenced by __agent_start_monitoring(), action_agents(), add_agent(), agent_call(), agent_devicestate(), agent_hangup(), agent_logoff(), agent_new(), agent_read(), agent_request(), agentmonitoroutgoing_exec(), agents_data_provider_get(), agents_show(), agents_show_online(), check_availability(), check_beep(), complete_agent_logoff_cmd(), find_agent(), function_agent(), and login_exec().

ast_cond_t app_complete_cond

Definition at line 274 of file chan_agent.c.

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

int app_lock_flag

Definition at line 273 of file chan_agent.c.

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

volatile int app_sleep_cond

Sleep condition for the login app

Definition at line 276 of file chan_agent.c.

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

int autologoff

Auto timeout time

Definition at line 258 of file chan_agent.c.

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

struct ast_channel* chan

Channel we use

Definition at line 279 of file chan_agent.c.

Referenced by action_agents(), agent_ack_sleep(), agent_bridgedchannel(), agent_call(), agent_devicestate(), agent_digit_begin(), agent_digit_end(), agent_get_base_channel(), agent_hangup(), agent_indicate(), agent_logoff(), agent_new(), agent_read(), agent_request(), agent_sendhtml(), agent_sendtext(), agent_set_base_channel(), agent_write(), agentmonitoroutgoing_exec(), agents_data_provider_get(), agents_show(), agents_show_online(), check_availability(), check_beep(), login_exec(), and read_agent_config().

int dead

Poised for destruction?

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

Referenced by agent_logoff(), and login_exec().

char enddtmf

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

ast_group_t group

Group memberships

Definition at line 267 of file chan_agent.c.

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

struct timeval lastdisc

When last disconnected

Definition at line 265 of file chan_agent.c.

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

struct { ... } list

Next Agent in the linked list.

Referenced by add_agent(), agent_devicestate(), agent_logoff(), agentmonitoroutgoing_exec(), agents_show(), agents_show_online(), check_availability(), check_beep(), complete_agent_logoff_cmd(), find_agent(), and unload_module().

ast_mutex_t lock

Channel private lock

Definition at line 254 of file chan_agent.c.

Referenced by action_agents(), agent_ack_sleep(), agent_call(), agent_cleanup(), agent_cont_sleep(), agent_devicestate(), agent_digit_begin(), agent_digit_end(), agent_fixup(), agent_hangup(), agent_indicate(), agent_lock_owner(), agent_logoff(), agent_read(), agent_request(), agent_sendhtml(), agent_sendtext(), agent_write(), agents_data_provider_get(), agents_show(), agents_show_online(), check_availability(), check_beep(), login_exec(), and read_agent_config().

ast_cond_t login_wait_cond

Definition at line 275 of file chan_agent.c.

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

char logincallerid[80]

Caller ID they had when they logged in

Definition at line 278 of file chan_agent.c.

Referenced by agent_hangup(), and login_exec().

time_t loginstart

When agent first logged in (0 when logged off)

Definition at line 263 of file chan_agent.c.

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

char moh[80]

Which music on hold

Definition at line 269 of file chan_agent.c.

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

char name[AST_MAX_AGENT]

Definition at line 272 of file chan_agent.c.

Referenced by action_agents(), add_agent(), agent_read(), agents_show(), and agents_show_online().

struct agent_pvt* next

Definition at line 281 of file chan_agent.c.

struct ast_channel* owner

Agent

Definition at line 277 of file chan_agent.c.

Referenced by agent_cleanup(), agent_devicestate(), agent_fixup(), agent_hangup(), agent_lock_owner(), agent_logoff(), agent_new(), agent_request(), agents_show(), check_availability(), check_beep(), login_exec(), read_agent_config(), and unload_module().

char password[AST_MAX_AGENT]

Password for Agent login

Definition at line 271 of file chan_agent.c.

Referenced by add_agent(), and login_exec().

int pending

Not a real agent -- just pending a match

Definition at line 256 of file chan_agent.c.

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

time_t start

When call started

Definition at line 264 of file chan_agent.c.

Referenced by agent_hangup(), and agent_read().

int wrapuptime

Wrapup time in ms

Definition at line 266 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:
Generated on Sat Mar 10 01:55:53 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7