Mon Jun 27 16:51:24 2011

Asterisk developer's documentation


dahdi_pvt Struct Reference


Data Fields

char accountcode [AST_MAX_ACCOUNT_CODE]
unsigned int adsi:1
 TRUE if ADSI (Analog Display Services Interface) available.
int amaflags
unsigned int answeronpolarityswitch:1
 TRUE if we can use a polarity reversal to mark when an outgoing call is answered by the remote party.
char begindigit
 DTMF digit in progress. 0 when no digit in progress.
int buf_no
int buf_policy
unsigned int bufferoverrideinuse:1
int bufsize
int busycompare
 If your country has a busy tone with the same length tone and silence (as many countries do), consider using this option in order to compare tone and silence lengths.
int busycount
 Number of times to see "busy" tone before hanging up.
unsigned int busydetect:1
 TRUE if busy detection is enabled. (Listens for the beep-beep busy pattern.).
int busyfuzziness
 Maximun percentage difference allowed between measured and actual pattern.
int busyquietlength
 Lenght of "silence" in ms.
int busytonelength
 Lenght of "tone" in ms.
char call_forward [AST_MAX_EXTENSION]
 Accumulated call forwarding number.
ast_group_t callgroup
 Bitmapped call groups this belongs to.
int callingpres
int callprogress
 Bitmapped call progress detection flags. CALLPROGRESS_xxx values.
