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

Channel call record structure. More...

Collaboration diagram for chan_list:
Collaboration graph
[legend]

Data Fields

int addr
 From associated B channel: B Channel mISDN driver layer ID from mISDN_get_layerid() More...
 
char allowed_bearers [BUFFERSIZE+1]
 The "allowed_bearers" string read in from /etc/asterisk/misdn.conf. More...
 
struct ast_channelast
 Associated Asterisk channel structure. More...
 
int ast_dsp
 TRUE if we will use the Asterisk DSP to detect DTMF/Fax. More...
 
char ast_rd_buf [4096]
 Read buffer for inbound audio from pipe[0]. More...
 
struct misdn_bchannelbc
 Associated B channel structure. More...
 
char context [AST_MAX_CONTEXT]
 Incoming call dialplan context identifier. More...
 
int dropped_frame_cnt
 Number of outgoing audio frames dropped since last debug gripe message. More...
 
struct ast_dspdsp
 Allocated DSP controller. More...
 
int far_alerting
 TRUE if we must do the ringback tones. More...
 
int faxdetect
 Fax detection option. (0:no 1:yes 2:yes+nojump) More...
 
int faxdetect_timeout
 Number of seconds to detect a Fax machine when detection enabled. More...
 
struct timeval faxdetect_tv
 Starting time of fax detection with timeout when nonzero. More...
 
int faxhandled
 TRUE if a fax has been detected. More...
 
struct ast_frame frame
 Inbound audio frame returned by misdn_read(). More...
 
struct hold_info hold
 HELD channel call information. More...
 
int ignore_dtmf
 TRUE if DTMF digits are to be passed inband only. More...
 
int incoming_early_audio
 TRUE if you want to send Tone Indications to an incoming ISDN channel on a TE Port. More...
 
struct misdn_jbjb
 Allocated jitterbuffer controller. More...
 
int jb_len
 Jitterbuffer length. More...
 
int jb_upper_threshold
 Jitterbuffer upper threshold. More...
 
unsigned int l3id
 From associated B channel: Layer 3 process ID. More...
 
char mohinterpret [MAX_MUSICCLASS]
 The configured music-on-hold class to use for this call. More...
 
int need_busy
 TRUE if we could send an AST_CONTROL_BUSY if needed. More...
 
int need_hangup
 TRUE if a channel can be hung up by calling asterisk directly when done. More...
 
int need_queue_hangup
 TRUE if a hangup needs to be queued. More...
 
struct chan_listnext
 Next channel call record in the list. More...
 
int noautorespond_on_setup
 TRUE of we are not to respond immediately to a SETUP message. Check the dialplan first. More...
 
int norxtone
 
int notxtone
 TRUE if we are not to generate tones (Playtones) More...
 
int nttimeout
 TRUE if NT should disconnect an overlap dialing call when a timeout occurs. More...
 
int originator
 Who originally created this channel. ORG_AST or ORG_MISDN. More...
 
int overlap_dial
 Enables overlap dialing for the set amount of seconds. (0 = Disabled) More...
 
int overlap_dial_task
 Overlap dialing timeout Task ID. -1 if not running. More...
 
struct timeval overlap_tv
 Overlap timer start time. Timer restarted for every digit received. More...
 
ast_mutex_t overlap_tv_lock
 overlap_tv access lock. More...
 
int pipe [2]
 Pipe file descriptor handles array. Read from pipe[0], write to pipe[1]. More...
 
enum misdn_chan_state state
 State of the channel. More...
 
int toggle_ec
 TRUE if echo canceller is enabled. Value is toggled. More...
 
struct ast_tone_zone_soundts
 Tone zone sound used for dialtone generation. More...
 

Detailed Description

Channel call record structure.

Definition at line 377 of file chan_misdn.c.

Field Documentation

◆ addr

int addr

From associated B channel: B Channel mISDN driver layer ID from mISDN_get_layerid()

Note
Used only for debug display messages.

Definition at line 547 of file chan_misdn.c.

Referenced by cb_events(), and print_bc_info().

◆ allowed_bearers

The "allowed_bearers" string read in from /etc/asterisk/misdn.conf.

Definition at line 381 of file chan_misdn.c.

Referenced by cb_events(), and read_config().

◆ ast

struct ast_channel* ast

◆ ast_dsp

int ast_dsp

TRUE if we will use the Asterisk DSP to detect DTMF/Fax.

Note
The "astdtmf" boolean read in from /etc/asterisk/misdn.conf

Definition at line 484 of file chan_misdn.c.

Referenced by misdn_read(), misdn_set_opt_exec(), process_ast_dsp(), and read_config().

