Sat Aug 6 00:40:08 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.
unsigned int allocated:1
 TRUE when this channel is allocated.
unsigned int alreadyhungup:1
 TRUE if the call has already gone/hungup.
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.
dahdi_pvtbearer
 XXX Purpose???
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.
q931_call * call
 Opaque libpri call control structure.
char call_forward [AST_MAX_EXTENSION]
 Accumulated call forwarding number.
enum dahdi_call_level call_level
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.
int channel
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.
int cid_signalling
int cid_start
int cid_suppress_expire
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.
int cidrings
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.
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.
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.
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.
int echocancel
 Number of echo cancel taps. 0 if echo canceller not requested.
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.
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 isidlecall:1
 TRUE if this is an idle call.
char language [MAX_LANGUAGE]
 Language configured for calls.
char lastcid_name [AST_MAX_EXTENSION]
 Last Caller ID name from an incoming call.
char lastcid_num [AST_MAX_EXTENSION]
 Last Caller ID number from an incoming call.
int law
 Active PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.
ast_mutex_t lock
int logicalspan
 Logical span number within trunk group.
char mailbox [AST_MAX_EXTENSION]
 Voice mailbox location.
dahdi_pvtmaster
unsigned int mate:1
 TRUE if TDD in MATE mode.
dahdi_mfcr2mfcr2
int mfcr2_accept_on_offer
int mfcr2_allow_collect_calls
int mfcr2_ani_index
int mfcr2_call_accepted
openr2_calling_party_category_t mfcr2_category
int mfcr2_charge_calls
int mfcr2_dnis_index
int mfcr2_dnis_matched
int mfcr2_forced_release
openr2_calling_party_category_t mfcr2_recvd_category
int mfcr2block
int mfcr2call
char mohinterpret [MAX_MUSICCLASS]
 The configured music-on-hold class to use for calls.
char mohsuggest [MAX_MUSICCLASS]
 Sugggested music-on-hold class for peer channel to use for calls.
int msgstate
 -1 = unknown, 0 = no messages, 1 = new messages available
dahdi_pvtnext
int onhooktime
 Time the interface went on-hook.
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
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
dahdi_pripri
 DAHDI PRI control parameters.
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 prioffset
 Channel number in span.
unsigned int progress:1
 TRUE if the call has seen inband-information progress through the network.
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.
dahdi_pvtrealcall
 XXX Purpose???
unsigned int resetting:1
 TRUE if this channel is being reset/restarted.
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 rxgain
 Rx gain set by chan_dahdi.conf.
dahdi_confinfo saveconf
int sendcalleridafter
 Send caller ID after this many rings.
int sig
int silencethreshold
 Maximun signal average level considered as silence in this channel.
dahdi_pvtslaves [MAX_SLAVES]
ast_smdi_interfacesmdi_iface
 The serial port to listen for SMDI data on.
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 txgain
 Tx gain set by chan_dahdi.conf.
unsigned int unknown_alarm:1
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.
int whichwink

Detailed Description

Definition at line 514 of file chan_dahdi.c.


Field Documentation

char accountcode[AST_MAX_ACCOUNT_CODE]

Account code

Definition at line 950 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

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 553 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

unsigned int allocated

TRUE when this channel is allocated.

Needed to hold an outgoing channel allocation before the owner pointer is created.

Note:
This is one of several items to check to see if a channel is available for use.

Definition at line 672 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_request(), dahdi_show_channel(), sig_pri_available(), and sig_pri_is_chan_in_use().

unsigned int alreadyhungup

TRUE if the call has already gone/hungup.

Definition at line 764 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_new().

int amaflags

AMA Flags

Definition at line 951 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

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 559 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and process_dahdi().

struct dahdi_pvt* bearer

XXX Purpose???

Definition at line 987 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_request(), dahdi_show_channel(), and pri_assign_bearer().

char begindigit

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

Definition at line 1020 of file chan_dahdi.c.

Referenced by dahdi_digit_begin(), and dahdi_digit_end().

int buf_no

Number of buffers

Definition at line 528 of file chan_dahdi.c.

Referenced by alloc_sub(), dahdi_hangup(), and process_dahdi().

int buf_policy

Buffer policy

Definition at line 529 of file chan_dahdi.c.

Referenced by alloc_sub(), dahdi_hangup(), and process_dahdi().

unsigned int bufferoverrideinuse

