Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
misdn_bchannel Struct Reference

B channel control structure. More...

#include <isdn_lib.h>

Collaboration diagram for misdn_bchannel:
Collaboration graph
[legend]

Data Fields

int active
 Seems to have been intended for something to do with the jitter buffer. More...
 
int addr
 B Channel mISDN driver layer ID from mISDN_get_layerid() More...
 
union {
   struct FacAOCDChargingUnit   chargingUnit
 
   struct FacAOCDCurrency   currency
 
AOCD
 
int AOCD_need_export
 TRUE if AOCDtype and AOCD data are ready to export to Asterisk. More...
 
enum FacFunction AOCDtype
 
void * astbuf
 Not used. Contents are setup but not used. More...
 
int b_stid
 B Channel mISDN driver stack ID. More...
 
enum bchannel_state bc_state
 Current B Channel state. More...
 
char * bframe
 B channel speech sample data buffer. More...
 
int bframe_len
 B channel speech sample data buffer size. More...
 
struct misdn_party_id caller
 Originating/Caller ID information struct. More...
 
int capability
 SETUP message bearer capability field code value. More...
 
int cause
 Q.931 Cause for disconnection code (received) More...
 
int ces
 Not used. Saved mISDN stack CONNECT_t ces value. More...
 
int channel
 Assigned B channel number B1, B2... 0 if not assigned. More...
 
int channel_found
 TRUE if the channel was allocated from the available B channels. More...
 
int channel_preselected
 TRUE if the B channel number is preselected. More...
 
int conf_id
 Bridging conference ID. More...
 
struct misdn_party_id connected
 Connected-Party/Connected-Line ID information struct. More...
 
int crypt
 
char crypt_key [255]
 Blowfish encryption key string (secret) More...
 
int crypt_state
 
int curprx
 
int curptx
 
int cw
 TRUE if call waiting. More...
 
int dec
 TRUE if allocate higher B channels first. More...
 
struct misdn_party_dialing dialed
 Dialed/Called information struct. More...
 
char display [84]
 Display message that can be displayed by the user phone. More...
 
int display_connected
 Put a display ie in the CONNECT message. More...
 
int display_setup
 Put a display ie in the SETUP message. More...
 
int dtmf
 Last decoded DTMF digit from mISDN driver. More...
 
int dummy
 TRUE if this is a dummy BC record. More...
 
int early_bconnect
 TRUE if the call progress indicators can indicate an inband audio message for the user to listen to. More...
 
int ec_deftaps
 Number of taps in the echo cancellor when enabled. More...
 
int ec_enable
 TRUE if the echo cancellor is enabled. More...
 
struct FacParm fac_in
 Inbound FACILITY message function type and contents. More...
 
struct FacParm fac_out
 Outbound FACILITY message function type and contents. More...
 
int generate_tone
 TRUE if tone generator allowed to start. More...
 
int hdlc
 TRUE if call made in digital HDLC mode. More...
 
int holded
 TRUE if this channel is on hold. More...
 
int in_use
 TRUE if B channel record is in use. More...
 
char incoming_cid_tag [MISDN_MAX_NAME_LEN]
 Incoming Caller ID string tag for special purpose. More...
 
char info_dad [MISDN_MAX_NUMBER_LEN]
 Current overlap dialing digits to/from INFORMATION messages. More...
 
char infos_pending [MISDN_MAX_NUMBER_LEN]
 Collected digits to go into info_dad[] while waiting for a SETUP_ACKNOWLEDGE to come in. More...
 
int is_register_pool
 TRUE if the B channel is allocated from the REGISTER pool. More...
 
char keypad [MISDN_MAX_KEYPAD_LEN]
 Q.931 Keypad Facility IE contents. More...
 
int l3_id
 Layer 3 process ID. More...
 
struct timeval last_used
 Time when empty_bc() last called on this record. More...
 
int law
 Companding ALaw/uLaw encoding (INFO_CODEC_ALAW / INFO_CODEC_ULAW) More...
 
int layer
 B channel layer; set to 3 or 4. More...
 
int layer_id
 B Channel mISDN driver layer ID from mISDN_new_layer() More...
 
int mode
 Q.931 Bearer Capability IE Transfer Mode field. Initialized to 0 (Circuit). Altered by incoming SETUP messages. More...
 
int need_disconnect
 TRUE if DISCONNECT needs to be sent to clear a call. More...
 
int need_more_infos
 TRUE if we send SETUP_ACKNOWLEDGE on incoming calls anyway (instead of PROCEEDING). More...
 
int need_release
 TRUE if RELEASE needs to be sent to clear a call. More...
 
int need_release_complete
 TRUE if RELEASE_COMPLETE needs to be sent to clear a call. More...
 
struct misdn_bchannelnext
 Next node in the misdn_stack.holding list. More...
 
enum bchannel_state next_bc_state
 This is used as a pending bridge join request for when bc_state becomes BCHAN_ACTIVATED. More...
 
int nodsp
 TRUE if we will not use jollys dsp. More...
 
int nojitter
 TRUE if we will not use the jitter buffer system. More...
 
enum mISDN_NOTIFY_CODE notify_description_code
 Notification indicator ie description code. More...
 
int nt
 TRUE if NT side of protocol (TE otherwise) More...
 
int orig
 Who originated the call (ORG_AST, ORG_MISDN) More...
 
int out_cause
 Q.931 Cause for disconnection code (sent) More...
 
int outgoing_colp
 Select what to do with outgoing COLP information. More...
 
int pid
 B channel process ID (1-5000) More...
 
int port
 Logical Layer 1 port associated with this B channel. More...
 
int presentation
 User set presentation restriction code 0=Allowed, 1=Restricted, 2=Unavailable. More...
 
int pri
 TRUE if ISDN-PRI (ISDN-BRI otherwise) More...
 
int progress_coding
 Progress Indicator IE coding standard field. More...
 
int progress_indicator
 Progress Indicator IE progress description field. Used to determine if there is an inband audio message present. More...
 
int progress_location
 Progress Indicator IE location field. More...
 
int rate
 Q.931 Bearer Capability IE Information Transfer Rate field. Initialized to 0x10 (64kbit). Altered by incoming SETUP messages. More...
 
struct misdn_party_redirecting redirecting
 Redirecting information struct (Where a call diversion or transfer was invoked) More...
 
int restart_channel
 B channel to restart if received a RESTART message. More...
 
int rxgain
 Rx gain setting (range -8 to 8) More...
 
int send_dtmf
 TRUE if we should produce DTMF tones ourselves. More...
 
struct send_locksend_lock
 B channel send locking structure. More...
 
int sending_complete
 TRUE if all digits necessary to complete the call are available. No more INFORMATION messages are needed. More...
 
int set_presentation
 TRUE if the user set the presentation restriction code. More...
 
int stack_holder
 TRUE if this channel is on the misdn_stack->holding list. More...
 
int te_choose_channel
 TRUE if the TE side should choose the B channel to use. More...
 
int time_usec
 
int tone_cnt
 Number of tone samples to generate. More...
 
int txgain
 Tx gain setting (range -8 to 8) More...
 
int upset
 
int urate
 Q.931 Bearer Capability IE Layer 1 User Rate field. More...
 
int user1
 Q.931 Bearer Capability IE User Information Layer 1 Protocol field code. More...
 
char uu [256]
 User-User information string. More...
 
int uulen
 User-User information string length in uu[]. More...
 

Detailed Description

B channel control structure.

Definition at line 324 of file isdn_lib.h.

Field Documentation

◆ active

int active

Seems to have been intended for something to do with the jitter buffer.

Note
Used as a boolean. Only initialized to 0 and referenced in a couple places

Definition at line 537 of file isdn_lib.h.

Referenced by empty_bc(), misdn_write(), and print_bc_info().

◆ addr

int addr

◆ AOCD

union { ... } AOCD

◆ AOCD_need_export

int AOCD_need_export

TRUE if AOCDtype and AOCD data are ready to export to Asterisk.

Definition at line 521 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), export_aoc_vars(), and misdn_facility_ie_handler().

