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);
273 unsigned char lspi_type;
274 unsigned char lspi_scheme;
275 unsigned char lspi_context;
General Asterisk PBX channel definitions.
#define AST_MAX_EXTENSION
void sig_ss7_cb_call_null(struct ss7 *ss7, struct isup_call *c, int lock)
void sig_ss7_link_noalarm(struct sig_ss7_linkset *linkset, int which)
void sig_ss7_cli_show_channels_header(int fd)
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)
void sig_ss7_init_linkset(struct sig_ss7_linkset *ss7)
void sig_ss7_link_alarm(struct sig_ss7_linkset *linkset, int which)
int sig_ss7_reset_group(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc, int range)
int sig_ss7_available(struct sig_ss7_chan *p)
void sig_ss7_cb_notinservice(struct ss7 *ss7, int cic, unsigned int dpc)
sig_ss7_redirect_indication
@ SS7_INDICATION_DIVERTED_PRES_ALLOWED
@ SS7_INDICATION_REROUTED_PRES_RESTRICTED
@ SS7_INDICATION_NO_REDIRECTION
@ SS7_INDICATION_DIVERTED_INFO_RESTRICTED
@ SS7_INDICATION_REROUTED_INFO_RESTRICTED
@ SS7_INDICATION_DIVERTED_PRES_RESTRICTED
@ SS7_INDICATION_REROUTED_PRES_ALLOWED
int sig_ss7_reset_cic(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc)
int sig_ss7_call(struct sig_ss7_chan *p, struct ast_channel *ast, const char *rdest)
void * ss7_linkset(void *data)
int sig_ss7_indicate(struct sig_ss7_chan *p, struct ast_channel *chan, int condition, const void *data, size_t datalen)
int sig_ss7_group_blocking(struct sig_ss7_linkset *linkset, int do_block, int startcic, int endcic, unsigned char state[], int type)
int sig_ss7_find_cic(struct sig_ss7_linkset *linkset, int cic, unsigned int dpc)
void sig_ss7_free_isup_call(struct sig_ss7_linkset *linkset, int channel)
struct sig_ss7_callback sig_ss7_callbacks
void sig_ss7_set_alarm(struct sig_ss7_chan *p, int in_alarm)
@ SIG_SS7_TONE_DIALRECALL
@ SIG_SS7_TONE_CONGESTION
struct sig_ss7_chan * sig_ss7_chan_new(void *pvt_data, struct sig_ss7_linkset *ss7)
void sig_ss7_cli_show_channels(int fd, struct sig_ss7_linkset *linkset)
@ SIG_SS7_CALL_LEVEL_PROCEEDING
@ SIG_SS7_CALL_LEVEL_IDLE
@ SIG_SS7_CALL_LEVEL_SETUP
@ SIG_SS7_CALL_LEVEL_CONNECT
@ SIG_SS7_CALL_LEVEL_ALLOCATED
@ SIG_SS7_CALL_LEVEL_ALERTING
@ SIG_SS7_CALL_LEVEL_CONTINUITY
int sig_ss7_cic_blocking(struct sig_ss7_linkset *linkset, int do_block, int cic)
void sig_ss7_chan_delete(struct sig_ss7_chan *doomed)
int sig_ss7_cb_hangup(struct ss7 *ss7, int cic, unsigned int dpc, int cause, int do_hangup)
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)
int sig_ss7_hangup(struct sig_ss7_chan *p, struct ast_channel *ast)
void sig_ss7_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_ss7_chan *pchan)
#define SIG_SS7_NUM_DCHANS
int sig_ss7_answer(struct sig_ss7_chan *p, struct ast_channel *ast)
#define SIG_SS7_MAX_CHANNELS
@ SS7_REDIRECTING_REASON_DEFLECTION_IMMEDIATE_RESPONSE
@ SS7_REDIRECTING_REASON_DEFLECTION_DURING_ALERTING
@ SS7_REDIRECTING_REASON_UNKNOWN
@ SS7_REDIRECTING_REASON_NO_ANSWER
@ SS7_REDIRECTING_REASON_USER_BUSY
@ SS7_REDIRECTING_REASON_UNAVAILABLE
@ SS7_REDIRECTING_REASON_UNCONDITIONAL
int sig_ss7_find_cic_range(struct sig_ss7_linkset *linkset, int startcic, int endcic, unsigned int dpc)
Structure to pass both assignedid values to channel drivers.
Main Channel structure associated with a channel.
unsigned short transfercapability
char exten[AST_MAX_EXTENSION]
Structure for mutex and tracking information.
Caller Party information.
int(*const set_echocanceller)(void *pvt, int enable)
void(*const deadlock_avoidance_private)(void *pvt)
void(*const set_digital)(void *pvt, int is_digital)
struct sig_ss7_linkset *(*const find_linkset)(struct ss7 *ss7)
void(*const set_loopback)(void *pvt, int enable)
void(*const unlock_private)(void *pvt)
void(*const set_callerid)(void *pvt, const struct ast_party_caller *caller)
void(*const set_dnid)(void *pvt, const char *dnid)
void(*const set_outgoing)(void *pvt, int is_outgoing)
void(*const set_dialing)(void *pvt, int is_dialing)
void(*const set_alarm)(void *pvt, int in_alarm)
void(*const handle_link_exception)(struct sig_ss7_linkset *linkset, int which)
void(*const queue_control)(void *pvt, int subclass)
void(*const set_remotelyblocked)(void *pvt, int is_blocked)
void(*const lock_private)(void *pvt)
void(*const set_inservice)(void *pvt, int is_inservice)
void(*const open_media)(void *pvt)
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)
void(*const set_locallyblocked)(void *pvt, int is_blocked)
int(*const play_tone)(void *pvt, enum sig_ss7_tone tone)
char cid_subaddr[AST_MAX_EXTENSION]
char cid_num[AST_MAX_EXTENSION]
unsigned short cug_interlock_code
Binari Code to uniquely identify a CUG inside the network.
unsigned int echocontrol_ind
unsigned int outgoing
TRUE if this channel is being used for an outgoing call.
unsigned int loopedback
TRUE if this channel is in loopback.
unsigned int call_ref_ident
unsigned int locallyblocked
Bitmask for the channel being locally blocked.
unsigned char redirect_info_reas
unsigned char redirect_info_orig_reas
unsigned char redirect_info
int redirecting_presentation
unsigned char redirect_info_ind
enum sig_ss7_call_level call_level
unsigned int use_callingpres
TRUE if we will use the calling presentation setting from the Asterisk channel for outgoing calls.
unsigned char calling_party_cat
char exten[AST_MAX_EXTENSION]
unsigned int rlt
XXX BOOLEAN Purpose???
struct isup_call * ss7call
Opaque libss7 call control structure.
unsigned int remotelyblocked
Bitmask for the channel being remotely blocked.
unsigned int hidecallerid
TRUE if the outgoing caller ID is blocked/hidden.
unsigned int progress
TRUE if the call has seen inband-information progress through the network.
struct ast_channel * owner
unsigned char gen_dig_scheme
unsigned int called_complete
TRUE if the channel has completed collecting digits.
char cug_interlock_ni[5]
Network Identify Code as per Q.763 3.15.a.
unsigned char gen_add_type
unsigned char gen_add_pres_ind
unsigned char gen_add_num_plan
struct sig_ss7_linkset * ss7
unsigned char cug_indicator
Indication of the call being a CUG call and its permissions.
char context[AST_MAX_CONTEXT]
unsigned char redirect_counter
unsigned int inalarm
TRUE if channel is associated with a link that is down.
int orig_called_presentation
char cid_name[AST_MAX_EXTENSION]
unsigned int inservice
TRUE if channel is in service.
unsigned char redirect_info_counter
int stripmsd
Number of most significant digits/characters to strip from the dialed number.
unsigned char gen_add_nai
unsigned int use_callerid
TRUE if caller ID is used on this channel.
char cid_ani[AST_MAX_EXTENSION]
char mohinterpret[MAX_MUSICCLASS]
unsigned char gen_dig_type
int fds[SIG_SS7_NUM_DCHANS]
char subscriberprefix[20]
enum sig_ss7_linkset::@143 state
int linkstate[SIG_SS7_NUM_DCHANS]
char networkroutedprefix[20]
char internationalprefix[10]
struct sig_ss7_chan * pvts[SIG_SS7_MAX_CHANNELS]