Definition at line 625 of file chan_dahdi.c.

Referenced by dahdi_func_write(), and dahdi_hangup().

int bufsize

Size of the buffers

Definition at line 527 of file chan_dahdi.c.

Referenced by dahdi_func_write(), and dahdi_hangup().

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 915 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

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 910 of file chan_dahdi.c.

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

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 565 of file chan_dahdi.c.

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

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 930 of file chan_dahdi.c.

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

int busyquietlength

Lenght of "silence" in ms.

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

Definition at line 925 of file chan_dahdi.c.

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

int busytonelength

Lenght of "tone" in ms.

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

Definition at line 920 of file chan_dahdi.c.

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

q931_call* call

Opaque libpri call control structure.

Definition at line 991 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_digit_begin(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_show_channel(), mkintf(), pri_assign_bearer(), pri_find_principle_by_call(), pri_fixup_principle(), send_keypad_facility_exec(), sig_pri_is_chan_in_use(), sig_pri_kill_call(), and ss_thread().

char call_forward[AST_MAX_EXTENSION]

Accumulated call forwarding number.

Definition at line 954 of file chan_dahdi.c.

Referenced by dahdi_new(), and ss_thread().

enum dahdi_call_level call_level

Call establishment life cycle level for simple comparisons.

Definition at line 779 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_call(), dahdi_digit_begin(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), and ss_thread().

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 851 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

int callingpres

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

Definition at line 864 of file chan_dahdi.c.

Referenced by dahdi_new().

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 940 of file chan_dahdi.c.

Referenced by dahdi_handle_dtmf(), dahdi_new(), dahdi_show_channel(), and process_dahdi().

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 571 of file chan_dahdi.c.

Referenced by process_dahdi(), and ss_thread().

char callwait_name[AST_MAX_EXTENSION]

Call waiting name.

Definition at line 832 of file chan_dahdi.c.

Referenced by dahdi_call(), and send_cwcidspill().

char callwait_num[AST_MAX_EXTENSION]

Call waiting number.

Definition at line 830 of file chan_dahdi.c.

Referenced by dahdi_call(), and 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 894 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_callwait(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_show_channel(), 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 578 of file chan_dahdi.c.

Referenced by available(), dahdi_bridge(), dahdi_hangup(), process_dahdi(), and ss_thread().

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 583 of file chan_dahdi.c.

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

int callwaitingrepeat

How many samples to wait before repeating call waiting

Definition at line 865 of file chan_dahdi.c.

Referenced by dahdi_callwait(), and dahdi_hangup().

int callwaitrings

Number of call waiting rings.

Definition at line 896 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_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 590 of file chan_dahdi.c.

Referenced by process_dahdi(), and 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 595 of file chan_dahdi.c.

Referenced by process_dahdi(), and ss_thread().

int channel

Channel Number or CRV

Definition at line 857 of file chan_dahdi.c.

Referenced by __action_dialoffhook(), __action_dnd(), __action_showchannels(), __action_transfer(), __action_transferhangup(), __dahdi_exception(), _dahdi_get_index(), alloc_sub(), available(), check_for_conference(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_confmute(), dahdi_destroy_channel_bynum(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_fixup(), dahdi_func_write(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_r2_disconnect_call(), dahdi_r2_on_call_accepted(), dahdi_r2_on_call_end(), dahdi_r2_on_call_offered(), dahdi_r2_on_hardware_alarm(), dahdi_r2_on_line_blocked(), dahdi_read(), dahdi_request(), dahdi_sendtext(), dahdi_setoption(), dahdi_show_channel(), dahdi_show_channels(), dahdi_train_ec(), dahdi_write(), destroy_all_channels(), do_idle_thread(), enable_dtmf_detect(), find_channel(), get_alarms(), handle_alarms(), handle_init_event(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), handle_mfcr2_show_channels(), isourconf(), mfcr2_monitor(), mkintf(), my_dahdi_write(), pri_dchannel(), pri_find_crv(), reset_conf(), ss_thread(), and unalloc_sub().

char cid_name[AST_MAX_EXTENSION]

Caller ID name from an incoming call.

Definition at line 822 of file chan_dahdi.c.

Referenced by 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(), process_dahdi(), and ss_thread().

char cid_num[AST_MAX_EXTENSION]

Caller ID number from an incoming call.

Definition at line 818 of file chan_dahdi.c.

Referenced by 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(), process_dahdi(), and ss_thread().

int cid_signalling

CID signalling type bell202 or v23

Definition at line 860 of file chan_dahdi.c.

Referenced by process_dahdi(), and ss_thread().

int cid_start

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

Definition at line 861 of file chan_dahdi.c.

Referenced by dahdi_read(), do_monitor(), handle_init_event(), process_dahdi(), and ss_thread().

int cid_suppress_expire

How many samples to suppress after a CID spill.

Definition at line 867 of file chan_dahdi.c.

Referenced by dahdi_hangup(), send_callerid(), and send_cwcidspill().

int cid_ton

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

Definition at line 820 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_show_channel().

int cidcwexpire

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

Definition at line 866 of file chan_dahdi.c.

Referenced by dahdi_hangup(), send_callerid(), and send_cwcidspill().

int cidlen

Length of the cidspill buffer containing samples.

Definition at line 873 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_callwait(), send_callerid(), and send_cwcidspill().

int cidpos

Position in the cidspill buffer to send out next.

Definition at line 871 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_callwait(), send_callerid(), and send_cwcidspill().

int cidrings

Which ring to deliver CID on

Definition at line 967 of file chan_dahdi.c.

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

unsigned char* cidspill

Analog caller ID waveform sample buffer.

Definition at line 869 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_callwait(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_write(), destroy_dahdi_pvt(), do_monitor(), handle_init_event(), send_callerid(), and send_cwcidspill().

unsigned int confirmanswer

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

Definition at line 597 of file chan_dahdi.c.

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

int confno

Our conference

Definition at line 844 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 845 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 791 of file chan_dahdi.c.

Referenced by __action_showchannels(), dahdi_new(), dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), dahdi_show_channel(), dahdi_show_channels(), handle_mfcr2_show_channels(), process_dahdi(), and ss_thread().

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 751 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and process_dahdi().

char defcontext[AST_MAX_CONTEXT]

Saved context string.

Definition at line 795 of file chan_dahdi.c.

Referenced by ss_thread().

unsigned int destroy

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

Definition at line 602 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_show_channel().

char dialdest[256]

Delayed dialing for E911. Overlap digits for ISDN.

Definition at line 961 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_digit_begin(), and dahdi_handle_event().

unsigned int dialednone

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

Definition at line 605 of file chan_dahdi.c.

Referenced by dahdi_call().

unsigned int dialing

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

Definition at line 607 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_r2_on_call_accepted(), dahdi_show_channel(), and dahdi_write().

unsigned int didtdd

flag to say its done it once

Definition at line 603 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_setoption().

unsigned int digital

TRUE if the transfer capability of the call is digital.

Definition at line 609 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_call(), dahdi_enable_ec(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), and dahdi_request().

int distinctivering

Which distinctivering to use

Definition at line 966 of file chan_dahdi.c.

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

unsigned int dnd

TRUE if Do-Not-Disturb is enabled.

Definition at line 611 of file chan_dahdi.c.

Referenced by __action_dnd(), __action_showchannels(), available(), and ss_thread().

char dnid[AST_MAX_EXTENSION]

Dialed Number Identifier.

Definition at line 836 of file chan_dahdi.c.

Referenced by dahdi_new().

struct dahdi_dialoperation dop

DAHDI dial operation command struct for ioctl() call.

Definition at line 946 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), dahdi_indicate(), and ss_thread().

struct dahdi_distRings drings

Distinctive Ring data.

Definition at line 785 of file chan_dahdi.c.

Referenced by ss_thread().

struct ast_dsp* dsp

Opaque DSP configuration structure.

Definition at line 943 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), dahdi_setoption(), dahdi_show_channel(), disable_dtmf_detect(), enable_dtmf_detect(), and ss_thread().

int dsp_features

DSP feature flags: DSP_FEATURE_xxx.

Definition at line 1018 of file chan_dahdi.c.

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

struct timeval dtmfcid_delay

Time value used for allow line to settle

Definition at line 863 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 862 of file chan_dahdi.c.

int dtmfrelax

whether to run in relaxed DTMF mode

Definition at line 968 of file chan_dahdi.c.

Referenced by dahdi_hangup(), dahdi_new(), dahdi_setoption(), dahdi_show_channel(), process_dahdi(), and ss_thread().

unsigned int echobreak

XXX BOOLEAN Purpose???

Definition at line 613 of file chan_dahdi.c.

Referenced by dahdi_call(), and 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 619 of file chan_dahdi.c.

Referenced by dahdi_bridge(), dahdi_show_channel(), and process_dahdi().

int echocancel

Number of echo cancel taps. 0 if echo canceller not requested.

Definition at line 898 of file chan_dahdi.c.

Referenced by dahdi_disable_ec(), dahdi_enable_ec(), dahdi_show_channel(), dahdi_train_ec(), and process_dahdi().

unsigned int echocanon

TRUE if echo cancellation is turned on.

Definition at line 621 of file chan_dahdi.c.

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

char echorest[20]

Filled with 'w'. XXX Purpose??

Definition at line 905 of file chan_dahdi.c.

Referenced by dahdi_call(), and 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 903 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), dahdi_train_ec(), and process_dahdi().

char exten[AST_MAX_EXTENSION]

Extension to use in the dialplan.

Definition at line 797 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(), dahdi_show_channels(), and ss_thread().

int fake_event

Holding place for event injected from outside normal operation.

Definition at line 970 of file chan_dahdi.c.

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

unsigned int faxhandled

TRUE if a fax tone has already been handled.

TRUE while buffer configuration override is in use.

Definition at line 624 of file chan_dahdi.c.

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

char finaldial[64]

Second part of SIG_FEATDMF_TA wink operation.

Definition at line 949 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_handle_event().

unsigned int firstradio

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

Definition at line 627 of file chan_dahdi.c.

Referenced by dahdi_read().

struct timeval flashtime

Last flash-hook time

Definition at line 941 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 841 of file chan_dahdi.c.

Referenced by available(), handle_mfcr2_show_channels(), and process_dahdi().

time_t guardtime

Must wait this much time before using for new call

Definition at line 859 of file chan_dahdi.c.

Referenced by available(), and 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 632 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_handle_event(), handle_init_event(), and process_dahdi().

unsigned int hardwaredtmf

TRUE if DTMF detection needs to be done by hardware.

Definition at line 634 of file chan_dahdi.c.

Referenced by dahdi_new(), disable_dtmf_detect(), enable_dtmf_detect(), and ss_thread().

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 641 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_hangup(), process_dahdi(), and ss_thread().

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 647 of file chan_dahdi.c.

Referenced by dahdi_call(), and process_dahdi().

unsigned int ignoredtmf

TRUE if DTMF detection is disabled.

Definition at line 649 of file chan_dahdi.c.

Referenced by dahdi_hangup(), 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 655 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_offered(), dahdi_r2_on_dnis_digit_received(), handle_init_event(), process_dahdi(), and ss_thread().

unsigned int inalarm

TRUE if in an alarm condition.

Definition at line 657 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), dahdi_r2_on_hardware_alarm(), dahdi_read(), dahdi_request(), dahdi_show_channel(), handle_init_event(), sig_pri_is_chan_in_use(), and ss_thread().

int inconference

If our real should be in the conference

Definition at line 525 of file chan_dahdi.c.

Referenced by dahdi_show_channel().

unsigned int isidlecall

TRUE if this is an idle call.

Note:
Applies to PRI channels.

Definition at line 769 of file chan_dahdi.c.

Referenced by dahdi_new(), and pri_dchannel().

char language[MAX_LANGUAGE]

Language configured for calls.

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

Definition at line 802 of file chan_dahdi.c.

Referenced by dahdi_new(), dahdi_show_channels(), and process_dahdi().

char lastcid_name[AST_MAX_EXTENSION]

Last Caller ID name from an incoming call.

Definition at line 826 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_read().

char lastcid_num[AST_MAX_EXTENSION]

Last Caller ID number from an incoming call.

Definition at line 824 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_read(), and ss_thread().

int law

Active PCM encoding format: DAHDI_LAW_ALAW or DAHDI_LAW_MULAW.

Definition at line 843 of file chan_dahdi.c.

Referenced by bump_gains(), dahdi_call(), dahdi_hangup(), dahdi_setoption(), dahdi_show_channel(), mkintf(), and restore_gains().

ast_mutex_t lock

Channel private lock.

Definition at line 515 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_handle_dtmf(), dahdi_hangup(), dahdi_indicate(), 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(), handle_mfcr2_set_blocked(), handle_mfcr2_set_idle(), mfcr2_monitor(), pri_grab(), pri_hangup_all(), send_keypad_facility_exec(), sig_pri_kill_call(), and ss_thread().

int logicalspan

Logical span number within trunk group.

Definition at line 995 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_show_channel(), mkintf(), pri_find_empty_chan(), and pri_find_principle().

char mailbox[AST_MAX_EXTENSION]

Voice mailbox location.

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

Definition at line 959 of file chan_dahdi.c.

Referenced by has_voicemail(), and process_dahdi().

struct dahdi_pvt* master

Master to us (we follow their conferencing)

Definition at line 524 of file chan_dahdi.c.

Referenced by check_for_conference(), and dahdi_show_channel().

unsigned int mate

TRUE if TDD in MATE mode.

Definition at line 660 of file chan_dahdi.c.

Referenced by dahdi_sendtext(), and dahdi_setoption().

struct dahdi_mfcr2* mfcr2

Definition at line 1001 of file chan_dahdi.c.

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

int mfcr2_accept_on_offer

Definition at line 1005 of file chan_dahdi.c.

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

int mfcr2_allow_collect_calls

Definition at line 1007 of file chan_dahdi.c.

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

int mfcr2_ani_index

Definition at line 1010 of file chan_dahdi.c.

Referenced by dahdi_r2_on_ani_digit_received(), dahdi_r2_on_call_init(), and mkintf().

int mfcr2_call_accepted

Definition at line 1012 of file chan_dahdi.c.

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

openr2_calling_party_category_t mfcr2_category

Definition at line 1004 of file chan_dahdi.c.

Referenced by dahdi_r2_get_channel_category(), and mkintf().

int mfcr2_charge_calls

Definition at line 1006 of file chan_dahdi.c.

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

int mfcr2_dnis_index

Definition at line 1009 of file chan_dahdi.c.

Referenced by dahdi_r2_on_call_init(), dahdi_r2_on_dnis_digit_received(), and mkintf().

int mfcr2_dnis_matched

Definition at line 1011 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 1008 of file chan_dahdi.c.

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

openr2_calling_party_category_t mfcr2_recvd_category

Definition at line 1003 of file chan_dahdi.c.

Referenced by dahdi_new(), and dahdi_r2_on_call_offered().

int mfcr2block

Definition at line 1000 of file chan_dahdi.c.

Referenced by available(), dahdi_r2_on_line_blocked(), dahdi_r2_on_line_idle(), dahdi_request(), dahdi_show_channel(), handle_mfcr2_set_blocked(), handle_mfcr2_set_idle(), and mkintf().

int mfcr2call

Definition at line 999 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(), dahdi_request(), dahdi_show_channel(), handle_mfcr2_set_idle(), and mkintf().

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 807 of file chan_dahdi.c.

Referenced by dahdi_indicate(), dahdi_show_channels(), and process_dahdi().

char mohsuggest[MAX_MUSICCLASS]

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

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

Definition at line 812 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), dahdi_hangup(), and process_dahdi().