◆ ast_rd_buf

char ast_rd_buf[4096]

Read buffer for inbound audio from pipe[0].

Definition at line 449 of file chan_misdn.c.

Referenced by misdn_read().

◆ bc

struct misdn_bchannel* bc

◆ context

char context[AST_MAX_CONTEXT]

Incoming call dialplan context identifier.

Note
The "context" string read in from /etc/asterisk/misdn.conf

Definition at line 553 of file chan_misdn.c.

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

◆ dropped_frame_cnt

int dropped_frame_cnt

Number of outgoing audio frames dropped since last debug gripe message.

Definition at line 564 of file chan_misdn.c.

Referenced by misdn_write().

◆ dsp

struct ast_dsp* dsp

Allocated DSP controller.

Note
ast_dsp_new() creates the DSP controller.
Must use ast_dsp_free() to clean up.

Definition at line 510 of file chan_misdn.c.

Referenced by chan_list_destructor(), misdn_set_opt_exec(), process_ast_dsp(), and read_config().

◆ far_alerting

int far_alerting

TRUE if we must do the ringback tones.

Note
The "far_alerting" boolean read in from /etc/asterisk/misdn.conf

Definition at line 570 of file chan_misdn.c.

Referenced by cb_events(), and read_config().

◆ faxdetect

int faxdetect

Fax detection option. (0:no 1:yes 2:yes+nojump)

Note
The "faxdetect" option string read in from /etc/asterisk/misdn.conf
It is settable by the misdn_set_opt() application.

Definition at line 461 of file chan_misdn.c.

Referenced by misdn_read(), misdn_set_opt_exec(), process_ast_dsp(), and read_config().

◆ faxdetect_timeout

int faxdetect_timeout

Number of seconds to detect a Fax machine when detection enabled.

Note
0 disables the timeout.
The "faxdetect_timeout" value read in from /etc/asterisk/misdn.conf

Definition at line 468 of file chan_misdn.c.

Referenced by misdn_read(), misdn_set_opt_exec(), and read_config().

◆ faxdetect_tv

struct timeval faxdetect_tv

Starting time of fax detection with timeout when nonzero.

Definition at line 473 of file chan_misdn.c.

Referenced by misdn_read().

◆ faxhandled

int faxhandled

TRUE if a fax has been detected.

Definition at line 478 of file chan_misdn.c.

Referenced by misdn_read(), and process_ast_dsp().

◆ frame

struct ast_frame frame

Inbound audio frame returned by misdn_read().

Definition at line 454 of file chan_misdn.c.

Referenced by misdn_read().

◆ hold

struct hold_info hold

◆ ignore_dtmf

int ignore_dtmf

TRUE if DTMF digits are to be passed inband only.

Note
It is settable by the misdn_set_opt() application.

Definition at line 438 of file chan_misdn.c.

Referenced by cb_events(), misdn_set_opt_exec(), misdn_write(), and read_config().

◆ incoming_early_audio

int incoming_early_audio

TRUE if you want to send Tone Indications to an incoming ISDN channel on a TE Port.

Note
The "incoming_early_audio" boolean read in from /etc/asterisk/misdn.conf

Definition at line 432 of file chan_misdn.c.

Referenced by misdn_indication(), and read_config().

◆ jb

struct misdn_jb* jb

Allocated jitterbuffer controller.

Note
misdn_jb_init() creates the jitterbuffer.
Must use misdn_jb_destroy() to clean up.

Definition at line 503 of file chan_misdn.c.

Referenced by chan_list_destructor(), chan_misdn_jb_empty(), config_jitterbuffer(), and misdn_write().

◆ jb_len

int jb_len

Jitterbuffer length.

Note
The "jitterbuffer" value read in from /etc/asterisk/misdn.conf

Definition at line 490 of file chan_misdn.c.

Referenced by config_jitterbuffer(), misdn_set_opt_exec(), and read_config().

◆ jb_upper_threshold

int jb_upper_threshold

Jitterbuffer upper threshold.

Note
The "jitterbuffer_upper_threshold" value read in from /etc/asterisk/misdn.conf

Definition at line 496 of file chan_misdn.c.

Referenced by config_jitterbuffer(), misdn_set_opt_exec(), and read_config().

◆ l3id

unsigned int l3id

From associated B channel: Layer 3 process ID.

Note
Used to find the HELD channel call record when retrieving a call.

Definition at line 541 of file chan_misdn.c.

Referenced by cb_events(), find_hold_call_l3(), handle_cli_misdn_show_channels(), misdn_call(), misdn_fixup(), misdn_hangup(), and print_bc_info().

