Sun Oct 16 2011 08:43:14

Asterisk developer's documentation


dialed_cc_interfaces Struct Reference
Collaboration diagram for dialed_cc_interfaces:

Data Fields

int core_id
unsigned int dial_parent_id
char ignore
struct cc_monitor_treeinterface_tree
char is_original_caller

Field Documentation

int core_id

Identifier for the potential CC request that may be made based on this call. Even though an instance of the core may not be made (since the caller may not request CC), we allocate a new core_id at the beginning of the call so that recipient channel drivers can have the information handy just in case the caller does end up requesting CC.

Definition at line 1631 of file ccss.c.

Referenced by dialed_cc_interfaces_duplicate(), cc_interfaces_datastore_init(), ast_handle_cc_control_frame(), ast_cc_call_init(), ast_cc_get_current_core_id(), and ast_cc_offer().

unsigned int dial_parent_id

This value serves a dual-purpose. When dial starts, if the dialed_cc_interfaces datastore currently exists on the calling channel, then the dial_parent_id will serve as a means of letting the new extension cc_monitor we create know who his parent is. This value will be the extension cc_monitor that dialed the local channel that resulted in the new Dial app being called.

In addition, once an extension cc_monitor is created, the dial_parent_id will be changed to the id of that newly created interface. This way, device interfaces created from receiving AST_CONTROL_CC frames can use this field to determine who their parent extension interface should be.

Definition at line 1622 of file ccss.c.

Referenced by dialed_cc_interfaces_duplicate(), ast_cc_extension_monitor_add_dialstring(), cc_interfaces_datastore_init(), ast_cc_call_init(), and cc_build_payload().

char ignore

When a new Dial application is started, and the datastore already exists on the channel, we can determine if we should be adding any new interface information to tree.

Definition at line 1637 of file ccss.c.

Referenced by dialed_cc_interfaces_duplicate(), ast_handle_cc_control_frame(), ast_cc_call_init(), ast_cc_get_current_core_id(), and ast_ignore_cc().

When it comes time to offer CC to the caller, we only want to offer it to the original incoming channel. For nested Dials and outbound channels, it is incorrect to attempt such a thing. This flag indicates if the channel to which this datastore is attached may be legally offered CC when the call is finished.

Definition at line 1645 of file ccss.c.

Referenced by dialed_cc_interfaces_duplicate(), cc_interfaces_datastore_init(), ast_handle_cc_control_frame(), and ast_cc_offer().


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