unsigned int callreturn:1
 TRUE if call return is enabled. (*69, if your dialplan doesn't catch this first).
char callwait_name [AST_MAX_EXTENSION]
 Call waiting name.
char callwait_num [AST_MAX_EXTENSION]
 Call waiting number.
int callwaitcas
 TRUE if Call Waiting (CW) CPE Alert Signal (CAS) is being sent.
unsigned int callwaiting:1
 TRUE if busy extensions will hear the call-waiting tone and can use hook-flash to switch between callers.
unsigned int callwaitingcallerid:1
 TRUE if send caller ID for Call Waiting.
int callwaitingrepeat
int callwaitrings
 Number of call waiting rings.
unsigned int cancallforward:1
 TRUE if support for call forwarding enabled. Dial *72 to enable call forwarding. Dial *73 to disable call forwarding.
unsigned int canpark:1
 TRUE if support for call parking is enabled.
ast_cc_config_paramscc_params
int channel
char cid_ani [AST_MAX_EXTENSION]
 Automatic Number Identification number (Alternate PRI caller ID number).
int cid_ani2
 Automatic Number Identification code from PRI.
char cid_name [AST_MAX_EXTENSION]
 Caller ID name from an incoming call.
char cid_num [AST_MAX_EXTENSION]
 Caller ID number from an incoming call.
float cid_rxgain
 Amount of gain to increase during caller id.
int cid_signalling
int cid_start
char cid_subaddr [AST_MAX_EXTENSION]
 Caller ID subaddress from an incoming call.
int cid_suppress_expire
char cid_tag [AST_MAX_EXTENSION]
 Caller ID tag from incoming call.
int cid_ton
 Caller ID Q.931 TON/NPI field values. Set by PRI. Zero otherwise.
int cidcwexpire
int cidlen
 Length of the cidspill buffer containing samples.
int cidpos
 Position in the cidspill buffer to send out next.
unsigned char * cidspill
 Analog caller ID waveform sample buffer.
unsigned int confirmanswer:1
 TRUE if to wait for a DTMF digit to confirm answer.
int confno
int confusers
char context [AST_MAX_CONTEXT]
 The configured context for incoming calls.
callerid_statecs
unsigned int dahditrcallerid:1
 TRUE if we should use the callerid from incoming call on dahdi transfer.
char defcontext [AST_MAX_CONTEXT]
 Saved context string.
unsigned int destroy:1
 TRUE if the channel is to be destroyed on hangup. (Used by pseudo channels.).
char dialdest [256]
 Delayed dialing for E911. Overlap digits for ISDN.
unsigned int dialednone:1
 TRUE if analog type line dialed no digits in Dial().
unsigned int dialing:1
 TRUE if in the process of dialing digits or sending something.
char dialstring [AST_CHANNEL_NAME]
unsigned int didtdd:1
unsigned int digital:1
 TRUE if the transfer capability of the call is digital.
int distinctivering
unsigned int dnd:1
 TRUE if Do-Not-Disturb is enabled, present only for non sig_analog.
char dnid [AST_MAX_EXTENSION]
 Dialed Number Identifier.
dahdi_dialoperation dop
 DAHDI dial operation command struct for ioctl() call.
dahdi_distRings drings
 Distinctive Ring data.
ast_dspdsp
 Opaque DSP configuration structure.
int dsp_features
 DSP feature flags: DSP_FEATURE_xxx.
timeval dtmfcid_delay
int dtmfcid_holdoff_state
int dtmfrelax
unsigned int echobreak:1
 XXX BOOLEAN Purpose???
unsigned int echocanbridged:1
 TRUE if echo cancellation enabled when bridged.
struct {
   dahdi_echocanparams   head
   dahdi_echocanparam   params [DAHDI_MAX_ECHOCANPARAMS]
echocancel
 Echo cancel parameters.
unsigned int echocanon:1
 TRUE if echo cancellation is turned on.
char echorest [20]
 Filled with 'w'. XXX Purpose??
int echotraining
 Echo training time. 0 = disabled.
char exten [AST_MAX_EXTENSION]
 Extension to use in the dialplan.
int fake_event
 Holding place for event injected from outside normal operation.
int faxbuf_no
int faxbuf_policy
unsigned int faxhandled:1
 TRUE if a fax tone has already been handled.
char finaldial [64]
 Second part of SIG_FEATDMF_TA wink operation.
unsigned int firstradio:1
 TRUE if over a radio and dahdi_read() has been called.
timeval flashtime
ast_group_t group
 Bitmapped groups this belongs to.
time_t guardtime
unsigned int hanguponpolarityswitch:1
 TRUE if the call will be considered "hung up" on a polarity reversal.
unsigned int hardwaredtmf:1
 TRUE if DTMF detection needs to be done by hardware.
unsigned int hidecallerid:1
 TRUE if the outgoing caller ID is blocked/hidden.
unsigned int hidecalleridname:1
 TRUE if hide just the name not the number for legacy PBX use.
unsigned int ignoredtmf:1
 TRUE if DTMF detection is disabled.
unsigned int immediate:1
 TRUE if the channel should be answered immediately without attempting to gather any digits.
unsigned int inalarm:1
 TRUE if in an alarm condition.
int inconference
unsigned int inservice:1
 TRUE if channel is out of reset and ready.
char language [MAX_LANGUAGE]
 Language configured for calls.
int law
 Active PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.
int law_default
 Default call PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.
unsigned int locallyblocked:1
 TRUE if the channel is locally blocked.
ast_mutex_t lock
int logicalspan
char mailbox [AST_MAX_EXTENSION]
 Voice mailbox location.
unsigned int manages_span_alarms:1
 TRUE if the channel alarms will be managed also as Span ones.
dahdi_pvtmaster
unsigned int mate:1
 TRUE if TDD in MATE mode.
dahdi_mfcr2mfcr2
int mfcr2_accept_on_offer:1
int mfcr2_allow_collect_calls:1
int mfcr2_ani_index
int mfcr2_answer_pending:1
int mfcr2_call_accepted:1
openr2_calling_party_category_t mfcr2_category
int mfcr2_charge_calls:1
int mfcr2_dnis_index
int mfcr2_dnis_matched:1
int mfcr2_forced_release:1
int mfcr2_progress:1
openr2_calling_party_category_t mfcr2_recvd_category
int mfcr2call:1
char mohinterpret [MAX_MUSICCLASS]
 The configured music-on-hold class to use for calls.
char mohsuggest [MAX_MUSICCLASS]
 Suggested music-on-hold class for peer channel to use for calls.
int muting
 TRUE if confrence is muted.
ast_event_submwi_event_sub
 Opaque event subscription parameters for message waiting indication support.
unsigned int mwimonitor_fsk:1
 TRUE if the FXO port monitors for fsk type MWI indications from the other end.
unsigned int mwimonitor_neon:1
 TRUE if the FXO port monitors for neon type MWI indications from the other end.
unsigned int mwimonitor_rpas:1
 TRUE if the FXO port monitors for rpas precursor to fsk MWI indications from the other end.
unsigned int mwimonitoractive:1
 TRUE if an MWI monitor thread is currently active.
mwisend_info mwisend_data
unsigned int mwisend_fsk: 1
unsigned int mwisend_rpas:1
dahdi_vmwi_info mwisend_setting
unsigned int mwisendactive:1
 TRUE if a MWI message sending thread is active.
dahdi_pvtnext
int oprmode
dahdi_pvtoprpeer
char * origcid_name
char * origcid_num
unsigned int outgoing:1
 TRUE if we originated the call leg.
int outsigmod
ast_channelowner
char parkinglot [AST_MAX_EXTENSION]
unsigned int permcallwaiting:1
 TRUE if busy extensions will hear the call-waiting tone and can use hook-flash to switch between callers.
unsigned int permhidecallerid:1
 TRUE if the outgoing caller ID is blocked/restricted/hidden.
ast_group_t pickupgroup
 Bitmapped pickup groups this belongs to.
int polarity
 Current line interface polarity. POLARITY_IDLE, POLARITY_REV.
timeval polaritydelaytv
 Start delay time if polarityonanswerdelay is nonzero.
int polarityonanswerdelay
 Minimal time period (ms) between the answer polarity switch and hangup polarity switch.
dahdi_pvtprev
sig_pri_spanpri
unsigned int priexclusive:1
 TRUE if PRI B channels are always exclusively selected.
unsigned int priindication_oob:1
 TRUE if PRI congestion/busy indications are sent out-of-band.
int propconfno
unsigned int pulse:1
 TRUE if we will pulse dial.
unsigned int pulsedial:1
 TRUE if a pulsed digit was detected. (Pulse dial phone detected).
openr2_chan_t * r2chan
int radio
 Nonzero if the signaling type is sent over a radio.
char rdnis [AST_MAX_EXTENSION]
 Redirecting Directory Number Information Service (RDNIS) number.
unsigned int remotelyblocked:1
 TRUE if the channel is remotely blocked.
unsigned int restartpending:1
unsigned int restrictcid:1
 TRUE if caller ID is restricted.
int ringt
 Ring timeout timer??
int ringt_base
 Ring timeout base.
float rxdrc
float rxgain
 Rx gain set by chan_dahdi.conf.
dahdi_confinfo saveconf
int sendcalleridafter
 Send caller ID on FXS after this many rings. Set to 1 for US.
int sig
void * sig_pvt
int silencethreshold
 Maximun signal average level considered as silence in this channel.
dahdi_pvtslaves [MAX_SLAVES]
ast_smdi_interfacesmdi_iface
 The SMDI interface to get SMDI messages from.
int span
int stripmsd
 Number of most significant digits/characters to strip from the dialed number.
dahdi_subchannel sub_unused
dahdi_subchannel subs [3]
tdd_statetdd
unsigned int threewaycalling:1
 TRUE if three way calling is enabled.
int tonezone
unsigned int transfer:1
 TRUE if call transfer is enabled.
unsigned int transfertobusy:1
 TRUE if allowed to flash-transfer to busy channels.
float txdrc
float txgain
 Tx gain set by chan_dahdi.conf.
unsigned int use_callerid:1
 TRUE if caller ID is used on this channel.
unsigned int use_callingpres:1
 TRUE if we will use the calling presentation setting from the Asterisk channel for outgoing calls.
unsigned int use_smdi:1
 TRUE if SMDI (Simplified Message Desk Interface) is enabled.
unsigned int usedistinctiveringdetection:1
 TRUE if distinctive rings are to be detected.
unsigned int usefaxbuffers:1
ast_variablevars
 Channel variable list with associated values to set when a channel is created.
int waitfordialtone
 Number of milliseconds to wait for dialtone.
timeval waitingfordt
enum DAHDI_IFLIST which_iflist
int whichwink

Detailed Description

Definition at line 665 of file chan_dahdi.c.


Field Documentation

char accountcode[AST_MAX_ACCOUNT_CODE]

Account code

Definition at line 1150 of file chan_dahdi.c.

Referenced by dahdi_new().

unsigned int adsi

TRUE if ADSI (Analog Display Services Interface) available.

Note:
Set from the "adsi" value read in from chan_dahdi.conf

Definition at line 714 of file chan_dahdi.c.

Referenced by dahdi_new().

int amaflags

AMA Flags

Definition at line 1151 of file chan_dahdi.c.

Referenced by dahdi_new().

unsigned int answeronpolarityswitch

TRUE if we can use a polarity reversal to mark when an outgoing call is answered by the remote party.

Note:
Set from the "answeronpolarityswitch" value read in from chan_dahdi.conf

Definition at line 720 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), my_answer_polarityswitch(), my_hangup_polarityswitch(), and my_start_polarityswitch().

char begindigit

DTMF digit in progress. 0 when no digit in progress.

Definition at line 1211 of file chan_dahdi.c.

Referenced by dahdi_digit_begin(), and dahdi_digit_end().

int buf_no

Number of buffers

Definition at line 680 of file chan_dahdi.c.

Referenced by alloc_sub(), duplicate_pseudo(), and revert_fax_buffers().

int buf_policy

Buffer policy

Definition at line 681 of file chan_dahdi.c.

Referenced by alloc_sub(), duplicate_pseudo(), and revert_fax_buffers().

unsigned int bufferoverrideinuse

TRUE while buffer configuration override is in use

Definition at line 791 of file chan_dahdi.c.

Referenced by dahdi_func_write(), dahdi_handle_dtmf(), my_handle_dtmf(), and revert_fax_buffers().

int bufsize

Size of the buffers

Definition at line 679 of file chan_dahdi.c.

Referenced by dahdi_func_write(), dahdi_handle_dtmf(), my_handle_dtmf(), and revert_fax_buffers().

int busycompare

If your country has a busy tone with the same length tone and silence (as many countries do), consider using this option in order to compare tone and silence lengths.

Note:
Set from the "busycompare" value read in from chan_dahdi.conf

Definition at line 1110 of file chan_dahdi.c.

Referenced by dahdi_new().

int busycount

Number of times to see "busy" tone before hanging up.

Note:
Set from the "busycount" value read in from chan_dahdi.conf

Definition at line 1105 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_show_channel().

unsigned int busydetect

TRUE if busy detection is enabled. (Listens for the beep-beep busy pattern.).

Note:
Set from the "busydetect" value read in from chan_dahdi.conf

Definition at line 726 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_read(), and dahdi_show_channel().

int busyfuzziness

Maximun percentage difference allowed between measured and actual pattern.

Note:
Set from the "busyfuzziness" value read in from chan_dahdi.conf

Definition at line 1125 of file chan_dahdi.c.

Referenced by dahdi_new().

int busyquietlength

Lenght of "silence" in ms.

Note:
Set from the "busypattern" value read in from chan_dahdi.conf

Definition at line 1120 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_show_channel().

int busytonelength

Lenght of "tone" in ms.

Note:
Set from the "busypattern" value read in from chan_dahdi.conf

Definition at line 1115 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_show_channel().

char call_forward[AST_MAX_EXTENSION]

Accumulated call forwarding number.

Definition at line 1154 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and dahdi_new().

ast_group_t callgroup

Bitmapped call groups this belongs to.

Note:
The "callgroup" bitmapped group string read in from chan_dahdi.conf

Definition at line 1038 of file chan_dahdi.c.

Referenced by dahdi_new().

int callingpres

The value of calling presentation that we're going to use when placing a PRI call

Definition at line 1056 of file chan_dahdi.c.

Referenced by dahdi_new(), and my_set_callerid().

int callprogress

Bitmapped call progress detection flags. CALLPROGRESS_xxx values.

Note:
Bits set from the "callprogress" and "faxdetect" values read in from chan_dahdi.conf

Definition at line 1135 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), dahdi_new(), dahdi_read(), and my_handle_dtmf().

