Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 |
Functions | |
void | pri_event_alarm (struct sig_pri_span *pri, int index, int before_start_pri) |
void | pri_event_noalarm (struct sig_pri_span *pri, int index, int before_start_pri) |
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) |
int | pri_send_keypad_facility_exec (struct sig_pri_chan *p, const char *digits) |
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) |
int | sig_pri_answer (struct sig_pri_chan *p, struct ast_channel *ast) |
int | sig_pri_available (struct sig_pri_chan **pvt, int is_specific_channel) |
int | sig_pri_call (struct sig_pri_chan *p, struct ast_channel *ast, const char *rdest, int timeout, int layer1) |
int | sig_pri_cc_agent_callee_available (struct ast_cc_agent *agent) |
void | sig_pri_cc_agent_destructor (struct ast_cc_agent *agent) |
int | sig_pri_cc_agent_init (struct ast_cc_agent *agent, struct sig_pri_chan *pvt_chan) |
int | sig_pri_cc_agent_party_b_free (struct ast_cc_agent *agent) |
void | sig_pri_cc_agent_req_rsp (struct ast_cc_agent *agent, enum ast_cc_agent_response_reason reason) |
int | sig_pri_cc_agent_start_monitoring (struct ast_cc_agent *agent) |
int | sig_pri_cc_agent_start_offer_timer (struct ast_cc_agent *agent) |
int | sig_pri_cc_agent_status_req (struct ast_cc_agent *agent) |
int | sig_pri_cc_agent_stop_offer_timer (struct ast_cc_agent *agent) |
int | sig_pri_cc_agent_stop_ringing (struct ast_cc_agent *agent) |
int | sig_pri_cc_monitor_cancel_available_timer (struct ast_cc_monitor *monitor, int *sched_id) |
void | sig_pri_cc_monitor_destructor (void *monitor_pvt) |
int | sig_pri_cc_monitor_req_cc (struct ast_cc_monitor *monitor, int *available_timer_id) |
int | sig_pri_cc_monitor_status_rsp (struct ast_cc_monitor *monitor, enum ast_device_state devstate) |
int | sig_pri_cc_monitor_suspend (struct ast_cc_monitor *monitor) |
int | sig_pri_cc_monitor_unsuspend (struct ast_cc_monitor *monitor) |
void | sig_pri_chan_alarm_notify (struct sig_pri_chan *p, int noalarm) |
void | sig_pri_chan_delete (struct sig_pri_chan *doomed) |
struct sig_pri_chan * | sig_pri_chan_new (void *pvt_data, struct sig_pri_span *pri, int logicalspan, int channo, int trunkgroup) |
void | sig_pri_cli_show_channels (int fd, struct sig_pri_span *pri) |
void | sig_pri_cli_show_channels_header (int fd) |
void | sig_pri_cli_show_span (int fd, int *dchannels, struct sig_pri_span *pri) |
void | sig_pri_cli_show_spans (int fd, int span, struct sig_pri_span *pri) |
void | sig_pri_dial_complete (struct sig_pri_chan *pvt, struct ast_channel *ast) |
int | sig_pri_digit_begin (struct sig_pri_chan *pvt, struct ast_channel *ast, char digit) |
void | sig_pri_extract_called_num_subaddr (struct sig_pri_chan *p, const char *rdest, char *called, size_t called_buff_size) |
void | sig_pri_fixup (struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_pri_chan *pchan) |
int | sig_pri_hangup (struct sig_pri_chan *p, struct ast_channel *ast) |
int | sig_pri_indicate (struct sig_pri_chan *p, struct ast_channel *chan, int condition, const void *data, size_t datalen) |
void | sig_pri_init_pri (struct sig_pri_span *pri) |
int | sig_pri_is_alarm_ignored (struct sig_pri_span *pri) |
int | sig_pri_is_chan_available (struct sig_pri_chan *pvt) |
int | sig_pri_load (const char *cc_type_name) |
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) |
void | sig_pri_set_alarm (struct sig_pri_chan *p, int in_alarm) |
int | sig_pri_start_pri (struct sig_pri_span *pri) |
void | sig_pri_stop_pri (struct sig_pri_span *pri) |
void | sig_pri_unload (void) |
Variables | |
struct sig_pri_callback | sig_pri_callbacks |
Interface header for PRI signaling module.
Definition in file sig_pri.h.
#define DAHDI_OVERLAPDIAL_BOTH (DAHDI_OVERLAPDIAL_INCOMING|DAHDI_OVERLAPDIAL_OUTGOING) |
#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 |
enum sig_pri_call_level |
Call establishment life cycle level for simple comparisons.
Definition at line 135 of file sig_pri.h.
Definition at line 435 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 |
void pri_event_alarm | ( | struct sig_pri_span * | pri, |
int | index, | ||
int | before_start_pri | ||
) |
void pri_event_noalarm | ( | struct sig_pri_span * | pri, |
int | index, | ||
int | before_start_pri | ||
) |
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 | ||
) |
int pri_send_keypad_facility_exec | ( | struct sig_pri_chan * | p, |
const char * | digits | ||
) |
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 | ||
) |
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 | ) |
void sig_pri_cc_agent_destructor | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_agent_init | ( | struct ast_cc_agent * | agent, |
struct sig_pri_chan * | pvt_chan | ||
) |
int sig_pri_cc_agent_party_b_free | ( | struct ast_cc_agent * | agent | ) |
void sig_pri_cc_agent_req_rsp | ( | struct ast_cc_agent * | agent, |
enum ast_cc_agent_response_reason | reason | ||
) |
int sig_pri_cc_agent_start_monitoring | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_agent_start_offer_timer | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_agent_status_req | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_agent_stop_offer_timer | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_agent_stop_ringing | ( | struct ast_cc_agent * | agent | ) |
int sig_pri_cc_monitor_cancel_available_timer | ( | struct ast_cc_monitor * | monitor, |
int * | sched_id | ||
) |
void sig_pri_cc_monitor_destructor | ( | void * | monitor_pvt | ) |
int sig_pri_cc_monitor_req_cc | ( | struct ast_cc_monitor * | monitor, |
int * | available_timer_id | ||
) |
int sig_pri_cc_monitor_status_rsp | ( | struct ast_cc_monitor * | monitor, |
enum ast_device_state | devstate | ||
) |
int sig_pri_cc_monitor_suspend | ( | struct ast_cc_monitor * | monitor | ) |
int sig_pri_cc_monitor_unsuspend | ( | struct ast_cc_monitor * | monitor | ) |
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 mkintf().
void sig_pri_cli_show_channels | ( | int | fd, |
struct sig_pri_span * | pri | ||
) |
void sig_pri_cli_show_channels_header | ( | int | fd | ) |
void sig_pri_cli_show_span | ( | int | fd, |
int * | dchannels, | ||
struct sig_pri_span * | pri | ||
) |
void sig_pri_cli_show_spans | ( | int | fd, |
int | span, | ||
struct sig_pri_span * | pri | ||
) |
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_restart(), and load_module().
int sig_pri_is_alarm_ignored | ( | struct sig_pri_span * | pri | ) |
Referenced by handle_alarms(), and handle_clear_alarms().
int sig_pri_is_chan_available | ( | struct sig_pri_chan * | pvt | ) |
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().
|
extern |
Global sig_pri callbacks to the upper layer.