| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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_bridge * | caller_bridge | 
| struct agent_cfg * | cfg | 
| unsigned int | dead:1 | 
| TRUE if the agent is no longer configured and is being destroyed. | |
| unsigned int | deferred_logoff:1 | 
| enum ast_device_state | devstate | 
| unsigned int | flags | 
| struct timeval | last_disconnect | 
| struct ast_channel * | logged | 
| 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 | 
Structure representing an agent.
Definition at line 639 of file app_agent_pool.c.
| struct ast_string_field_mgr __field_mgr | 
Definition at line 645 of file app_agent_pool.c.
| struct ast_string_field_pool* __field_mgr_pool | 
Identification of the agent. (agents container key)
Login override DTMF string for an agent to accept a call.
Definition at line 645 of file app_agent_pool.c.
| struct timeval ack_time | 
When ack timer started
Definition at line 681 of file app_agent_pool.c.
Referenced by agent_alert(), and bridge_agent_hold_heartbeat().
| time_t call_start | 
When call started
Definition at line 679 of file app_agent_pool.c.
Referenced by action_agents(), agent_connect_caller(), and agent_handle_show_specific().
| struct ast_bridge* caller_bridge | 
Caller is waiting in this bridge for agent to join. (Holds ref)
Definition at line 686 of file app_agent_pool.c.
Referenced by agent_connect_caller(), agent_logout(), agent_pvt_destructor(), agent_run(), and caller_abort_agent().
| struct agent_cfg* cfg | 
Active config values from config file. (Holds ref)
Definition at line 690 of file app_agent_pool.c.
Referenced by action_agents(), agent_alert(), agent_connect_caller(), agent_function_read(), agent_handle_show_specific(), agent_pvt_destructor(), agent_pvt_new(), agent_run(), agent_show_requested(), and bridge_agent_hold_heartbeat().
| unsigned int dead | 
TRUE if the agent is no longer configured and is being destroyed.
Definition at line 667 of file app_agent_pool.c.
Referenced by agent_run(), and agent_sweep().
| unsigned int deferred_logoff | 
TRUE if the agent is requested to logoff when the current call ends.
Definition at line 658 of file app_agent_pool.c.
Referenced by agent_run(), and bridge_agent_hold_heartbeat().
| enum ast_device_state devstate | 
Custom device state of agent.
Definition at line 672 of file app_agent_pool.c.
Referenced by agent_handle_show_specific(), agent_logout(), agent_pvt_devstate_get(), agent_pvt_new(), agent_show_requested(), and bridge_agent_hold_heartbeat().
| unsigned int flags | 
Flags show if settings were overridden by channel vars.
Definition at line 649 of file app_agent_pool.c.
Referenced by agent_pvt_cmp(), and agent_pvt_sort_cmp().
| struct timeval last_disconnect | 
When last disconnected
Definition at line 683 of file app_agent_pool.c.
Referenced by agent_run(), and bridge_agent_hold_heartbeat().
| struct ast_channel* logged | 
Agent is logged in with this channel. (Holds ref) (NULL if not logged in.)
Definition at line 688 of file app_agent_pool.c.
Referenced by agent_bridge_channel_get_lock(), agent_function_read(), agent_lock_logged(), agent_logout(), agent_pvt_cmp(), agent_pvt_destructor(), agent_run(), agents_sweep(), and complete_agent_logoff_search().
| time_t login_start | 
When agent first logged in
Definition at line 675 of file app_agent_pool.c.
Referenced by action_agents(), agent_handle_show_specific(), and agent_logout().
| unsigned int override_ack_call | 
Login override if agent needs to ack a call to accept it.
Definition at line 655 of file app_agent_pool.c.
Referenced by agent_alert(), and agent_login_channel_config().
| unsigned int override_auto_logoff | 
Login override number of seconds for agent to ack a call before being logged off.
Definition at line 651 of file app_agent_pool.c.
Referenced by agent_login_channel_config(), and bridge_agent_hold_heartbeat().
| const ast_string_field override_dtmf_accept | 
Definition at line 645 of file app_agent_pool.c.
Referenced by agent_alert().
| unsigned int override_wrapup_time | 
Login override time after a call in ms before the agent can get a new call.
Definition at line 653 of file app_agent_pool.c.
Referenced by agent_login_channel_config(), and bridge_agent_hold_heartbeat().
| time_t probation_start | 
When agent login probation started.
Definition at line 677 of file app_agent_pool.c.
Referenced by bridge_agent_hold_heartbeat().
| enum agent_state state | 
Agent control state variable.
Definition at line 670 of file app_agent_pool.c.
Referenced by agent_alert(), agent_connect_caller(), agent_logout(), agent_run(), bridge_agent_hold_ack(), bridge_agent_hold_heartbeat(), and caller_safety_timeout().
| unsigned int the_mark | 
Mark and sweep config update to determine if an agent is dead.
Definition at line 661 of file app_agent_pool.c.
Referenced by agent_mark(), and agent_sweep().
| const ast_string_field username | 
Definition at line 645 of file app_agent_pool.c.
Referenced by action_agents(), agent_after_bridge_cb(), agent_after_bridge_cb_failed(), agent_alert(), agent_handle_show_specific(), agent_logout(), agent_pvt_destructor(), agent_pvt_new(), agent_pvt_sort_cmp(), agent_run(), agent_show_requested(), agents_sweep(), bridge_agent_hold_ack(), bridge_agent_hold_heartbeat(), caller_abort_agent(), caller_joined_bridge(), caller_safety_timeout(), complete_agent(), and complete_agent_logoff().
| struct ast_party_connected_line waiting_colp | 
Connected line information to send when reentering the holding bridge.
Definition at line 647 of file app_agent_pool.c.
Referenced by agent_login_channel_config(), agent_pvt_destructor(), agent_pvt_new(), and agent_run().