unsigned int callreturn

TRUE if call return is enabled. (*69, if your dialplan doesn't catch this first).

Note:
Set from the "callreturn" value read in from chan_dahdi.conf

Definition at line 732 of file chan_dahdi.c.

Referenced by analog_ss_thread().

char callwait_name[AST_MAX_EXTENSION]

Call waiting name.

Definition at line 1017 of file chan_dahdi.c.

Referenced by send_cwcidspill().

char callwait_num[AST_MAX_EXTENSION]

Call waiting number.

Definition at line 1015 of file chan_dahdi.c.

Referenced by send_cwcidspill().

int callwaitcas

TRUE if Call Waiting (CW) CPE Alert Signal (CAS) is being sent.

Note:
After CAS is sent, the call waiting caller id will be sent if the phone gives a positive reply.

Definition at line 1086 of file chan_dahdi.c.

Referenced by dahdi_callwait(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_show_channel(), my_callwait(), my_send_callerid(), send_callerid(), and send_cwcidspill().

unsigned int callwaiting

TRUE if busy extensions will hear the call-waiting tone and can use hook-flash to switch between callers.

Note:
Can be disabled by dialing *70.

Initialized with the "callwaiting" value read in from chan_dahdi.conf

Definition at line 739 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_bridge(), dahdi_hangup(), and my_set_callwaiting().

unsigned int callwaitingcallerid

TRUE if send caller ID for Call Waiting.

Note:
Set from the "callwaitingcallerid" value read in from chan_dahdi.conf

Definition at line 744 of file chan_dahdi.c.

Referenced by dahdi_bridge(), dahdi_callwait(), and my_callwait().

int callwaitingrepeat

How many samples to wait before repeating call waiting

Definition at line 1057 of file chan_dahdi.c.

Referenced by dahdi_callwait(), dahdi_hangup(), dahdi_read(), my_callwait(), and my_stop_callwait().

int callwaitrings

Number of call waiting rings.

Definition at line 1088 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_callwait(), dahdi_read(), and my_callwait().

unsigned int cancallforward

TRUE if support for call forwarding enabled. Dial *72 to enable call forwarding. Dial *73 to disable call forwarding.

Note:
Set from the "cancallforward" value read in from chan_dahdi.conf

Definition at line 751 of file chan_dahdi.c.

Referenced by analog_ss_thread().

unsigned int canpark

TRUE if support for call parking is enabled.

Note:
Set from the "canpark" value read in from chan_dahdi.conf

Definition at line 756 of file chan_dahdi.c.

Referenced by analog_ss_thread().

struct ast_cc_config_params* cc_params

Definition at line 1215 of file chan_dahdi.c.

Referenced by dahdi_cc_callback(), dahdi_new(), deep_copy_dahdi_chan_conf(), destroy_dahdi_pvt(), duplicate_pseudo(), and setup_dahdi().

int channel

Channel Number

Definition at line 1049 of file chan_dahdi.c.

Referenced by __dahdi_exception(), _dahdi_get_index(), action_dahdidialoffhook(), action_dahdidndoff(), action_dahdidndon(), action_dahdishowchannels(), action_transfer(), action_transferhangup(), alloc_sub(), analog_ss_thread(), check_for_conference(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_confmute(), dahdi_destroy_channel_bynum(), dahdi_disable_ec(), dahdi_dnd(), dahdi_enable_ec(), dahdi_fixup(), dahdi_func_write(), dahdi_handle_event(), dahdi_hangup(), dahdi_iflist_insert(), dahdi_new(), dahdi_nobch_insert(), dahdi_r2_disconnect_call(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_end(), dahdi_r2_on_call_offered(), dahdi_read(), dahdi_request(), dahdi_sendtext(), dahdi_set_dnd(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), dahdi_unlink(), dahdi_write(), destroy_all_channels(), enable_dtmf_detect(), find_channel(), get_alarms(), handle_alarms(), handle_clear_alarms(), handle_init_event(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), is_group_or_channel_match(), isourconf(), mkintf(), mwi_thread(), my_all_subchannels_hungup(), my_dahdi_write(), my_dial_digits(), my_dsp_set_digitmode(), my_handle_notify_message(), my_is_off_hook(), my_new_pri_ast_channel(), my_pri_open_media(), my_set_polarity(), reset_conf(), and unalloc_sub().

char cid_ani[AST_MAX_EXTENSION]

Automatic Number Identification number (Alternate PRI caller ID number).

Definition at line 995 of file chan_dahdi.c.

Referenced by dahdi_new(), and my_set_callerid().

int cid_ani2

Automatic Number Identification code from PRI.

Definition at line 998 of file chan_dahdi.c.

Referenced by dahdi_new(), and my_set_callerid().

char cid_name[AST_MAX_EXTENSION]

Caller ID name from an incoming call.

Definition at line 1009 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_r2_on_ani_digit_received(), dahdi_r2_on_call_init(), dahdi_r2_on_call_offered(), dahdi_show_channel(), mwi_send_init(), and my_set_callerid().

char cid_num[AST_MAX_EXTENSION]

Caller ID number from an incoming call.

Definition at line 1000 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_r2_on_ani_digit_received(), dahdi_r2_on_call_init(), dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), dahdi_show_channel(), mwi_send_init(), and my_set_callerid().

float cid_rxgain

Amount of gain to increase during caller id.

Definition at line 694 of file chan_dahdi.c.

Referenced by bump_gains().

int cid_signalling

CID signalling type bell202 or v23

Definition at line 1052 of file chan_dahdi.c.

Referenced by analog_ss_thread(), mwi_thread(), and my_get_callerid().

int cid_start

CID start indicator, polarity or ring or DTMF without warning event

Definition at line 1053 of file chan_dahdi.c.

Referenced by analog_ss_thread(), do_monitor(), and handle_init_event().

char cid_subaddr[AST_MAX_EXTENSION]

Caller ID subaddress from an incoming call.

Definition at line 1011 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_r2_on_call_init(), dahdi_show_channel(), and my_set_callerid().

int cid_suppress_expire

How many samples to suppress after a CID spill.

Definition at line 1059 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_read(), my_send_callerid(), my_stop_callwait(), send_callerid(), and send_cwcidspill().

char cid_tag[AST_MAX_EXTENSION]

Caller ID tag from incoming call.

Note:
the "cid_tag" string read in from chan_dahdi.conf

Definition at line 1005 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), and my_set_callerid().

int cid_ton

Caller ID Q.931 TON/NPI field values. Set by PRI. Zero otherwise.

Definition at line 1007 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_show_channel(), and my_set_callerid().

int cidcwexpire

When to stop waiting for CID/CW CAS response (In samples)

Definition at line 1058 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_read(), my_send_callerid(), my_stop_callwait(), send_callerid(), and send_cwcidspill().

int cidlen

Length of the cidspill buffer containing samples.

Definition at line 1065 of file chan_dahdi.c.

Referenced by dahdi_callwait(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), my_callwait(), my_send_callerid(), send_callerid(), and send_cwcidspill().

int cidpos

Position in the cidspill buffer to send out next.

Definition at line 1063 of file chan_dahdi.c.

Referenced by dahdi_callwait(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), my_callwait(), my_send_callerid(), send_callerid(), and send_cwcidspill().

unsigned char* cidspill

Analog caller ID waveform sample buffer.

Definition at line 1061 of file chan_dahdi.c.

Referenced by dahdi_callwait(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_write(), destroy_dahdi_pvt(), do_monitor(), handle_init_event(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), my_callwait(), my_cancel_cidspill(), my_send_callerid(), send_callerid(), and send_cwcidspill().

unsigned int confirmanswer

TRUE if to wait for a DTMF digit to confirm answer.

Definition at line 758 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_request(), my_check_confirmanswer(), and my_set_confirmanswer().

int confno

Our conference

Definition at line 1031 of file chan_dahdi.c.

Referenced by check_for_conference(), conf_add(), dahdi_show_channel(), isourconf(), and reset_conf().

int confusers

Who is using our conference

Definition at line 1032 of file chan_dahdi.c.

char context[AST_MAX_CONTEXT]

The configured context for incoming calls.

Note:
The "context" string read in from chan_dahdi.conf

Definition at line 970 of file chan_dahdi.c.

Referenced by action_dahdishowchannels(), analog_ss_thread(), dahdi_new(), dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), dahdi_show_channel(), dahdi_show_channels(), handle_mfcr2_show_channels(), and my_distinctive_ring().

struct callerid_state* cs

Definition at line 667 of file chan_dahdi.c.

Referenced by analog_ss_thread(), my_get_callerid(), my_start_cid_detect(), and my_stop_cid_detect().

unsigned int dahditrcallerid

TRUE if we should use the callerid from incoming call on dahdi transfer.

Note:
Set from the "useincomingcalleridondahditransfer" value read in from chan_dahdi.conf

Definition at line 903 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

char defcontext[AST_MAX_CONTEXT]

Saved context string.

Definition at line 974 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and my_distinctive_ring().

unsigned int destroy

TRUE if the channel is to be destroyed on hangup. (Used by pseudo channels.).

Definition at line 763 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_show_channel(), and mkintf().

char dialdest[256]

Delayed dialing for E911. Overlap digits for ISDN.

Definition at line 1163 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_handle_event().

unsigned int dialednone

TRUE if analog type line dialed no digits in Dial().

Definition at line 766 of file chan_dahdi.c.

Referenced by dahdi_call().

unsigned int dialing

TRUE if in the process of dialing digits or sending something.

Note:
This is used as a receive squelch for ISDN until connected.

Definition at line 771 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_handle_event(), dahdi_hangup(), dahdi_r2_on_call_accepted(), dahdi_read(), dahdi_show_channel(), dahdi_write(), my_pri_fixup_chans(), and my_set_dialing().

char dialstring[AST_CHANNEL_NAME]

Definition at line 1222 of file chan_dahdi.c.

Referenced by dahdi_request(), my_get_orig_dialstring(), and my_pri_fixup_chans().

unsigned int didtdd

flag to say its done it once

Definition at line 764 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_setoption(), and my_all_subchannels_hungup().

unsigned int digital

TRUE if the transfer capability of the call is digital.

Definition at line 773 of file chan_dahdi.c.

Referenced by dahdi_enable_ec(), dahdi_hangup(), my_pri_fixup_chans(), my_pri_open_media(), and my_set_digital().

int distinctivering

Variable for enabling Ring Pulse Alert before MWI FSK Spill Which distinctivering to use

Definition at line 1169 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_request(), and my_set_cadence().

unsigned int dnd

TRUE if Do-Not-Disturb is enabled, present only for non sig_analog.

Definition at line 775 of file chan_dahdi.c.

Referenced by dahdi_dnd().

char dnid[AST_MAX_EXTENSION]

Dialed Number Identifier.

Definition at line 1021 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_request(), and my_set_dnid().

struct dahdi_dialoperation dop

DAHDI dial operation command struct for ioctl() call.

Definition at line 1146 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_event(), dahdi_indicate(), and dahdi_read().

struct dahdi_distRings drings

Distinctive Ring data.

Definition at line 964 of file chan_dahdi.c.

Referenced by analog_ss_thread().

struct ast_dsp* dsp

Opaque DSP configuration structure.

Definition at line 1144 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_dtmf(), dahdi_hangup(), dahdi_new(), dahdi_read(), dahdi_setoption(), dahdi_show_channel(), disable_dtmf_detect(), enable_dtmf_detect(), my_all_subchannels_hungup(), my_dsp_reset_and_flush_digits(), my_dsp_set_digitmode(), my_handle_dtmf(), my_pri_fixup_chans(), my_pri_open_media(), and my_set_waitingfordt().

int dsp_features

DSP feature flags: DSP_FEATURE_xxx.

Definition at line 1188 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), dahdi_new(), dahdi_queryoption(), dahdi_read(), dahdi_setoption(), disable_dtmf_detect(), enable_dtmf_detect(), my_handle_dtmf(), my_pri_fixup_chans(), and my_pri_open_media().

struct timeval dtmfcid_delay

Time value used for allow line to settle

Definition at line 1055 of file chan_dahdi.c.

int dtmfcid_holdoff_state

State indicator that allows for line to settle before checking for dtmf energy

Definition at line 1054 of file chan_dahdi.c.

int dtmfrelax

whether to run in relaxed DTMF mode

Definition at line 1170 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_hangup(), dahdi_new(), dahdi_setoption(), dahdi_show_channel(), and my_dsp_set_digitmode().

unsigned int echobreak

XXX BOOLEAN Purpose???

Definition at line 777 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

unsigned int echocanbridged

TRUE if echo cancellation enabled when bridged.

Note:
Initialized with the "echocancelwhenbridged" value read in from chan_dahdi.conf

Disabled if the echo canceller is not setup.

Definition at line 783 of file chan_dahdi.c.

Referenced by dahdi_bridge(), and dahdi_show_channel().

struct { ... } echocancel

Echo cancel parameters.

Referenced by dahdi_enable_ec(), dahdi_show_channel(), and process_echocancel().

unsigned int echocanon

TRUE if echo cancellation is turned on.

Definition at line 785 of file chan_dahdi.c.

Referenced by dahdi_disable_ec(), dahdi_enable_ec(), dahdi_func_write(), dahdi_handle_event(), dahdi_show_channel(), and dahdi_train_ec().

char echorest[20]

Filled with 'w'. XXX Purpose??

Definition at line 1100 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

int echotraining

Echo training time. 0 = disabled.

Note:
Set from the "echotraining" value read in from chan_dahdi.conf

Definition at line 1098 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_train_ec().

char exten[AST_MAX_EXTENSION]

Extension to use in the dialplan.

Definition at line 976 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), dahdi_r2_on_call_init(), dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), dahdi_show_channel(), and my_new_pri_ast_channel().