◆ mohinterpret

char mohinterpret[MAX_MUSICCLASS]

The configured music-on-hold class to use for this call.

Note
The "musicclass" string read in from /etc/asterisk/misdn.conf

Definition at line 559 of file chan_misdn.c.

Referenced by misdn_indication(), and read_config().

◆ need_busy

int need_busy

TRUE if we could send an AST_CONTROL_BUSY if needed.

Definition at line 402 of file chan_misdn.c.

Referenced by cb_events(), chan_list_init(), misdn_hangup(), and send_cause2ast().

◆ need_hangup

int need_hangup

TRUE if a channel can be hung up by calling asterisk directly when done.

Definition at line 397 of file chan_misdn.c.

Referenced by chan_list_init(), hangup_chan(), misdn_hangup(), misdn_request(), and pbx_start_chan().

◆ need_queue_hangup

int need_queue_hangup

TRUE if a hangup needs to be queued.

Note
This is a debug flag only used to catch calls to hangup_chan() that are already hungup.

Definition at line 392 of file chan_misdn.c.

Referenced by chan_list_init(), hangup_chan(), and misdn_hangup().

◆ next

struct chan_list* next

◆ noautorespond_on_setup

int noautorespond_on_setup

TRUE of we are not to respond immediately to a SETUP message. Check the dialplan first.

Note
The "noautorespond_on_setup" boolean read in from /etc/asterisk/misdn.conf

Definition at line 413 of file chan_misdn.c.

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

◆ norxtone

int norxtone

Boolean assigned values but the value is not used.

Definition at line 415 of file chan_misdn.c.

Referenced by dialtone_indicate(), print_bc_info(), start_bc_tones(), and stop_bc_tones().

◆ notxtone

int notxtone

TRUE if we are not to generate tones (Playtones)

Definition at line 420 of file chan_misdn.c.

Referenced by dialtone_indicate(), misdn_write(), print_bc_info(), start_bc_tones(), and stop_bc_tones().

◆ nttimeout

int nttimeout

TRUE if NT should disconnect an overlap dialing call when a timeout occurs.

Note
The "nttimeout" boolean read in from /etc/asterisk/misdn.conf

Definition at line 576 of file chan_misdn.c.

Referenced by cb_events(), and read_config().

◆ originator

int originator

Who originally created this channel. ORG_AST or ORG_MISDN.

Definition at line 407 of file chan_misdn.c.

Referenced by cb_events(), chan_list_init(), misdn_facility_ie_handler(), misdn_hangup(), misdn_indication(), misdn_set_opt_exec(), print_bc_info(), read_config(), release_chan(), and release_chan_early().

◆ overlap_dial

int overlap_dial

Enables overlap dialing for the set amount of seconds. (0 = Disabled)

Note
The "overlapdial" value read in from /etc/asterisk/misdn.conf

Definition at line 588 of file chan_misdn.c.

Referenced by cb_events(), chan_list_destructor(), misdn_indication(), misdn_overlap_dial_task(), and read_config().

◆ overlap_dial_task

int overlap_dial_task

Overlap dialing timeout Task ID. -1 if not running.

Definition at line 593 of file chan_misdn.c.

Referenced by cb_events(), chan_list_destructor(), chan_list_init(), misdn_overlap_dial_task(), and read_config().

◆ overlap_tv

struct timeval overlap_tv

Overlap timer start time. Timer restarted for every digit received.

Definition at line 603 of file chan_misdn.c.

Referenced by cb_events(), and misdn_overlap_dial_task().

◆ overlap_tv_lock

ast_mutex_t overlap_tv_lock

overlap_tv access lock.

Definition at line 598 of file chan_misdn.c.

Referenced by cb_events(), chan_list_destructor(), misdn_overlap_dial_task(), and read_config().

◆ pipe

int pipe[2]

Pipe file descriptor handles array. Read from pipe[0], write to pipe[1].

Definition at line 444 of file chan_misdn.c.

Referenced by cb_events(), chan_list_destructor(), chan_list_init(), misdn_new(), and misdn_read().

◆ state

◆ toggle_ec

int toggle_ec

TRUE if echo canceller is enabled. Value is toggled.

Definition at line 425 of file chan_misdn.c.

Referenced by handle_cli_misdn_toggle_echocancel().

◆ ts

struct ast_tone_zone_sound* ts

Tone zone sound used for dialtone generation.

Note
Used as a boolean. Non-NULL to prod generation if enabled.

Definition at line 582 of file chan_misdn.c.

Referenced by dialtone_indicate(), misdn_write(), and stop_indicate().


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