int msgstate

-1 = unknown, 0 = no messages, 1 = new messages available

Definition at line 965 of file chan_dahdi.c.

Referenced by dahdi_handle_event().

struct dahdi_pvt* next

Next channel in list

Definition at line 544 of file chan_dahdi.c.

Referenced by __action_showchannels(), __oh323_destroy(), __unload_module(), chandup(), dahdi_destroy_channel_bynum(), dahdi_hangup(), dahdi_request(), dahdi_restart(), dahdi_show_channel(), dahdi_show_channels(), dahdi_softhangup_all(), destroy_all_channels(), destroy_channel(), destroy_dahdi_pvt(), find_channel(), handle_mfcr2_call_files(), handle_mfcr2_set_blocked(), handle_mfcr2_set_debug(), handle_mfcr2_set_idle(), handle_mfcr2_show_channels(), mkintf(), and pri_find_crv().

int onhooktime

Time the interface went on-hook.

Definition at line 963 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_hangup().

int oprmode

"Operator Services" mode

Definition at line 537 of file chan_dahdi.c.

Referenced by __dahdi_exception(), available(), dahdi_answer(), dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), and dahdi_setoption().

struct dahdi_pvt* oprpeer

"Operator Services" peer tech_pvt ptr

Definition at line 538 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_setoption().