◆ AOCDtype

enum FacFunction AOCDtype

Definition at line 515 of file isdn_lib.h.

Referenced by export_aoc_vars(), misdn_facility_ie_handler(), and read_config().

◆ astbuf

void* astbuf

Not used. Contents are setup but not used.

Definition at line 439 of file isdn_lib.h.

Referenced by init_bc(), manager_bchannel_activate(), and manager_bchannel_deactivate().

◆ b_stid

int b_stid

B Channel mISDN driver stack ID.

init stuff

Definition at line 374 of file isdn_lib.h.

Referenced by clean_up_bc(), handle_event_nt(), misdn_lib_log_ies(), setup_bc(), and test_inuse().

◆ bc_state

enum bchannel_state bc_state

◆ bframe

char* bframe

B channel speech sample data buffer.

Definition at line 432 of file isdn_lib.h.

Referenced by cb_events(), handle_bchan(), and misdn_tx_jitter().

◆ bframe_len

int bframe_len

B channel speech sample data buffer size.

Definition at line 435 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), handle_bchan(), and misdn_tx_jitter().

◆ caller

struct misdn_party_id caller

Originating/Caller ID information struct.

Note
The number_type element can be set to "localdialplan" in /etc/asterisk/misdn.conf for outgoing calls
The number element can be set to "callerid" in /etc/asterisk/misdn.conf for outgoing calls

