Wed Apr 6 11:30:13 2011

Asterisk developer's documentation


callattempt Struct Reference

We define a custom "local user" structure because we use it not only for keeping track of what is in use but also for keeping track of who we're dialing. More...


Data Fields

ast_aoc_decodedaoc_s_rate_list
callattemptcall_next
ast_channelchan
ast_party_connected_line connected
unsigned int dial_callerid_absent:1
char interface [256]
time_t lastcall
call_queuelastqueue
membermember
int metric
unsigned int pending_connected_update:1
callattemptq_next
int stillgoing


Detailed Description

We define a custom "local user" structure because we use it not only for keeping track of what is in use but also for keeping track of who we're dialing.

There are two "links" defined in this structure, q_next and call_next. q_next links ALL defined callattempt structures into a linked list. call_next is a link which allows for a subset of the callattempts to be traversed. This subset is used in wait_for_answer so that irrelevant callattempts are not traversed. This also is helpful so that queue logs are always accurate in the case where a call to a member times out, especially if using the ringall strategy.

Definition at line 819 of file app_queue.c.


Field Documentation

struct ast_aoc_decoded* aoc_s_rate_list

Definition at line 835 of file app_queue.c.

Referenced by hangupcalls().

struct callattempt* call_next

Definition at line 821 of file app_queue.c.

Referenced by wait_for_answer().

struct ast_channel* chan

Definition at line 822 of file app_queue.c.

Referenced by do_hang(), hangupcalls(), ring_entry(), ring_one(), and wait_for_answer().

struct ast_party_connected_line connected

Saved connected party info from an AST_CONTROL_CONNECTED_LINE.

Definition at line 830 of file app_queue.c.

Referenced by callattempt_free().

unsigned int dial_callerid_absent

TRUE if caller id is not available for connected line

Definition at line 834 of file app_queue.c.

Referenced by ring_entry().

char interface[256]

Definition at line 823 of file app_queue.c.

Referenced by ring_entry(), ring_one(), store_next_lin(), and store_next_rr().

time_t lastcall

Definition at line 826 of file app_queue.c.

Referenced by ring_entry().

struct call_queue* lastqueue

Definition at line 827 of file app_queue.c.

Referenced by ring_entry().

struct member* member

Definition at line 828 of file app_queue.c.

Referenced by callattempt_free(), and ring_entry().

int metric

Definition at line 825 of file app_queue.c.

Referenced by calc_metric(), find_best(), ring_one(), store_next_lin(), and store_next_rr().

unsigned int pending_connected_update

TRUE if an AST_CONTROL_CONNECTED_LINE update was saved to the connected element.

Definition at line 832 of file app_queue.c.

struct callattempt* q_next

Definition at line 820 of file app_queue.c.

Referenced by find_best(), hangupcalls(), ring_one(), and wait_for_answer().

int stillgoing

Definition at line 824 of file app_queue.c.

Referenced by do_hang(), ring_entry(), ring_one(), and wait_for_answer().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 6 11:30:13 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7