int fake_event

Holding place for event injected from outside normal operation.

Definition at line 1172 of file chan_dahdi.c.

Referenced by __dahdi_exception(), dahdi_fake_event(), dahdi_handle_event(), dahdi_new(), dahdi_read(), and my_get_event().

int faxbuf_no

Number of Fax buffers

Definition at line 682 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), and my_handle_dtmf().

int faxbuf_policy

Fax buffer policy

Definition at line 683 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), and my_handle_dtmf().

unsigned int faxhandled

TRUE if a fax tone has already been handled.

Definition at line 787 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), dahdi_hangup(), dahdi_show_channel(), my_all_subchannels_hungup(), and my_handle_dtmf().

char finaldial[64]

Second part of SIG_FEATDMF_TA wink operation.

Definition at line 1149 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

unsigned int firstradio

TRUE if over a radio and dahdi_read() has been called.

Definition at line 793 of file chan_dahdi.c.

Referenced by dahdi_read().

struct timeval flashtime

Last flash-hook time

Definition at line 1142 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

ast_group_t group

Bitmapped groups this belongs to.

Note:
The "group" bitmapped group string read in from chan_dahdi.conf

Definition at line 1026 of file chan_dahdi.c.

Referenced by dahdi_show_channels(), handle_mfcr2_show_channels(), and is_group_or_channel_match().