Definition at line 343 of file isdn_lib.h.

Referenced by build_setup(), cb_events(), do_immediate_setup(), empty_bc(), find_chan_by_bc(), find_hold_call(), handle_bchan(), handle_event_te(), misdn_call(), misdn_facility_ie_handler(), misdn_get_connected_line(), misdn_lib_log_ies(), misdn_lib_send_event(), misdn_overlap_dial_task(), misdn_update_connected_line(), misdn_write(), parse_setup(), read_config(), and update_config().

◆ capability

int capability

◆ cause

int cause

Q.931 Cause for disconnection code (received)

Note
Need to use the AST_CAUSE_xxx code definitions in causes.h

Definition at line 671 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), handle_event_nt(), handle_frm_te(), hangup_chan(), misdn_hangup(), misdn_lib_log_ies(), misdn_lib_send_event(), parse_disconnect(), parse_release(), parse_release_complete(), parse_status(), prepare_bc(), and send_cause2ast().

◆ ces

int ces

Not used. Saved mISDN stack CONNECT_t ces value.

Definition at line 405 of file isdn_lib.h.

Referenced by parse_connect().

◆ channel

int channel

◆ channel_found

int channel_found

TRUE if the channel was allocated from the available B channels.

Definition at line 697 of file isdn_lib.h.

Referenced by empty_bc(), find_free_chan_in_stack(), and misdn_lib_send_event().

◆ channel_preselected

int channel_preselected

TRUE if the B channel number is preselected.

Definition at line 414 of file isdn_lib.h.

Referenced by create_process(), misdn_lib_send_event(), and prepare_bc().

◆ chargingUnit

struct FacAOCDChargingUnit chargingUnit

Definition at line 518 of file isdn_lib.h.

Referenced by export_aoc_vars(), and misdn_facility_ie_handler().

◆ conf_id

int conf_id

◆ connected

struct misdn_party_id connected

Connected-Party/Connected-Line ID information struct.

Note
The number_type element can be set to "cpndialplan" in /etc/asterisk/misdn.conf for outgoing calls

Definition at line 353 of file isdn_lib.h.

Referenced by build_connect(), cb_events(), empty_bc(), misdn_answer(), misdn_get_connected_line(), misdn_lib_log_ies(), misdn_update_connected_line(), and parse_connect().

◆ crypt

int crypt

Definition at line 524 of file isdn_lib.h.

Referenced by empty_bc().

◆ crypt_key

char crypt_key[255]

Blowfish encryption key string (secret)

Definition at line 529 of file isdn_lib.h.

Referenced by empty_bc(), handle_event_te(), misdn_answer(), misdn_lib_send_event(), and misdn_set_opt_exec().

◆ crypt_state

int crypt_state

Definition at line 531 of file isdn_lib.h.

◆ curprx

int curprx

Definition at line 525 of file isdn_lib.h.

