30 #ifndef _ASTERISK_SIG_SS7_H 31 #define _ASTERISK_SIG_SS7_H 43 #define SIG_SS7_DEBUG \ 44 (SS7_DEBUG_MTP2 | SS7_DEBUG_MTP3 | SS7_DEBUG_ISUP) 48 #define SIG_SS7_DEBUG_DEFAULT SIG_SS7_DEBUG 51 #define SIG_SS7_DEBUG_DEFAULT 0 56 #define SIG_SS7_NUM_DCHANS 4 57 #define SIG_SS7_MAX_CHANNELS 672 59 #define SIG_SS7 (0x1000000 | DAHDI_SIG_CLEAR) 61 #define LINKSTATE_INALARM (1 << 0) 62 #define LINKSTATE_STARTING (1 << 1) 63 #define LINKSTATE_UP (1 << 2) 64 #define LINKSTATE_DOWN (1 << 3) 66 #define SS7_NAI_DYNAMIC -1 68 #define LINKSET_FLAG_EXPLICITACM (1 << 0) 69 #define LINKSET_FLAG_INITIALHWBLO (1 << 1) 70 #define LINKSET_FLAG_USEECHOCONTROL (1 << 2) 71 #define LINKSET_FLAG_DEFAULTECHOCONTROL (1 << 3) 72 #define LINKSET_FLAG_AUTOACM (1 << 4) 74 #define SS7_BLOCKED_MAINTENANCE (1 << 0) 75 #define SS7_BLOCKED_HARDWARE (1 << 1) 178 void (*
const set_dnid)(
void *pvt,
const char *dnid);
251 char charge_number[50];
252 char gen_add_number[50];
253 char gen_dig_number[50];
254 char orig_called_num[50];
256 char redirecting_num[50];
264 char generic_name[50];
273 unsigned char lspi_type;
274 unsigned char lspi_scheme;
275 unsigned char lspi_context;
306 char cug_interlock_ni[5];
330 LINKSET_STATE_DOWN = 0,
339 char internationalprefix[10];
340 char nationalprefix[10];
341 char subscriberprefix[20];
342 char unknownprefix[20];
343 char networkroutedprefix[20];
369 int transfercapability);
unsigned char gen_add_pres_ind
enum sip_cc_notify_state state
struct ast_channel * sig_ss7_request(struct sig_ss7_chan *p, enum sig_ss7_law law, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, int transfercapability)
static char mohinterpret[MAX_MUSICCLASS]
static char exten[AST_MAX_EXTENSION]
Main Channel structure associated with a channel.
int sig_ss7_available(struct sig_ss7_chan *p)
unsigned char gen_dig_type
int sig_ss7_reset_cic(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc)
unsigned int outgoing
TRUE if this channel is being used for an outgoing call.
void(*const lock_private)(void *pvt)
int(*const set_echocanceller)(void *pvt, int enable)
int sig_ss7_indicate(struct sig_ss7_chan *p, struct ast_channel *chan, int condition, const void *data, size_t datalen)
void(*const set_alarm)(void *pvt, int in_alarm)
unsigned char gen_add_num_plan
void sig_ss7_cli_show_channels(int fd, struct sig_ss7_linkset *linkset)
unsigned int hidecallerid
TRUE if the outgoing caller ID is blocked/hidden.
unsigned char cug_indicator
Indication of the call being a CUG call and its permissions.
void(*const set_remotelyblocked)(void *pvt, int is_blocked)
unsigned char redirect_info_counter
unsigned short cug_interlock_code
Binari Code to uniquely identify a CUG inside the network.
unsigned int loopedback
TRUE if this channel is in loopback.
struct sig_ss7_linkset * ss7
void(*const set_locallyblocked)(void *pvt, int is_blocked)
Structure to pass both assignedid values to channel drivers.
struct sig_ss7_callback sig_ss7_callbacks
struct ast_channel *(*const new_ast_channel)(void *pvt, int state, enum sig_ss7_law law, char *exten, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor)
unsigned int inalarm
TRUE if channel is associated with a link that is down.
int redirecting_presentation
struct sig_ss7_linkset *(*const find_linkset)(struct ss7 *ss7)
void sig_ss7_cb_notinservice(struct ss7 *ss7, int cic, unsigned int dpc)
unsigned char gen_dig_scheme
void sig_ss7_free_isup_call(struct sig_ss7_linkset *linkset, int channel)
int sig_ss7_cic_blocking(struct sig_ss7_linkset *linkset, int do_block, int cic)
static char cid_num[AST_MAX_EXTENSION]
int sig_ss7_reset_group(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc, int range)
unsigned char redirect_info_reas
void(*const set_digital)(void *pvt, int is_digital)
unsigned int use_callingpres
TRUE if we will use the calling presentation setting from the Asterisk channel for outgoing calls...
#define SIG_SS7_MAX_CHANNELS
unsigned int remotelyblocked
Bitmask for the channel being remotely blocked.
void(*const set_dnid)(void *pvt, const char *dnid)
unsigned char redirect_info_ind
void(*const set_dialing)(void *pvt, int is_dialing)
unsigned int use_callerid
TRUE if caller ID is used on this channel.
unsigned int progress
TRUE if the call has seen inband-information progress through the network.
void(*const set_outgoing)(void *pvt, int is_outgoing)
General Asterisk PBX channel definitions.
int stripmsd
Number of most significant digits/characters to strip from the dialed number.
unsigned char redirect_info
struct sig_ss7_chan * sig_ss7_chan_new(void *pvt_data, struct sig_ss7_linkset *ss7)
void sig_ss7_link_noalarm(struct sig_ss7_linkset *linkset, int which)
int sig_ss7_find_cic(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc)
#define AST_MAX_EXTENSION
void(*const open_media)(void *pvt)
void sig_ss7_cli_show_channels_header(int fd)
Caller Party information.
unsigned char redirect_info_orig_reas
void sig_ss7_set_alarm(struct sig_ss7_chan *p, int in_alarm)
static struct ao2_container * pvts
unsigned int inservice
TRUE if channel is in service.
int sig_ss7_call(struct sig_ss7_chan *p, struct ast_channel *ast, const char *rdest)
void(*const set_loopback)(void *pvt, int enable)
#define SIG_SS7_NUM_DCHANS
int sig_ss7_find_cic_range(struct sig_ss7_linkset *linkset, int startcic, int endcic, unsigned int dpc)
unsigned int rlt
XXX BOOLEAN Purpose???
unsigned char gen_add_type
void sig_ss7_init_linkset(struct sig_ss7_linkset *ss7)
int sig_ss7_group_blocking(struct sig_ss7_linkset *linkset, int do_block, int startcic, int endcic, unsigned char state[], int type)
unsigned int call_ref_ident
int(*const play_tone)(void *pvt, enum sig_ss7_tone tone)
int orig_called_presentation
void sig_ss7_link_alarm(struct sig_ss7_linkset *linkset, int which)
sig_ss7_redirect_idication
static char cid_name[AST_MAX_EXTENSION]
unsigned int locallyblocked
Bitmask for the channel being locally blocked.
void sig_ss7_chan_delete(struct sig_ss7_chan *doomed)
void(*const queue_control)(void *pvt, int subclass)
int sig_ss7_hangup(struct sig_ss7_chan *p, struct ast_channel *ast)
int sig_ss7_add_sigchan(struct sig_ss7_linkset *linkset, int which, int ss7type, int transport, int inalarm, int networkindicator, int pointcode, int adjpointcode, int cur_slc)
void(*const set_inservice)(void *pvt, int is_inservice)
void(*const set_callerid)(void *pvt, const struct ast_party_caller *caller)
struct ast_channel * owner
unsigned int called_complete
TRUE if the channel has completed collecting digits.
struct isup_call * ss7call
Opaque libss7 call control structure.
void(*const deadlock_avoidance_private)(void *pvt)
int sig_ss7_answer(struct sig_ss7_chan *p, struct ast_channel *ast)
void(*const handle_link_exception)(struct sig_ss7_linkset *linkset, int which)
static char context[AST_MAX_CONTEXT]
void(*const unlock_private)(void *pvt)
void sig_ss7_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_ss7_chan *pchan)
unsigned char gen_add_nai
int sig_ss7_cb_hangup(struct ss7 *ss7, int cic, unsigned int dpc, int cause, int do_hangup)
unsigned int echocontrol_ind
void * ss7_linkset(void *data)
Structure for mutex and tracking information.
unsigned char calling_party_cat
unsigned char redirect_counter
void sig_ss7_cb_call_null(struct ss7 *ss7, struct isup_call *c, int lock)