Asterisk - The Open Source Telephony Project
18.5.0
|
Interface header for PRI signaling module. More...
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/ccss.h"
#include <libpri.h>
#include <dahdi/user.h>
Go to the source code of this file.
Data Structures | |
struct | sig_pri_callback |
struct | sig_pri_chan |
struct | sig_pri_span |
Macros | |
#define | DAHDI_CHAN_MAPPING_LOGICAL 1 |
#define | DAHDI_CHAN_MAPPING_PHYSICAL 0 |
#define | DAHDI_OVERLAPDIAL_BOTH (DAHDI_OVERLAPDIAL_INCOMING|DAHDI_OVERLAPDIAL_OUTGOING) |
#define | DAHDI_OVERLAPDIAL_INCOMING 2 |
#define | DAHDI_OVERLAPDIAL_NONE 0 |
#define | DAHDI_OVERLAPDIAL_OUTGOING 1 |
#define | SIG_BRI (0x2000000 | DAHDI_SIG_CLEAR) |
#define | SIG_BRI_PTMP (0X4000000 | DAHDI_SIG_CLEAR) |
#define | SIG_PRI DAHDI_SIG_CLEAR |
#define | SIG_PRI_AOC_GRANT_D (1 << 1) |
#define | SIG_PRI_AOC_GRANT_E (1 << 2) |
#define | SIG_PRI_AOC_GRANT_S (1 << 0) |
#define | SIG_PRI_DEBUG_DEFAULT 0 |
#define | SIG_PRI_DEBUG_NORMAL (PRI_DEBUG_APDU | PRI_DEBUG_Q931_STATE | PRI_DEBUG_Q921_STATE) |
#define | SIG_PRI_MAX_CHANNELS 672 |
#define | SIG_PRI_NUM_DCHANS 4 |
Variables | |
struct sig_pri_callback | sig_pri_callbacks |
Interface header for PRI signaling module.
Definition in file sig_pri.h.
#define DAHDI_CHAN_MAPPING_LOGICAL 1 |
Definition at line 250 of file sig_pri.h.
Referenced by process_dahdi().
#define DAHDI_CHAN_MAPPING_PHYSICAL 0 |
Definition at line 249 of file sig_pri.h.
Referenced by dahdi_chan_conf_default(), and process_dahdi().
#define DAHDI_OVERLAPDIAL_BOTH (DAHDI_OVERLAPDIAL_INCOMING|DAHDI_OVERLAPDIAL_OUTGOING) |
Definition at line 256 of file sig_pri.h.
Referenced by process_dahdi().
#define DAHDI_OVERLAPDIAL_INCOMING 2 |
Definition at line 255 of file sig_pri.h.
Referenced by dahdi_handle_event(), dahdi_read(), and process_dahdi().
#define DAHDI_OVERLAPDIAL_NONE 0 |
Definition at line 253 of file sig_pri.h.
Referenced by process_dahdi().
#define DAHDI_OVERLAPDIAL_OUTGOING 1 |
Definition at line 254 of file sig_pri.h.
Referenced by dahdi_read(), and process_dahdi().
#define SIG_PRI_AOC_GRANT_D (1 << 1) |
Definition at line 54 of file sig_pri.h.
Referenced by process_dahdi().
#define SIG_PRI_AOC_GRANT_E (1 << 2) |
Definition at line 55 of file sig_pri.h.
Referenced by process_dahdi().
#define SIG_PRI_AOC_GRANT_S (1 << 0) |
Definition at line 53 of file sig_pri.h.
Referenced by process_dahdi().
#define SIG_PRI_DEBUG_DEFAULT 0 |
#define SIG_PRI_DEBUG_NORMAL (PRI_DEBUG_APDU | PRI_DEBUG_Q931_STATE | PRI_DEBUG_Q921_STATE) |
PRI debug message flags when normal PRI debugging is turned on at the command line.
Definition at line 41 of file sig_pri.h.
Referenced by dahdi_cc_callback().
#define SIG_PRI_MAX_CHANNELS 672 |
#define SIG_PRI_NUM_DCHANS 4 |
No more than 4 d-channels
Definition at line 241 of file sig_pri.h.
Referenced by __unload_module(), dahdi_cc_callback(), dahdi_create_channel_range(), dahdi_restart(), mkintf(), restart_monitor(), and setup_dahdi_int().
enum sig_pri_call_level |
Call establishment life cycle level for simple comparisons.
Definition at line 135 of file sig_pri.h.
enum sig_pri_law |
Enumerator | |
---|---|
SIG_PRI_DEFLAW | |
SIG_PRI_ULAW | |
SIG_PRI_ALAW |
enum sig_pri_moh_event |
Definition at line 110 of file sig_pri.h.
Enumerator | |
---|---|
SIG_PRI_MOH_SIGNALING_MOH | Generate MOH to the remote party. |
SIG_PRI_MOH_SIGNALING_NOTIFY | Send hold notification signaling to the remote party. |
Definition at line 73 of file sig_pri.h.
enum sig_pri_moh_state |
Definition at line 84 of file sig_pri.h.
enum sig_pri_reset_state |
Definition at line 152 of file sig_pri.h.
enum sig_pri_tone |
Enumerator | |
---|---|
SIG_PRI_TONE_RINGTONE | |
SIG_PRI_TONE_STUTTER | |
SIG_PRI_TONE_CONGESTION | |
SIG_PRI_TONE_DIALTONE | |
SIG_PRI_TONE_DIALRECALL | |
SIG_PRI_TONE_INFO | |
SIG_PRI_TONE_BUSY |
Definition at line 57 of file sig_pri.h.
void pri_event_alarm | ( | struct sig_pri_span * | pri, |
int | index, | ||
int | before_start_pri | ||
) |
Referenced by dahdi_cc_callback(), and my_on_hook().
void pri_event_noalarm | ( | struct sig_pri_span * | pri, |
int | index, | ||
int | before_start_pri | ||
) |
Referenced by dahdi_cc_callback(), and my_on_hook().
int pri_is_up | ( | struct sig_pri_span * | pri | ) |
int pri_send_callrerouting_facility_exec | ( | struct sig_pri_chan * | p, |
enum ast_channel_state | chanstate, | ||
const char * | destination, | ||
const char * | original, | ||
const char * | reason | ||
) |
Referenced by destroy_all_channels().
int pri_send_keypad_facility_exec | ( | struct sig_pri_chan * | p, |
const char * | digits | ||
) |
Referenced by destroy_all_channels().
int sig_pri_ami_show_spans | ( | struct mansession * | s, |
const char * | show_cmd, | ||
struct sig_pri_span * | pri, | ||
const int * | dchannels, | ||
const char * | action_id | ||
) |
Referenced by action_dahdishowchannels().
int sig_pri_answer | ( | struct sig_pri_chan * | p, |
struct ast_channel * | ast | ||
) |
Referenced by dahdi_answer().
int sig_pri_available | ( | struct sig_pri_chan ** | pvt, |
int | is_specific_channel | ||
) |
Referenced by available().
int sig_pri_call | ( | struct sig_pri_chan * | p, |
struct ast_channel * | ast, | ||
const char * | rdest, | ||
int | timeout, | ||
int | layer1 | ||
) |
Referenced by dahdi_call().
int sig_pri_cc_agent_callee_available | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
void sig_pri_cc_agent_destructor | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_init | ( | struct ast_cc_agent * | agent, |
struct sig_pri_chan * | pvt_chan | ||
) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_party_b_free | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
void sig_pri_cc_agent_req_rsp | ( | struct ast_cc_agent * | agent, |
enum ast_cc_agent_response_reason | reason | ||
) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_start_monitoring | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_start_offer_timer | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_status_req | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_stop_offer_timer | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_agent_stop_ringing | ( | struct ast_cc_agent * | agent | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_monitor_cancel_available_timer | ( | struct ast_cc_monitor * | monitor, |
int * | sched_id | ||
) |
Referenced by action_dahdishowchannels().
void sig_pri_cc_monitor_destructor | ( | void * | monitor_pvt | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_monitor_req_cc | ( | struct ast_cc_monitor * | monitor, |
int * | available_timer_id | ||
) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_monitor_status_rsp | ( | struct ast_cc_monitor * | monitor, |
enum ast_device_state | devstate | ||
) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_monitor_suspend | ( | struct ast_cc_monitor * | monitor | ) |
Referenced by action_dahdishowchannels().
int sig_pri_cc_monitor_unsuspend | ( | struct ast_cc_monitor * | monitor | ) |
Referenced by action_dahdishowchannels().
void sig_pri_chan_alarm_notify | ( | struct sig_pri_chan * | p, |
int | noalarm | ||
) |
Referenced by dahdi_handle_event(), and handle_init_event().
void sig_pri_chan_delete | ( | struct sig_pri_chan * | doomed | ) |
Referenced by destroy_dahdi_pvt().
struct sig_pri_chan* sig_pri_chan_new | ( | void * | pvt_data, |
struct sig_pri_span * | pri, | ||
int | logicalspan, | ||
int | channo, | ||
int | trunkgroup | ||
) |
Referenced by available(), and mkintf().
void sig_pri_cli_show_channels | ( | int | fd, |
struct sig_pri_span * | pri | ||
) |
Referenced by dahdi_cc_callback().
void sig_pri_cli_show_channels_header | ( | int | fd | ) |
Referenced by dahdi_cc_callback().
void sig_pri_cli_show_span | ( | int | fd, |
int * | dchannels, | ||
struct sig_pri_span * | pri | ||
) |
Referenced by dahdi_cc_callback().
void sig_pri_cli_show_spans | ( | int | fd, |
int | span, | ||
struct sig_pri_span * | pri | ||
) |
Referenced by dahdi_cc_callback().
void sig_pri_dial_complete | ( | struct sig_pri_chan * | pvt, |
struct ast_channel * | ast | ||
) |
Referenced by dahdi_handle_event().
int sig_pri_digit_begin | ( | struct sig_pri_chan * | pvt, |
struct ast_channel * | ast, | ||
char | digit | ||
) |
Referenced by dahdi_digit_begin().
void sig_pri_extract_called_num_subaddr | ( | struct sig_pri_chan * | p, |
const char * | rdest, | ||
char * | called, | ||
size_t | called_buff_size | ||
) |
Referenced by dahdi_call(), and dahdi_request().
void sig_pri_fixup | ( | struct ast_channel * | oldchan, |
struct ast_channel * | newchan, | ||
struct sig_pri_chan * | pchan | ||
) |
Referenced by dahdi_fixup().
int sig_pri_hangup | ( | struct sig_pri_chan * | p, |
struct ast_channel * | ast | ||
) |
Referenced by dahdi_hangup().
int sig_pri_indicate | ( | struct sig_pri_chan * | p, |
struct ast_channel * | chan, | ||
int | condition, | ||
const void * | data, | ||
size_t | datalen | ||
) |
Referenced by dahdi_indicate().
void sig_pri_init_pri | ( | struct sig_pri_span * | pri | ) |
Referenced by dahdi_cc_callback(), dahdi_restart(), and load_module().
int sig_pri_is_alarm_ignored | ( | struct sig_pri_span * | pri | ) |
Referenced by handle_alarms(), handle_clear_alarms(), and my_on_hook().
int sig_pri_is_chan_available | ( | struct sig_pri_chan * | pvt | ) |
Referenced by my_on_hook().
int sig_pri_load | ( | const char * | cc_type_name | ) |
Referenced by load_module().
struct ast_channel* sig_pri_request | ( | struct sig_pri_chan * | p, |
enum sig_pri_law | law, | ||
const struct ast_assigned_ids * | assignedids, | ||
const struct ast_channel * | requestor, | ||
int | transfercapability | ||
) |
Referenced by dahdi_request().
void sig_pri_set_alarm | ( | struct sig_pri_chan * | p, |
int | in_alarm | ||
) |
Referenced by mkintf().
int sig_pri_start_pri | ( | struct sig_pri_span * | pri | ) |
Referenced by setup_dahdi_int().
void sig_pri_stop_pri | ( | struct sig_pri_span * | pri | ) |
Referenced by __unload_module().
void sig_pri_unload | ( | void | ) |
Referenced by __unload_module().
struct sig_pri_callback sig_pri_callbacks |
Global sig_pri callbacks to the upper layer.