Referenced by empty_bc().

◆ curptx

int curptx

Definition at line 526 of file isdn_lib.h.

Referenced by empty_bc().

◆ currency

struct FacAOCDCurrency currency

Definition at line 517 of file isdn_lib.h.

Referenced by export_aoc_vars(), and misdn_facility_ie_handler().

◆ cw

int cw

TRUE if call waiting.

Definition at line 426 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), handle_event_te(), and misdn_lib_get_free_bc().

◆ dec

int dec

TRUE if allocate higher B channels first.

Definition at line 395 of file isdn_lib.h.

Referenced by create_process(), empty_bc(), misdn_lib_get_free_bc(), and misdn_request().

◆ dialed

struct misdn_party_dialing dialed

Dialed/Called information struct.

Note
The number_type element is set to "dialplan" in /etc/asterisk/misdn.conf for outgoing calls

Definition at line 337 of file isdn_lib.h.

Referenced by build_setup(), cb_events(), empty_bc(), find_chan_by_bc(), find_hold_call(), handle_bchan(), handle_event_te(), misdn_answer(), misdn_call(), misdn_digit_end(), misdn_facility_ie_handler(), misdn_lib_log_ies(), misdn_lib_send_event(), misdn_overlap_dial_task(), parse_setup(), read_config(), and wait_for_digits().

◆ display

char display[84]

Display message that can be displayed by the user phone.

Note
Maximum displayable length is 34 or 82 octets. It is also settable by the misdn_set_opt() application.

Definition at line 642 of file isdn_lib.h.

Referenced by build_connect(), build_facility(), build_information(), build_setup(), empty_bc(), handle_cli_misdn_send_display(), misdn_send_text(), misdn_set_opt_exec(), and print_bc_info().

◆ display_connected

int display_connected

Put a display ie in the CONNECT message.

Put a display ie in the CONNECT message containing the following information if it is available (nt port only): 0 - Do not put the connected line information in the display ie. 1 - Put the available connected line name in the display ie. 2 - Put the available connected line number in the display ie. 3 - Put the available connected line name and number in the display ie.

Definition at line 573 of file isdn_lib.h.

Referenced by build_connect(), empty_bc(), and read_config().

◆ display_setup

int display_setup

Put a display ie in the SETUP message.

Put a display ie in the SETUP message containing the following information if it is available (nt port only): 0 - Do not put the caller information in the display ie. 1 - Put the available caller name in the display ie. 2 - Put the available caller number in the display ie. 3 - Put the available caller name and number in the display ie.

Definition at line 585 of file isdn_lib.h.

Referenced by build_setup(), empty_bc(), and read_config().

◆ dtmf

int dtmf

Last decoded DTMF digit from mISDN driver.

Definition at line 452 of file isdn_lib.h.

Referenced by cb_events(), and handle_bchan().

◆ dummy

int dummy

TRUE if this is a dummy BC record.

Definition at line 361 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), and misdn_make_dummy().

◆ early_bconnect

int early_bconnect

TRUE if the call progress indicators can indicate an inband audio message for the user to listen to.

Note
This value is user configurable in /etc/asterisk/misdn.conf

Definition at line 449 of file isdn_lib.h.

Referenced by empty_bc(), misdn_inband_avail(), and read_config().

◆ ec_deftaps

int ec_deftaps

Number of taps in the echo cancellor when enabled.

Note
This value is user configurable in /etc/asterisk/misdn.conf (echocancel)

Definition at line 693 of file isdn_lib.h.

Referenced by empty_bc(), manager_ec_enable(), misdn_set_opt_exec(), and update_ec_config().

◆ ec_enable

int ec_enable

TRUE if the echo cancellor is enabled.

list stuf

Definition at line 688 of file isdn_lib.h.

Referenced by empty_bc(), isdn_lib_update_ec(), manager_ec_disable(), manager_ec_enable(), misdn_set_opt_exec(), print_bc_info(), process_ast_dsp(), and update_ec_config().

◆ fac_in

struct FacParm fac_in

◆ fac_out

struct FacParm fac_out

◆ generate_tone

int generate_tone

