Fri Jun 19 12:10:58 2009

Asterisk developer's documentation


ast_callerid Struct Reference

Structure for all kinds of caller ID identifications. More...

#include <channel.h>


Data Fields

char * cid_ani
int cid_ani2
char * cid_dnid
char * cid_name
char * cid_num
int cid_pres
char * cid_rdnis
int cid_tns
int cid_ton


Detailed Description

Structure for all kinds of caller ID identifications.

Note:
All string fields here are malloc'ed, so they need to be freed when the structure is deleted. Also, NULL and "" must be considered equivalent.
SIP and IAX2 has utf8 encoded Unicode caller ID names. In some cases, we also have an alternative (RPID) E.164 number that can be used as caller ID on numeric E.164 phone networks (DAHDI or SIP/IAX2 to pstn gateway).

Todo:
Implement settings for transliteration between UTF8 caller ID names in to Ascii Caller ID's (DAHDI). Östen Åsklund might be transliterated into Osten Asklund or Oesten Aasklund depending upon language and person... We need automatic routines for incoming calls and static settings for our own accounts.

Definition at line 201 of file channel.h.


Field Documentation

char* cid_ani

Malloc'd ANI

Definition at line 205 of file channel.h.

Referenced by __oh323_new(), ast_iax2_new(), ast_set_callerid(), begin_dial_channel(), callerid_read(), dahdi_handle_event(), dahdi_new(), dial_exec_full(), do_forward(), free_cid(), iax2_call(), isAnsweringMachine(), jingle_new(), local_call(), mgcp_new(), mgcp_ss(), misdn_new(), oss_new(), ring_entry(), set_one_cid(), sip_new(), skinny_new(), skinny_newcall(), and usbradio_new().

int cid_ani2

Callerid ANI 2 (Info digits)

Definition at line 208 of file channel.h.

Referenced by callerid_read(), callerid_write(), dahdi_call(), dahdi_handle_event(), dahdi_new(), dial_exec_full(), local_call(), pbx_retrieve_variable(), and setup_env().

char* cid_dnid

Malloc'd Dialed Number Identifier

Definition at line 202 of file channel.h.

Referenced by __oh323_new(), ast_iax2_new(), callerid_read(), callerid_write(), dahdi_new(), free_cid(), gtalk_new(), handle_showchan(), iax2_call(), jingle_new(), local_call(), oss_call(), oss_new(), serialize_showchan(), setup_env(), sip_new(), and usbradio_new().

char* cid_name

Malloc'd Caller Name (ASCII)

Definition at line 204 of file channel.h.

Referenced by agent_call(), ast_hangup(), ast_park_call_full(), ast_set_callerid(), ast_setstate(), begin_dial_channel(), blacklist_read(), build_rpid(), builtin_atxfer(), callerid_read(), console_call(), copy_message(), dahdi_call(), dahdi_handle_event(), dial_exec_full(), dial_trunk(), do_forward(), findmeexec(), forward_message(), free_cid(), handle_showchan(), iax2_call(), initreqprep(), join_queue(), leave_voicemail(), local_call(), manager_parking_status(), manager_queues_status(), mgcp_call(), mgcp_hangup(), oh323_call(), oss_call(), park_exec_full(), parkandannounce_exec(), phone_call(), post_manager_event(), ring_entry(), rpt_call(), run_externnotify(), serialize_showchan(), set_one_cid(), setup_env(), skinny_answer(), skinny_call(), skinny_indicate(), sla_ring_station(), ss_thread(), unistim_call(), unistim_new(), and usbradio_new().

char* cid_num

Malloc'd Caller Number

Definition at line 203 of file channel.h.

Referenced by __ast_goto_if_exists(), __ast_pbx_run(), _macro_exec(), acf_isexten_exec(), action_agents(), action_coreshowchannels(), agent_call(), agentmonitoroutgoing_exec(), ast_app_dtget(), ast_bridge_call(), ast_channel_bridge(), ast_hangup(), ast_park_call_full(), ast_set_callerid(), ast_setstate(), background_detect_exec(), begin_dial_channel(), blacklist_read(), build_rpid(), builtin_atxfer(), builtin_automixmonitor(), builtin_automonitor(), builtin_blindtransfer(), callerid_read(), collect_digits(), console_call(), console_transfer(), copy_message(), dahdi_call(), dahdi_handle_dtmfup(), dahdi_handle_event(), dial_exec_full(), dial_trunk(), disa_exec(), do_forward(), do_immediate_setup(), find_matching_endwhile(), findmeexec(), forward_message(), free_cid(), gosub_exec(), handle_chanlist(), handle_cli_misdn_show_channels(), handle_gosub(), handle_setpriority(), handle_showchan(), iax2_call(), initreqprep(), isexten_function_read(), join_queue(), leave_voicemail(), local_call(), manager_bridge_event(), manager_parking_status(), manager_queues_status(), mgcp_call(), mgcp_hangup(), mgcp_ss(), misdn_call(), misdn_hangup(), misdn_write(), oh323_call(), ospauth_exec(), osplookup_exec(), oss_call(), park_exec_full(), parkandannounce_exec(), pbx_parseable_goto(), phone_call(), post_manager_event(), print_bc_info(), privacy_exec(), process_ast_dsp(), queue_exec(), readexten_exec(), release_chan(), ring_entry(), rpt_call(), rpt_exec(), run_externnotify(), serialize_showchan(), set_one_cid(), setup_env(), setup_privacy_args(), skinny_answer(), skinny_call(), skinny_indicate(), skinny_ss(), sla_ring_station(), sms_exec(), ss_thread(), unistim_call(), unistim_new(), usbradio_new(), valid_exit(), waitstream_core(), write_metadata(), and zapateller_exec().

int cid_pres

Callerid presentation/screening

Definition at line 207 of file channel.h.

Referenced by __oh323_new(), ast_iax2_new(), ast_set_callerid(), begin_dial_channel(), callerid_read(), callerid_write(), callerpres_read(), callerpres_write(), cb_events(), dahdi_call(), dahdi_new(), dial_exec_full(), gtalk_new(), iax2_call(), jingle_new(), local_call(), oh323_call(), pbx_retrieve_variable(), setcallerid_pres_exec(), setup_env(), sip_call(), sip_new(), and update_config().

char* cid_rdnis

Malloc'd RDNIS

Definition at line 206 of file channel.h.

Referenced by __oh323_new(), ast_iax2_new(), begin_dial_channel(), callerid_read(), callerid_write(), dahdi_call(), dahdi_new(), dial_exec_full(), do_forward(), free_cid(), iax2_call(), isAnsweringMachine(), local_call(), misdn_call(), oh323_call(), oss_call(), read_config(), serialize_showchan(), setup_env(), and sip_new().

int cid_tns

Callerid Transit Network Select

Definition at line 210 of file channel.h.

Referenced by ast_iax2_new(), begin_dial_channel(), dial_exec_full(), iax2_call(), local_call(), pbx_retrieve_variable(), and setup_env().

int cid_ton

Callerid Type of Number

Definition at line 209 of file channel.h.

Referenced by __oh323_new(), ast_iax2_new(), begin_dial_channel(), callerid_read(), callerid_write(), dahdi_new(), dial_exec_full(), iax2_call(), local_call(), oh323_call(), pbx_retrieve_variable(), and setup_env().


The documentation for this struct was generated from the following file:
Generated on Fri Jun 19 12:10:58 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7