char* origcid_name

malloced original callerid

Definition at line 828 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and dahdi_hangup().

char* origcid_num

malloced original callerid

Definition at line 827 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 675 of file chan_dahdi.c.

Referenced by available(), dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), and dahdi_request().

int outsigmod

Outbound Signalling style (modifier)

Definition at line 536 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_handle_event(), mkintf(), and process_dahdi().

struct ast_channel* owner

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

Definition at line 516 of file chan_dahdi.c.

Referenced by __action_dialoffhook(), __dahdi_exception(), __unload_module(), available(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_fake_event(), dahdi_fixup(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_r2_answer(), dahdi_r2_on_call_disconnect(), dahdi_r2_on_protocol_error(), dahdi_request(), dahdi_restart(), dahdi_show_channel(), dahdi_softhangup_all(), dahdi_write(), destroy_channel(), destroy_dahdi_pvt(), do_monitor(), pri_assign_bearer(), pri_dchannel(), pri_queue_frame(), sig_pri_is_chan_in_use(), sig_pri_kill_call(), sig_pri_lock_owner(), and ss_thread().

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 682 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 687 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 856 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

int polarity

Current line interface polarity. POLARITY_IDLE, POLARITY_REV.

Definition at line 1016 of file chan_dahdi.c.

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

struct timeval polaritydelaytv

Start delay time if polarityonanswerdelay is nonzero.

Definition at line 977 of file chan_dahdi.c.

Referenced by dahdi_answer(), and dahdi_handle_event().

int polarityonanswerdelay

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

Definition at line 975 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and process_dahdi().

struct dahdi_pvt* prev

Prev channel in list

Definition at line 545 of file chan_dahdi.c.

Referenced by chandup(), dahdi_destroy_channel_bynum(), dahdi_hangup(), dahdi_request(), destroy_channel(), destroy_dahdi_pvt(), and mkintf().

struct dahdi_pri* pri

DAHDI PRI control parameters.

Definition at line 985 of file chan_dahdi.c.

Referenced by available(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_digit_begin(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_request(), dahdi_show_channel(), do_idle_thread(), mkintf(), pri_active_dchan_fd(), pri_assign_bearer(), pri_dchannel(), pri_find_crv(), pri_find_fixup_principle(), pri_fixup_principle(), pri_grab(), pri_is_up(), pri_queue_frame(), send_keypad_facility_exec(), sig_pri_available(), sig_pri_lock_owner(), and ss_thread().

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 697 of file chan_dahdi.c.

Referenced by dahdi_call(), mkintf(), and process_dahdi().

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 692 of file chan_dahdi.c.

Referenced by dahdi_indicate(), mkintf(), and process_dahdi().

int prioffset

Channel number in span.

Definition at line 993 of file chan_dahdi.c.

Referenced by dahdi_indicate(), mkintf(), pri_find_empty_chan(), and pri_find_principle().

unsigned int progress

TRUE if the call has seen inband-information progress through the network.

Definition at line 771 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and dahdi_indicate().

int propconfno

Propagated conference number

Definition at line 846 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 702 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_digit_begin(), dahdi_digit_end(), and process_dahdi().

unsigned int pulsedial

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

Definition at line 704 of file chan_dahdi.c.

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

openr2_chan_t* r2chan

Definition at line 1002 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(), handle_mfcr2_show_channels(), mfcr2_monitor(), and mkintf().

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 535 of file chan_dahdi.c.

Referenced by __dahdi_exception(), available(), dahdi_answer(), dahdi_call(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_read(), dahdi_show_channel(), do_monitor(), handle_init_event(), and process_dahdi().

char rdnis[AST_MAX_EXTENSION]

Redirecting Directory Number Information Service (RDNIS) number.

Definition at line 834 of file chan_dahdi.c.

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

struct dahdi_pvt* realcall

XXX Purpose???

Definition at line 989 of file chan_dahdi.c.

Referenced by dahdi_hangup(), and pri_assign_bearer().

unsigned int resetting

TRUE if this channel is being reset/restarted.

Note:
Applies to PRI channels.

Definition at line 776 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), dahdi_show_channel(), handle_init_event(), pri_check_restart(), and sig_pri_is_chan_in_use().

unsigned int restartpending

flag to ensure counted only once for restart

Definition at line 705 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 711 of file chan_dahdi.c.

Referenced by process_dahdi().

int ringt

Ring timeout timer??

Definition at line 875 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), handle_init_event(), and ss_thread().

int ringt_base

Ring timeout base.

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

Definition at line 880 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), handle_init_event(), and ss_thread().

float rxgain

Rx gain set by chan_dahdi.conf.

Definition at line 540 of file chan_dahdi.c.

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

struct dahdi_confinfo saveconf

Saved conference info

Definition at line 521 of file chan_dahdi.c.

Referenced by restore_conference(), and save_conference().

int sendcalleridafter

Send caller ID after this many rings.

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

Definition at line 982 of file chan_dahdi.c.

Referenced by dahdi_call(), and process_dahdi().

int sig

Signalling style

Definition at line 530 of file chan_dahdi.c.

Referenced by __action_showchannels(), available(), build_channels(), dahdi_answer(), dahdi_bridge(), dahdi_call(), dahdi_confmute(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_enable_ec(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_request(), dahdi_show_channel(), 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(), mkintf(), process_dahdi(), and ss_thread().

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 935 of file chan_dahdi.c.

Referenced by dahdi_new(), and process_dahdi().

struct dahdi_pvt* slaves[MAX_SLAVES]

Slave to us (follows our conferencing)

Definition at line 523 of file chan_dahdi.c.

Referenced by dahdi_show_channel(), and isslavenative().

struct ast_smdi_interface* smdi_iface

The serial port to listen for SMDI data on.

Definition at line 782 of file chan_dahdi.c.

Referenced by destroy_dahdi_pvt(), and ss_thread().

int span

Span number

Definition at line 858 of file chan_dahdi.c.

Referenced by dahdi_answer(), dahdi_digit_begin(), dahdi_indicate(), dahdi_show_channel(), get_alarms(), mkintf(), and ss_thread().

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 887 of file chan_dahdi.c.

Referenced by dahdi_call(), and process_dahdi().

struct dahdi_subchannel sub_unused

Just a safety precaution

Definition at line 519 of file chan_dahdi.c.

struct dahdi_subchannel subs[3]

Sub-channels

Definition at line 520 of file chan_dahdi.c.

Referenced by __dahdi_exception(), _dahdi_get_index(), alloc_sub(), attempt_transfer(), available(), bump_gains(), check_for_conference(), dahdi_answer(), 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_request(), dahdi_restart(), dahdi_ring_phone(), dahdi_sendtext(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), dahdi_wink(), dahdi_write(), destroy_channel(), disable_dtmf_detect(), do_monitor(), enable_dtmf_detect(), get_alarms(), handle_init_event(), isslavenative(), mfcr2_monitor(), mkintf(), my_dahdi_write(), pri_assign_bearer(), pri_hangup_all(), reset_conf(), restore_conference(), restore_gains(), save_conference(), send_callerid(), ss_thread(), swap_subs(), unalloc_sub(), update_conf(), and wakeup_sub().

struct tdd_state* tdd

TDD flag

Definition at line 952 of file chan_dahdi.c.

Referenced by dahdi_sendtext(), and dahdi_setoption().

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 716 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and process_dahdi().

int tonezone

tone zone for this chan, or -1 for default

Definition at line 543 of file chan_dahdi.c.

Referenced by process_dahdi().

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 725 of file chan_dahdi.c.

Referenced by dahdi_bridge(), dahdi_handle_event(), process_dahdi(), and ss_thread().

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 756 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), and process_dahdi().

float txgain

Tx gain set by chan_dahdi.conf.

Definition at line 542 of file chan_dahdi.c.

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

unsigned int unknown_alarm

Definition at line 658 of file chan_dahdi.c.

Referenced by dahdi_handle_event(), dahdi_r2_on_hardware_alarm(), handle_alarms(), and handle_init_event().

unsigned int use_callerid

TRUE if caller ID is used on this channel.

Note:
PRI 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 733 of file chan_dahdi.c.

Referenced by dahdi_call(), dahdi_r2_on_call_offered(), dahdi_read(), process_dahdi(), and ss_thread().

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 channels.

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

Definition at line 740 of file chan_dahdi.c.

Referenced by dahdi_call(), and process_dahdi().

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 761 of file chan_dahdi.c.

Referenced by destroy_dahdi_pvt(), process_dahdi(), and ss_thread().

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 746 of file chan_dahdi.c.

Referenced by process_dahdi(), and ss_thread().

int whichwink

SIG_FEATDMF_TA Which wink are we on?

Definition at line 947 of file chan_dahdi.c.

Referenced by dahdi_call(), and dahdi_handle_event().


The documentation for this struct was generated from the following file:
Generated on Sat Aug 6 00:40:08 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7