TRUE if tone generator allowed to start.

Definition at line 541 of file isdn_lib.h.

Referenced by do_tone(), empty_bc(), manager_bchannel_deactivate(), misdn_lib_tone_generator_start(), and misdn_lib_tone_generator_stop().

◆ hdlc

int hdlc

TRUE if call made in digital HDLC mode.

Note
This value is user configurable in /etc/asterisk/misdn.conf. It is also settable by the misdn_set_opt() application.

Definition at line 635 of file isdn_lib.h.

Referenced by empty_bc(), misdn_answer(), misdn_call(), misdn_facility_ie_handler(), misdn_set_opt_exec(), read_config(), setup_bc(), and update_config().

◆ holded

int holded

TRUE if this channel is on hold.

Definition at line 556 of file isdn_lib.h.

Referenced by handle_event_nt(), misdn_lib_log_ies(), misdn_lib_send_event(), and print_bc_info().

◆ in_use

int in_use

◆ incoming_cid_tag

char incoming_cid_tag[MISDN_MAX_NAME_LEN]

Incoming Caller ID string tag for special purpose.

Note
The element can be set to "incoming_cid_tag" in /etc/asterisk/misdn.conf for incoming calls

Definition at line 348 of file isdn_lib.h.

Referenced by cb_events(), misdn_call(), misdn_facility_ie_handler(), and read_config().

◆ info_dad

char info_dad[MISDN_MAX_NUMBER_LEN]

Current overlap dialing digits to/from INFORMATION messages.

Definition at line 650 of file isdn_lib.h.

Referenced by build_information(), cb_events(), empty_bc(), misdn_digit_end(), misdn_lib_log_ies(), and parse_information().

◆ infos_pending

char infos_pending[MISDN_MAX_NUMBER_LEN]

Collected digits to go into info_dad[] while waiting for a SETUP_ACKNOWLEDGE to come in.

Definition at line 653 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), and misdn_digit_end().

◆ is_register_pool

int is_register_pool

TRUE if the B channel is allocated from the REGISTER pool.

Definition at line 417 of file isdn_lib.h.

Referenced by find_free_chan_in_stack(), handle_event_nt(), and misdn_lib_init().

◆ keypad

char keypad[MISDN_MAX_KEYPAD_LEN]

Q.931 Keypad Facility IE contents.

Note
Contents exported and imported to Asterisk variable MISDN_KEYPAD

Definition at line 647 of file isdn_lib.h.

Referenced by build_setup(), cb_events(), export_ch(), import_ch(), misdn_lib_log_ies(), parse_information(), parse_setup(), and read_config().

◆ l3_id

int l3_id

◆ last_used

struct timeval last_used

Time when empty_bc() last called on this record.

Definition at line 423 of file isdn_lib.h.

Referenced by empty_bc(), and test_inuse().

◆ law

int law

Companding ALaw/uLaw encoding (INFO_CODEC_ALAW / INFO_CODEC_ULAW)

Definition at line 612 of file isdn_lib.h.

Referenced by build_setup(), empty_bc(), parse_setup(), and print_bearer().

◆ layer

int layer

B channel layer; set to 3 or 4.

Definition at line 382 of file isdn_lib.h.

Referenced by setup_bc().

◆ layer_id

int layer_id

B Channel mISDN driver layer ID from mISDN_new_layer()

Definition at line 379 of file isdn_lib.h.

Referenced by clean_up_bc(), find_bc_by_addr(), misdn_lib_log_ies(), and setup_bc().

◆ mode

int mode

Q.931 Bearer Capability IE Transfer Mode field. Initialized to 0 (Circuit). Altered by incoming SETUP messages.

Definition at line 619 of file isdn_lib.h.

Referenced by build_setup(), empty_bc(), misdn_lib_log_ies(), and parse_setup().

◆ need_disconnect

int need_disconnect

TRUE if DISCONNECT needs to be sent to clear a call.

Definition at line 386 of file isdn_lib.h.

Referenced by cb_events(), handle_cr(), misdn_hangup(), misdn_lib_get_free_bc(), misdn_lib_send_event(), and prepare_bc().