time_t guardtime

Must wait this much time before using for new call

Definition at line 1051 of file chan_dahdi.c.

Referenced by dahdi_hangup().

unsigned int hanguponpolarityswitch

TRUE if the call will be considered "hung up" on a polarity reversal.

Note:
Set from the "hanguponpolarityswitch" value read in from chan_dahdi.conf

Definition at line 798 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), handle_init_event(), my_hangup_polarityswitch(), and my_start_polarityswitch().

unsigned int hardwaredtmf

TRUE if DTMF detection needs to be done by hardware.

Definition at line 800 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_new(), disable_dtmf_detect(), enable_dtmf_detect(), and my_dsp_set_digitmode().

struct dahdi_echocanparams head

Definition at line 1091 of file chan_dahdi.c.

Referenced by dahdi_enable_ec(), dahdi_show_channel(), and process_echocancel().

unsigned int hidecallerid

TRUE if the outgoing caller ID is blocked/hidden.

Note:
Caller ID can be disabled by dialing *67.

Caller ID can be enabled by dialing *82.

Initialized with the "hidecallerid" value read in from chan_dahdi.conf

Definition at line 807 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_call(), and dahdi_hangup().

unsigned int hidecalleridname

TRUE if hide just the name not the number for legacy PBX use.

Note:
Only applies to PRI channels.

Set from the "hidecalleridname" value read in from chan_dahdi.conf

Definition at line 813 of file chan_dahdi.c.

unsigned int ignoredtmf

TRUE if DTMF detection is disabled.

Definition at line 815 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_queryoption(), dahdi_read(), disable_dtmf_detect(), and enable_dtmf_detect().

unsigned int immediate

TRUE if the channel should be answered immediately without attempting to gather any digits.

Note:
Set from the "immediate" value read in from chan_dahdi.conf

Definition at line 821 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), and handle_init_event().

unsigned int inalarm

TRUE if in an alarm condition.

Definition at line 823 of file chan_dahdi.c.

Referenced by analog_ss_thread(), available(), dahdi_handle_event(), dahdi_r2_on_hardware_alarm(), dahdi_read(), dahdi_show_channel(), handle_init_event(), mwi_thread(), my_distinctive_ring(), and my_set_alarm().

int inconference

If our real should be in the conference

Definition at line 677 of file chan_dahdi.c.

Referenced by dahdi_bridge(), and dahdi_show_channel().

unsigned int inservice

TRUE if channel is out of reset and ready.

Note:
Set but not used.

Definition at line 933 of file chan_dahdi.c.

char language[MAX_LANGUAGE]

Language configured for calls.

Note:
The "language" string read in from chan_dahdi.conf

Definition at line 981 of file chan_dahdi.c.

Referenced by dahdi_new().

int law

Active PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.

Definition at line 1030 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_hangup(), dahdi_new(), dahdi_set_swgain(), dahdi_setoption(), my_all_subchannels_hungup(), my_pri_fixup_chans(), my_pri_open_media(), and restore_gains().

int law_default

Default call PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.

Definition at line 1028 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), dahdi_show_channel(), and my_all_subchannels_hungup().

unsigned int locallyblocked

TRUE if the channel is locally blocked.

Note:
Applies to SS7 and MFCR2 channels.

Definition at line 938 of file chan_dahdi.c.

Referenced by available().

ast_mutex_t lock

Channel private lock.

