Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
agent_pvt Struct Reference

Structure representing an agent. More...

Data Fields

struct ast_string_field_mgr __field_mgr
 
struct ast_string_field_pool__field_mgr_pool
 
struct timeval ack_time
 
time_t call_start
 
struct ast_bridgecaller_bridge
 
struct agent_cfgcfg
 
unsigned int dead:1
 TRUE if the agent is no longer configured and is being destroyed. More...
 
unsigned int deferred_logoff:1
 
enum ast_device_state devstate
 
unsigned int flags
 
struct timeval last_disconnect
 
struct ast_channellogged
 
time_t login_start
 
unsigned int override_ack_call:1
 
unsigned int override_auto_logoff
 
const ast_string_field override_dtmf_accept
 
unsigned int override_wrapup_time
 
time_t probation_start
 
enum agent_state state
 
unsigned int the_mark:1
 
const ast_string_field username
 
struct ast_party_connected_line waiting_colp
 

Detailed Description

Structure representing an agent.

Definition at line 594 of file app_agent_pool.c.

Field Documentation

struct timeval ack_time

When ack timer started

Definition at line 636 of file app_agent_pool.c.

time_t call_start

When call started

Definition at line 634 of file app_agent_pool.c.

struct ast_bridge* caller_bridge

Caller is waiting in this bridge for agent to join. (Holds ref)

Definition at line 641 of file app_agent_pool.c.

Referenced by agent_request_exec().

struct agent_cfg* cfg

Active config values from config file. (Holds ref)

Definition at line 645 of file app_agent_pool.c.

Referenced by bridge_agent_hold_push().

unsigned int dead

TRUE if the agent is no longer configured and is being destroyed.

Note
Agents cannot log in if they are dead.

Definition at line 622 of file app_agent_pool.c.

unsigned int deferred_logoff

TRUE if the agent is requested to logoff when the current call ends.

Definition at line 613 of file app_agent_pool.c.

Referenced by agent_login_exec().

enum ast_device_state devstate

Custom device state of agent.

Definition at line 627 of file app_agent_pool.c.

Referenced by agent_request_exec(), and bridge_agent_hold_push().

unsigned int flags

Flags show if settings were overridden by channel vars.

Definition at line 604 of file app_agent_pool.c.

struct timeval last_disconnect

When last disconnected

Definition at line 638 of file app_agent_pool.c.

Referenced by agent_login_exec().

struct ast_channel* logged

Agent is logged in with this channel. (Holds ref) (NULL if not logged in.)

Definition at line 643 of file app_agent_pool.c.

Referenced by agent_login_exec(), and bridge_agent_hold_push().

time_t login_start

When agent first logged in

Definition at line 630 of file app_agent_pool.c.

Referenced by agent_login_exec().

unsigned int override_ack_call

Login override if agent needs to ack a call to accept it.

Definition at line 610 of file app_agent_pool.c.

Referenced by bridge_agent_hold_push().

unsigned int override_auto_logoff

Login override number of seconds for agent to ack a call before being logged off.

Definition at line 606 of file app_agent_pool.c.

const ast_string_field override_dtmf_accept

Login override DTMF string for an agent to accept a call.

Definition at line 600 of file app_agent_pool.c.

Referenced by bridge_agent_hold_push().

unsigned int override_wrapup_time

Login override time after a call in ms before the agent can get a new call.

Definition at line 608 of file app_agent_pool.c.

Referenced by bridge_agent_hold_push().

time_t probation_start

When agent login probation started.

Definition at line 632 of file app_agent_pool.c.

Referenced by bridge_agent_hold_push().

Agent control state variable.

Definition at line 625 of file app_agent_pool.c.

Referenced by agent_request_exec(), and bridge_agent_hold_push().

unsigned int the_mark

Mark and sweep config update to determine if an agent is dead.

Definition at line 616 of file app_agent_pool.c.

const ast_string_field username

Identification of the agent. (agents container key)

Definition at line 600 of file app_agent_pool.c.

Referenced by agent_login_exec(), agent_request_exec(), and bridge_agent_hold_push().

struct ast_party_connected_line waiting_colp

Connected line information to send when reentering the holding bridge.

Definition at line 602 of file app_agent_pool.c.


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