◆ need_more_infos

int need_more_infos

TRUE if we send SETUP_ACKNOWLEDGE on incoming calls anyway (instead of PROCEEDING).

This requests additional INFORMATION messages, so we can wait for digits without issues.

Note
This value is user configurable in /etc/asterisk/misdn.conf

Definition at line 465 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), and read_config().

◆ need_release

int need_release

TRUE if RELEASE needs to be sent to clear a call.

Definition at line 389 of file isdn_lib.h.

Referenced by cb_events(), handle_cr(), misdn_hangup(), misdn_lib_get_free_bc(), misdn_lib_send_event(), and prepare_bc().

◆ need_release_complete

int need_release_complete

TRUE if RELEASE_COMPLETE needs to be sent to clear a call.

Definition at line 392 of file isdn_lib.h.

Referenced by cb_events(), handle_cr(), handle_frm_te(), misdn_lib_send_event(), and prepare_bc().

◆ next

struct misdn_bchannel* next

Next node in the misdn_stack.holding list.

Definition at line 717 of file isdn_lib.h.

Referenced by stack_holder_add(), stack_holder_find(), and stack_holder_remove().

◆ next_bc_state

enum bchannel_state next_bc_state

This is used as a pending bridge join request for when bc_state becomes BCHAN_ACTIVATED.

Definition at line 550 of file isdn_lib.h.

Referenced by bc_next_state_change(), and bc_state_change().

◆ nodsp

int nodsp

TRUE if we will not use jollys dsp.

Definition at line 474 of file isdn_lib.h.

Referenced by empty_bc(), handle_event_te(), misdn_answer(), misdn_lib_send_event(), misdn_set_opt_exec(), and setup_bc().

◆ nojitter

int nojitter

TRUE if we will not use the jitter buffer system.

Definition at line 477 of file isdn_lib.h.

Referenced by config_jitterbuffer(), do_tone(), empty_bc(), handle_bchan(), misdn_answer(), misdn_set_opt_exec(), and misdn_write().

◆ notify_description_code

enum mISDN_NOTIFY_CODE notify_description_code

◆ nt

int nt

◆ orig

int orig

Who originated the call (ORG_AST, ORG_MISDN)

Note
Set but not used when the misdn_set_opt() application enables echo cancellation.

Definition at line 702 of file isdn_lib.h.

Referenced by empty_bc(), and misdn_set_opt_exec().

◆ out_cause

int out_cause

Q.931 Cause for disconnection code (sent)

Note
Need to use the AST_CAUSE_xxx code definitions in causes.h
-1 is used to suppress including the cause code in the RELEASE message.

Definition at line 677 of file isdn_lib.h.

Referenced by build_disconnect(), build_release(), build_release_complete(), cb_events(), do_immediate_setup(), empty_bc(), find_free_chan_in_stack(), handle_event_te(), handle_frm_te(), misdn_hangup(), misdn_indication(), misdn_lib_log_ies(), misdn_lib_send_event(), misdn_overlap_dial_task(), and reload().

◆ outgoing_colp

int outgoing_colp

Select what to do with outgoing COLP information.

0 - pass (Send out COLP information unaltered.) 1 - restricted (Force COLP to restricted on all outgoing COLP information.) 2 - block (Do not send COLP information.)

Definition at line 594 of file isdn_lib.h.

Referenced by build_connect(), build_facility(), build_notify(), build_setup(), empty_bc(), misdn_answer(), misdn_call(), misdn_update_connected_line(), misdn_update_redirecting(), and read_config().

◆ pid

int pid

◆ port

int port

Logical Layer 1 port associated with this B channel.

Definition at line 370 of file isdn_lib.h.