Definition at line 666 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_exception(), dahdi_fixup(), dahdi_func_read(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_queue_frame(), dahdi_r2_disconnect_call(), dahdi_r2_on_call_disconnect(), dahdi_r2_on_call_end(), dahdi_r2_on_call_init(), dahdi_r2_on_call_offered(), dahdi_r2_on_hardware_alarm(), dahdi_r2_on_line_blocked(), dahdi_r2_on_line_idle(), dahdi_r2_on_protocol_error(), dahdi_read(), dahdi_request(), dahdi_softhangup_all(), dahdi_unlink(), destroy_dahdi_pvt(), do_monitor(), my_deadlock_avoidance_private(), my_handle_dtmf(), my_lock_private(), and my_unlock_private().

int logicalspan

Definition at line 952 of file chan_dahdi.c.

char mailbox[AST_MAX_EXTENSION]

Voice mailbox location.

Note:
Set from the "mailbox" string read in from chan_dahdi.conf

Definition at line 1159 of file chan_dahdi.c.

Referenced by dahdi_show_channel(), handle_init_event(), has_voicemail(), and my_handle_notify_message().

unsigned int manages_span_alarms

TRUE if the channel alarms will be managed also as Span ones.

Note:
Applies to all channels

Definition at line 948 of file chan_dahdi.c.

Referenced by destroy_dahdi_pvt(), handle_alarms(), and handle_clear_alarms().

struct dahdi_pvt* master

Master to us (we follow their conferencing)

Definition at line 676 of file chan_dahdi.c.

Referenced by check_for_conference(), dahdi_show_channel(), and dahdi_unlink().

unsigned int mate

TRUE if TDD in MATE mode.

Definition at line 825 of file chan_dahdi.c.

Referenced by dahdi_sendtext(), and dahdi_setoption().

struct dahdi_mfcr2* mfcr2

Definition at line 1194 of file chan_dahdi.c.

Referenced by available(), dahdi_call(), dahdi_hangup(), dahdi_indicate(), dahdi_read(), dahdi_request(), and dahdi_show_channel().

int mfcr2_accept_on_offer

Definition at line 1208 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_accepted(), dahdi_r2_on_call_offered(), and dahdi_show_channel().

int mfcr2_allow_collect_calls

Definition at line 1203 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_offered(), and dahdi_show_channel().

int mfcr2_ani_index

Definition at line 1199 of file chan_dahdi.c.

Referenced by dahdi_r2_on_ani_digit_received(), and dahdi_r2_on_call_init().

int mfcr2_answer_pending

Definition at line 1201 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_r2_on_call_accepted(), and dahdi_r2_on_call_init().

int mfcr2_call_accepted

Definition at line 1206 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_call(), dahdi_indicate(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_init(), and dahdi_read().

openr2_calling_party_category_t mfcr2_category

Definition at line 1197 of file chan_dahdi.c.

Referenced by dahdi_r2_get_channel_category().

int mfcr2_charge_calls

Definition at line 1202 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_r2_on_call_offered(), and dahdi_show_channel().

int mfcr2_dnis_index

Definition at line 1198 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_init(), and dahdi_r2_on_dnis_digit_received().

int mfcr2_dnis_matched

Definition at line 1205 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_init(), and dahdi_r2_on_dnis_digit_received().

int mfcr2_forced_release

Definition at line 1204 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_show_channel().

int mfcr2_progress

Definition at line 1207 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_read().

openr2_calling_party_category_t mfcr2_recvd_category

Definition at line 1196 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_r2_on_call_offered().

int mfcr2call

Definition at line 1200 of file chan_dahdi.c.

Referenced by available(), dahdi_hangup(), dahdi_new(), dahdi_r2_disconnect_call(), dahdi_r2_on_call_end(), dahdi_r2_on_call_init(), dahdi_r2_on_protocol_error(), and dahdi_request().

char mohinterpret[MAX_MUSICCLASS]

The configured music-on-hold class to use for calls.

Note:
The "musicclass" or "mohinterpret" or "musiconhold" string read in from chan_dahdi.conf

Definition at line 986 of file chan_dahdi.c.

Referenced by dahdi_indicate().

char mohsuggest[MAX_MUSICCLASS]

Suggested music-on-hold class for peer channel to use for calls.

Note:
The "mohsuggest" string read in from chan_dahdi.conf

Definition at line 991 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_hangup().

int muting

TRUE if confrence is muted.

Definition at line 1213 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), and dahdi_read().

struct ast_event_sub* mwi_event_sub

Opaque event subscription parameters for message waiting indication support.

Definition at line 1161 of file chan_dahdi.c.

Referenced by destroy_dahdi_pvt().

unsigned int mwimonitor_fsk

TRUE if the FXO port monitors for fsk type MWI indications from the other end.

Note:
Set if the "mwimonitor" value read in contains "fsk" from chan_dahdi.conf

Definition at line 918 of file chan_dahdi.c.

Referenced by do_monitor().

unsigned int mwimonitor_neon

TRUE if the FXO port monitors for neon type MWI indications from the other end.

Note:
Set if the "mwimonitor" value read in contains "neon" from chan_dahdi.conf

Definition at line 913 of file chan_dahdi.c.

Referenced by handle_init_event(), and my_handle_notify_message().

unsigned int mwimonitor_rpas

TRUE if the FXO port monitors for rpas precursor to fsk MWI indications from the other end.

Note:
RPAS - Ring Pulse Alert Signal

Set if the "mwimonitor" value read in contains "rpas" from chan_dahdi.conf

Definition at line 924 of file chan_dahdi.c.

Referenced by my_handle_notify_message().

unsigned int mwimonitoractive

TRUE if an MWI monitor thread is currently active.

Definition at line 926 of file chan_dahdi.c.

Referenced by mwi_thread().

struct mwisend_info mwisend_data

Definition at line 959 of file chan_dahdi.c.

Referenced by mwi_send_init(), mwi_send_process_buffer(), and mwi_send_process_event().

unsigned int mwisend_fsk

Definition at line 1166 of file chan_dahdi.c.

Referenced by mwi_send_init(), and mwi_send_process_buffer().

unsigned int mwisend_rpas

Variable for enabling FSK MWI handling in chan_dahdi

Definition at line 1167 of file chan_dahdi.c.

Referenced by mwi_send_init().

struct dahdi_vmwi_info mwisend_setting

Which VMWI methods to use

Definition at line 1165 of file chan_dahdi.c.

unsigned int mwisendactive

TRUE if a MWI message sending thread is active.

Definition at line 928 of file chan_dahdi.c.

Referenced by do_monitor(), mwi_send_init(), mwi_send_process_buffer(), and mwi_send_process_event().

struct dahdi_pvt* next

Next channel in list

Definition at line 705 of file chan_dahdi.c.

Referenced by __oh323_destroy(), __unload_module(), action_dahdishowchannels(), dahdi_channels_data_provider_get(), dahdi_destroy_channel_bynum(), dahdi_iflist_extract(), dahdi_iflist_insert(), dahdi_nobch_extract(), dahdi_nobch_insert(), dahdi_request(), dahdi_set_dnd(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_show_channel(), dahdi_show_channels(), dahdi_softhangup_all(), destroy_dahdi_pvt(), determine_starting_point(), do_monitor(), find_channel(), find_next_iface_in_span(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), handle_mfcr2_show_channels(), and mkintf().

int oprmode

"Operator Services" mode

Definition at line 691 of file chan_dahdi.c.

Referenced by __dahdi_exception(), available(), dahdi_answer(), dahdi_call(), dahdi_dnd(), dahdi_exception(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_read(), dahdi_request(), dahdi_setoption(), do_monitor(), and mwi_thread().

struct dahdi_pvt* oprpeer

"Operator Services" peer tech_pvt ptr

Definition at line 692 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_setoption().

char* origcid_name

malloced original callerid

Definition at line 1013 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_hangup().

char* origcid_num

malloced original callerid

Definition at line 1012 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_hangup().

unsigned int outgoing

TRUE if we originated the call leg.

Definition at line 827 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_read(), dahdi_request(), and my_pri_fixup_chans().

int outsigmod

Outbound Signalling style (modifier)

Definition at line 690 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_handle_event().

struct ast_channel* owner

Our current active owner (if applicable) Up to three channels can be associated with this call

Definition at line 668 of file chan_dahdi.c.

Referenced by __dahdi_exception(), __unload_module(), action_dahdidialoffhook(), action_dahdishowchannels(), analog_ss_thread(), available(), dahdi_bridge(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_fake_event(), dahdi_fixup(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_queue_frame(), dahdi_r2_answer(), dahdi_r2_on_call_disconnect(), dahdi_r2_on_protocol_error(), dahdi_read(), dahdi_request(), dahdi_show_channel(), dahdi_softhangup_all(), dahdi_write(), destroy_channel(), destroy_dahdi_pvt(), do_monitor(), my_all_subchannels_hungup(), my_dial_digits(), my_pri_fixup_chans(), and my_set_new_owner().

struct dahdi_echocanparam params[DAHDI_MAX_ECHOCANPARAMS]

Definition at line 1092 of file chan_dahdi.c.

Referenced by dahdi_show_channel(), and process_echocancel().

char parkinglot[AST_MAX_EXTENSION]

Parking lot for this channel

Definition at line 992 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

unsigned int permcallwaiting

TRUE if busy extensions will hear the call-waiting tone and can use hook-flash to switch between callers.

Note:
Set from the "callwaiting" value read in from chan_dahdi.conf

Definition at line 834 of file chan_dahdi.c.

Referenced by dahdi_hangup().

unsigned int permhidecallerid

TRUE if the outgoing caller ID is blocked/restricted/hidden.

Note:
Set from the "hidecallerid" value read in from chan_dahdi.conf

Definition at line 839 of file chan_dahdi.c.

Referenced by dahdi_hangup().

ast_group_t pickupgroup

Bitmapped pickup groups this belongs to.

Note:
The "pickupgroup" bitmapped group string read in from chan_dahdi.conf

Definition at line 1043 of file chan_dahdi.c.

Referenced by dahdi_new().

int polarity

Current line interface polarity. POLARITY_IDLE, POLARITY_REV.

Definition at line 1186 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), dahdi_hangup(), handle_init_event(), my_set_polarity(), and unalloc_sub().

struct timeval polaritydelaytv

Start delay time if polarityonanswerdelay is nonzero.

Definition at line 1179 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

int polarityonanswerdelay

Minimal time period (ms) between the answer polarity switch and hangup polarity switch.

Definition at line 1177 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

struct dahdi_pvt* prev

Prev channel in list

Definition at line 706 of file chan_dahdi.c.

Referenced by dahdi_iflist_extract(), dahdi_iflist_insert(), dahdi_nobch_extract(), dahdi_nobch_insert(), dahdi_request(), determine_starting_point(), and find_next_iface_in_span().

struct sig_pri_span* pri

Definition at line 951 of file chan_dahdi.c.

Referenced by __unload_module(), dahdi_bridge(), dahdi_cc_callback(), dahdi_handle_event(), dahdi_new(), dahdi_nobch_extract(), dahdi_nobch_insert(), dahdi_pri_update_span_devstate(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_unlink_pri_pvt(), destroy_all_channels(), destroy_dahdi_pvt(), is_group_or_channel_match(), my_handle_dchan_exception(), pri_resolve_span(), and unload_module().

unsigned int priexclusive

TRUE if PRI B channels are always exclusively selected.

Note:
Set from the "priexclusive" value read in from chan_dahdi.conf

Definition at line 849 of file chan_dahdi.c.

unsigned int priindication_oob

TRUE if PRI congestion/busy indications are sent out-of-band.

Note:
Set from the "priindication" value read in from chan_dahdi.conf

Definition at line 844 of file chan_dahdi.c.

int propconfno

Propagated conference number

Definition at line 1033 of file chan_dahdi.c.

Referenced by dahdi_show_channel().

unsigned int pulse

TRUE if we will pulse dial.

Note:
Set from the "pulsedial" value read in from chan_dahdi.conf

Definition at line 854 of file chan_dahdi.c.

Referenced by dahdi_digit_begin(), and dahdi_digit_end().

unsigned int pulsedial

TRUE if a pulsed digit was detected. (Pulse dial phone detected).

Definition at line 856 of file chan_dahdi.c.

Referenced by dahdi_bridge(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_show_channel(), and my_set_pulsedial().

openr2_chan_t* r2chan

Definition at line 1195 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_r2_answer(), dahdi_r2_disconnect_call(), dahdi_read(), dahdi_show_channel(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), and handle_mfcr2_show_channels().

int radio

Nonzero if the signaling type is sent over a radio.

Note:
Set to a couple of nonzero values but it is only tested like a boolean.

Definition at line 689 of file chan_dahdi.c.

Referenced by __dahdi_exception(), available(), dahdi_answer(), dahdi_call(), dahdi_dnd(), dahdi_exception(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_read(), dahdi_request(), dahdi_show_channel(), do_monitor(), handle_init_event(), and mwi_thread().

char rdnis[AST_MAX_EXTENSION]

Redirecting Directory Number Information Service (RDNIS) number.

Definition at line 1019 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), dahdi_r2_on_call_init(), dahdi_r2_on_dnis_digit_received(), and my_set_rdnis().

unsigned int remotelyblocked

TRUE if the channel is remotely blocked.

Note:
Applies to SS7 and MFCR2 channels.

Definition at line 943 of file chan_dahdi.c.

Referenced by available(), dahdi_r2_on_line_blocked(), and dahdi_r2_on_line_idle().

unsigned int restartpending

flag to ensure counted only once for restart

Definition at line 857 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_softhangup_all().

unsigned int restrictcid

TRUE if caller ID is restricted.

Note:
Set but not used. Should be deleted. Redundant with permhidecallerid.

Set from the "restrictcid" value read in from chan_dahdi.conf

Definition at line 863 of file chan_dahdi.c.

int ringt

Ring timeout timer??

Definition at line 1067 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), handle_init_event(), mwi_thread(), and my_set_ringtimeout().

int ringt_base

Ring timeout base.

Note:
Value computed indirectly from "ringtimeout" read in from chan_dahdi.conf

Definition at line 1072 of file chan_dahdi.c.

Referenced by analog_ss_thread(), dahdi_handle_event(), handle_init_event(), and mwi_thread().

float rxdrc

Definition at line 701 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_set_swgain(), dahdi_setoption(), dahdi_show_channel(), my_pri_open_media(), and restore_gains().

float rxgain

Rx gain set by chan_dahdi.conf.

Definition at line 696 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_func_read(), dahdi_setoption(), dahdi_show_channel(), my_pri_open_media(), and restore_gains().

struct dahdi_confinfo saveconf

Saved conference info

Definition at line 673 of file chan_dahdi.c.

Referenced by restore_conference(), and save_conference().

int sendcalleridafter

Send caller ID on FXS after this many rings. Set to 1 for US.

Note:
Set from the "sendcalleridafter" value read in from chan_dahdi.conf

Definition at line 1184 of file chan_dahdi.c.

Referenced by my_set_cadence().

int sig

Signalling style

Definition at line 684 of file chan_dahdi.c.

Referenced by action_dahdishowchannels(), analog_ss_thread(), available(), build_channels(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_confmute(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_dnd(), dahdi_enable_ec(), dahdi_exception(), dahdi_func_read(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_queryoption(), dahdi_read(), dahdi_request(), dahdi_send_callrerouting_facility_exec(), dahdi_setoption(), dahdi_show_channel(), destroy_dahdi_pvt(), do_monitor(), handle_init_event(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), handle_mfcr2_show_channels(), mwi_thread(), my_is_off_hook(), and my_new_pri_ast_channel().

void* sig_pvt

Definition at line 1214 of file chan_dahdi.c.

Referenced by available(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_confmute(), dahdi_digit_begin(), dahdi_dnd(), dahdi_enable_ec(), dahdi_exception(), dahdi_func_read(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_read(), dahdi_request(), dahdi_send_callrerouting_facility_exec(), dahdi_send_keypad_facility_exec(), dahdi_setoption(), dahdi_unlink_pri_pvt(), destroy_dahdi_pvt(), do_monitor(), handle_init_event(), mwi_thread(), my_distinctive_ring(), my_get_callerid(), my_get_sigpvt_bridged_channel(), and my_new_pri_ast_channel().

int silencethreshold

Maximun signal average level considered as silence in this channel.

Note:
Set from the "silencethreshold" value read in from chan_dahdi.conf

Definition at line 1130 of file chan_dahdi.c.

Referenced by dahdi_new().

struct dahdi_pvt* slaves[MAX_SLAVES]

Slave to us (follows our conferencing)

Definition at line 675 of file chan_dahdi.c.

Referenced by dahdi_link(), dahdi_show_channel(), dahdi_unlink(), isslavenative(), and my_complete_conference_update().

struct ast_smdi_interface* smdi_iface

The SMDI interface to get SMDI messages from.

Definition at line 961 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and destroy_dahdi_pvt().

int span

Span number

Definition at line 1050 of file chan_dahdi.c.

Referenced by dahdi_show_channel(), destroy_all_channels(), find_next_iface_in_span(), get_alarms(), handle_alarms(), and handle_clear_alarms().

int stripmsd

Number of most significant digits/characters to strip from the dialed number.

Note:
Feature is deprecated. Use dialplan logic.

The characters are stripped before the PRI TON/NPI prefix characters are processed.

Definition at line 1079 of file chan_dahdi.c.

Referenced by dahdi_call().

struct dahdi_subchannel sub_unused

Just a safety precaution

Definition at line 671 of file chan_dahdi.c.

struct dahdi_subchannel subs[3]

Sub-channels

Definition at line 672 of file chan_dahdi.c.

Referenced by __dahdi_exception(), _dahdi_get_index(), alloc_sub(), analog_ss_thread(), attempt_transfer(), bump_gains(), check_for_conference(), dahdi_bridge(), dahdi_call(), dahdi_close_sub(), dahdi_confmute(), dahdi_destroy_channel_bynum(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_fixup(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_lock_sub_owner(), dahdi_new(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_answered(), dahdi_r2_on_call_disconnect(), dahdi_read(), dahdi_ring_phone(), dahdi_sendtext(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), dahdi_unlink(), dahdi_wink(), dahdi_write(), destroy_channel(), disable_dtmf_detect(), do_monitor(), enable_dtmf_detect(), get_alarms(), handle_init_event(), isslavenative(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), mwi_thread(), my_all_subchannels_hungup(), my_complete_conference_update(), my_conf_add(), my_conf_del(), my_dahdi_write(), my_dial_digits(), my_distinctive_ring(), my_flash(), my_get_callerid(), my_get_event(), my_get_sub_fd(), my_handle_dtmf(), my_is_dialing(), my_is_off_hook(), my_new_pri_ast_channel(), my_off_hook(), my_on_hook(), my_play_tone(), my_pri_fixup_chans(), my_pri_open_media(), my_pri_play_tone(), my_set_cadence(), my_set_inthreeway(), my_set_linear_mode(), my_set_needringing(), my_set_polarity(), my_start(), my_start_cid_detect(), my_stop_cid_detect(), my_swap_subchannels(), my_wait_event(), reset_conf(), restore_conference(), restore_gains(), revert_fax_buffers(), save_conference(), send_callerid(), swap_subs(), unalloc_sub(), update_conf(), and wakeup_sub().

struct tdd_state* tdd

TDD flag

Definition at line 1152 of file chan_dahdi.c.

Referenced by dahdi_read(), dahdi_sendtext(), dahdi_setoption(), and dahdi_show_channel().

unsigned int threewaycalling

TRUE if three way calling is enabled.

Note:
Set from the "threewaycalling" value read in from chan_dahdi.conf

Definition at line 868 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

int tonezone

tone zone for this chan, or -1 for default

Definition at line 703 of file chan_dahdi.c.

unsigned int transfer

TRUE if call transfer is enabled.

Note:
For FXS ports (either direct analog or over T1/E1): Support flash-hook call transfer

For digital ports using ISDN PRI protocols: Support switch-side transfer (called 2BCT, RLT or other names)

Set from the "transfer" value read in from chan_dahdi.conf

Definition at line 877 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and dahdi_handle_event().

unsigned int transfertobusy

TRUE if allowed to flash-transfer to busy channels.

Note:
Set from the "transfertobusy" value read in from chan_dahdi.conf

Definition at line 908 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

float txdrc

Dynamic Range Compression factor. a number between 1 and 6ish

Definition at line 700 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_set_swgain(), dahdi_setoption(), dahdi_show_channel(), my_pri_open_media(), and restore_gains().

float txgain

Tx gain set by chan_dahdi.conf.

Definition at line 698 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_func_read(), dahdi_setoption(), dahdi_show_channel(), my_pri_open_media(), and restore_gains().

unsigned int use_callerid

TRUE if caller ID is used on this channel.

Note:
PRI and SS7 spans will save caller ID from the networking peer.

FXS ports will generate the caller ID spill.

FXO ports will listen for the caller ID spill.

Set from the "usecallerid" value read in from chan_dahdi.conf

Definition at line 885 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and dahdi_r2_on_call_offered().

unsigned int use_callingpres

TRUE if we will use the calling presentation setting from the Asterisk channel for outgoing calls.

Note:
Only applies to PRI and SS7 channels.

Set from the "usecallingpres" value read in from chan_dahdi.conf

Definition at line 892 of file chan_dahdi.c.

unsigned int use_smdi

TRUE if SMDI (Simplified Message Desk Interface) is enabled.

Note:
Set from the "usesmdi" value read in from chan_dahdi.conf

Definition at line 958 of file chan_dahdi.c.

Referenced by analog_ss_thread(), and destroy_dahdi_pvt().

unsigned int usedistinctiveringdetection

TRUE if distinctive rings are to be detected.

Note:
For FXO lines

Set indirectly from the "usedistinctiveringdetection" value read in from chan_dahdi.conf

Definition at line 898 of file chan_dahdi.c.

Referenced by analog_ss_thread().

unsigned int usefaxbuffers

TRUE if dynamic faxbuffers are configured for use, default is OFF

Definition at line 789 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), and my_handle_dtmf().

struct ast_variable* vars

Channel variable list with associated values to set when a channel is created.

Note:
The "setvar" strings read in from chan_dahdi.conf

Definition at line 1048 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_show_channel(), and destroy_dahdi_pvt().

int waitfordialtone

Number of milliseconds to wait for dialtone.

Note:
Set from the "waitfordialtone" value read in from chan_dahdi.conf

Definition at line 1140 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_read(), dahdi_show_channel(), and my_set_waitingfordt().

struct timeval waitingfordt

Time we started waiting for dialtone

Definition at line 1141 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), my_check_waitingfordt(), and my_set_waitingfordt().

enum DAHDI_IFLIST which_iflist

Which interface list is this structure listed?

Definition at line 704 of file chan_dahdi.c.

Referenced by dahdi_iflist_extract(), dahdi_iflist_insert(), dahdi_nobch_extract(), dahdi_nobch_insert(), and destroy_dahdi_pvt().

int whichwink

SIG_FEATDMF_TA Which wink are we on?

Definition at line 1147 of file chan_dahdi.c.

Referenced by dahdi_handle_event().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 27 16:51:24 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7