Referenced by bc_next_state_change(), bc_state_change(), bearer2str(), build_connect(), build_disconnect(), build_release(), build_release_complete(), build_restart(), build_setup(), cb_events(), cl_queue_chan(), clean_up_bc(), config_jitterbuffer(), debug_numtype(), dec_ie_facility(), dialtone_indicate(), do_immediate_setup(), export_ch(), find_chan_by_bc(), find_hold_active_call(), find_hold_call(), get_stack_by_bc(), handle_bchan(), handle_cli_misdn_send_restart(), handle_event_nt(), hangup_chan(), init_bc(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_ph_control(), misdn_answer(), misdn_call(), misdn_digit_end(), misdn_facility_exec(), misdn_facility_ie_handler(), misdn_fixup(), misdn_get_connected_line(), misdn_hangup(), misdn_indication(), misdn_join_conf(), misdn_lib_bridge(), misdn_lib_echo(), misdn_lib_get_free_bc(), misdn_lib_send_event(), misdn_lib_tx2misdn_frm(), misdn_make_dummy(), misdn_overlap_dial_task(), misdn_read(), misdn_request(), misdn_set_opt_exec(), misdn_split_conf(), misdn_tx_jitter(), misdn_update_connected_line(), misdn_update_redirecting(), misdn_write(), parse_facility(), parse_setup(), print_bc_info(), print_bearer(), print_facility(), process_ast_dsp(), read_config(), release_chan(), reload(), send_cause2ast(), send_msg(), set_channel(), setup_bc(), start_pbx(), stop_indicate(), test_inuse(), update_config(), update_ec_config(), and Registration::write().

◆ presentation

int presentation

User set presentation restriction code 0=Allowed, 1=Restricted, 2=Unavailable.

Note
It is settable by the misdn_set_opt() application.

Definition at line 600 of file isdn_lib.h.

Referenced by empty_bc(), misdn_answer(), misdn_call(), misdn_lib_log_ies(), and misdn_set_opt_exec().

◆ pri

int pri

TRUE if ISDN-PRI (ISDN-BRI otherwise)

Definition at line 367 of file isdn_lib.h.

Referenced by find_hold_call(), and init_bc().

◆ progress_coding

int progress_coding

Progress Indicator IE coding standard field.

Note
Collected from the incoming messages but not used.

Definition at line 482 of file isdn_lib.h.

Referenced by empty_bc(), parse_alerting(), parse_connect(), parse_disconnect(), parse_proceeding(), parse_progress(), parse_setup(), and parse_setup_acknowledge().

◆ progress_indicator

int progress_indicator

Progress Indicator IE progress description field. Used to determine if there is an inband audio message present.

Definition at line 492 of file isdn_lib.h.

Referenced by cb_events(), empty_bc(), misdn_hangup(), misdn_inband_avail(), misdn_lib_log_ies(), parse_alerting(), parse_connect(), parse_disconnect(), parse_proceeding(), parse_progress(), parse_setup(), and parse_setup_acknowledge().

◆ progress_location

int progress_location

Progress Indicator IE location field.

Note
Collected from the incoming messages but not used.

Definition at line 487 of file isdn_lib.h.

Referenced by empty_bc(), parse_alerting(), parse_connect(), parse_disconnect(), parse_proceeding(), parse_progress(), parse_setup(), and parse_setup_acknowledge().

◆ rate

int rate

Q.931 Bearer Capability IE Information Transfer Rate field. Initialized to 0x10 (64kbit). Altered by incoming SETUP messages.

Definition at line 616 of file isdn_lib.h.

Referenced by build_setup(), empty_bc(), misdn_lib_log_ies(), and parse_setup().

◆ redirecting

struct misdn_party_redirecting redirecting

Redirecting information struct (Where a call diversion or transfer was invoked)

Note
The redirecting subaddress is not defined in Q.931 so it is not used.

Definition at line 358 of file isdn_lib.h.

Referenced by build_facility(), build_notify(), build_setup(), cb_events(), empty_bc(), misdn_call(), misdn_copy_redirecting_from_ast(), misdn_facility_ie_handler(), misdn_lib_log_ies(), misdn_update_connected_line(), misdn_update_redirecting(), parse_facility(), parse_notify(), parse_setup(), and print_bc_info().

◆ restart_channel

int restart_channel

B channel to restart if received a RESTART message.

Definition at line 408 of file isdn_lib.h.

Referenced by empty_bc(), handle_frm_te(), and parse_restart().

◆ rxgain

int rxgain

Rx gain setting (range -8 to 8)

Note
This value is user configurable in /etc/asterisk/misdn.conf. It is also settable by the misdn_set_opt() application.

Definition at line 714 of file isdn_lib.h.

Referenced by empty_bc(), handle_event_te(), isdn_lib_update_rxgain(), misdn_lib_send_event(), misdn_set_opt_exec(), process_ast_dsp(), and read_config().

◆ send_dtmf

int send_dtmf

TRUE if we should produce DTMF tones ourselves.

Note
This value is user configurable in /etc/asterisk/misdn.conf

Definition at line 457 of file isdn_lib.h.

Referenced by empty_bc(), misdn_digit_end(), misdn_set_opt_exec(), and read_config().

◆ send_lock

B channel send locking structure.

Definition at line 326 of file isdn_lib.h.

Referenced by init_bc(), misdn_send_lock(), and misdn_send_unlock().

◆ sending_complete

int sending_complete

TRUE if all digits necessary to complete the call are available. No more INFORMATION messages are needed.

Definition at line 470 of file isdn_lib.h.

Referenced by build_setup(), cb_events(), empty_bc(), export_ch(), import_ch(), misdn_call(), misdn_lib_log_ies(), and parse_setup().

◆ set_presentation

int set_presentation

TRUE if the user set the presentation restriction code.

Definition at line 603 of file isdn_lib.h.

Referenced by empty_bc(), misdn_call(), misdn_lib_log_ies(), and misdn_set_opt_exec().

◆ stack_holder

int stack_holder

TRUE if this channel is on the misdn_stack->holding list.

Note
If TRUE this implies that the structure is also malloced.

Definition at line 561 of file isdn_lib.h.

Referenced by handle_cr(), misdn_lib_log_ies(), stack_holder_add(), and stack_holder_remove().

◆ te_choose_channel

int te_choose_channel

TRUE if the TE side should choose the B channel to use.

Note
This value is user configurable in /etc/asterisk/misdn.conf

Definition at line 444 of file isdn_lib.h.

Referenced by create_process(), empty_bc(), and read_config().

◆ time_usec

int time_usec

Definition at line 436 of file isdn_lib.h.

Referenced by empty_bc().

◆ tone_cnt

int tone_cnt

Number of tone samples to generate.

Definition at line 544 of file isdn_lib.h.

Referenced by cb_events(), do_tone(), and empty_bc().

◆ txgain

int txgain

Tx gain setting (range -8 to 8)

Note
This value is user configurable in /etc/asterisk/misdn.conf. It is also settable by the misdn_set_opt() application.

Definition at line 708 of file isdn_lib.h.

Referenced by empty_bc(), handle_event_te(), isdn_lib_update_txgain(), misdn_lib_send_event(), misdn_set_opt_exec(), process_ast_dsp(), and read_config().

◆ upset

int upset

Definition at line 538 of file isdn_lib.h.

◆ urate

int urate

Q.931 Bearer Capability IE Layer 1 User Rate field.

Note
Collected from the incoming SETUP message and exported to Asterisk variable MISDN_URATE.

Definition at line 629 of file isdn_lib.h.

Referenced by empty_bc(), export_ch(), misdn_lib_log_ies(), and parse_setup().

◆ user1

int user1

Q.931 Bearer Capability IE User Information Layer 1 Protocol field code.

Note
Collected from the incoming SETUP message but not used.

Definition at line 624 of file isdn_lib.h.

Referenced by empty_bc(), misdn_lib_log_ies(), and parse_setup().

◆ uu

char uu[256]

User-User information string.

Note
Contents exported and imported to Asterisk variable MISDN_USERUSER
We only support ASCII strings (IA5 characters).

Definition at line 663 of file isdn_lib.h.

Referenced by build_disconnect(), build_release(), build_release_complete(), build_setup(), empty_bc(), export_ch(), import_ch(), misdn_hangup(), and parse_setup().

◆ uulen

int uulen

User-User information string length in uu[].

Definition at line 666 of file isdn_lib.h.

Referenced by build_disconnect(), build_release(), build_release_complete(), build_setup(), empty_bc(), export_ch(), import_ch(), misdn_hangup(), and parse_setup().


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