mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Added option far_alerting. This option makes it possible to generate a Ringing on other channels if they feel that they should have inband ringing, but there is non in reality. I need this due to the fact that asterisk has not the possibility to transmit progress indicators thus chan_sip and others do not know wether they should generate a Rining tone themselves if they receive AST_CONTROL_RINGING..
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -23,6 +23,7 @@ enum misdn_cfg_elements {
|
||||
/* port config items */
|
||||
MISDN_CFG_FIRST = 0,
|
||||
MISDN_CFG_GROUPNAME, /* char[] */
|
||||
MISDN_CFG_FAR_ALERTING, /* int (bool) */
|
||||
MISDN_CFG_RXGAIN, /* int */
|
||||
MISDN_CFG_TXGAIN, /* int */
|
||||
MISDN_CFG_TE_CHOOSE_CHANNEL, /* int (bool) */
|
||||
|
@@ -3064,8 +3064,6 @@ int handle_err(msg_t *msg)
|
||||
int queue_l2l3(msg_t *msg) {
|
||||
iframe_t *frm= (iframe_t*)msg->data;
|
||||
struct misdn_stack *stack;
|
||||
int err=0;
|
||||
|
||||
stack=find_stack_by_addr( frm->addr );
|
||||
|
||||
|
||||
@@ -3261,7 +3259,6 @@ void manager_event_handler(void *arg)
|
||||
stack=stack->next ) {
|
||||
|
||||
while ( (msg=msg_dequeue(&stack->upqueue)) ) {
|
||||
int res=0;
|
||||
/** Handle L2/3 Signalling after bchans **/
|
||||
if (!handle_frm_nt(msg)) {
|
||||
/* Maybe it's TE */
|
||||
@@ -3848,3 +3845,13 @@ void misdn_lib_split_bridge( struct misdn_bchannel * bc1, struct misdn_bchannel
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void misdn_lib_echo(struct misdn_bchannel *bc, int onoff)
|
||||
{
|
||||
cb_log(1,bc->port, " --> ECHO %s\n", onoff?"ON":"OFF");
|
||||
manager_ph_control(bc, onoff?CMX_ECHO_ON:CMX_ECHO_OFF, 0);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -392,6 +392,8 @@ void misdn_lib_setup_bc(struct misdn_bchannel *bc);
|
||||
void misdn_lib_bridge( struct misdn_bchannel * bc1, struct misdn_bchannel *bc2);
|
||||
void misdn_lib_split_bridge( struct misdn_bchannel * bc1, struct misdn_bchannel *bc2);
|
||||
|
||||
void misdn_lib_echo(struct misdn_bchannel *bc, int onoff);
|
||||
|
||||
unsigned char * flip_buf_bits ( unsigned char * buf , int len);
|
||||
|
||||
int misdn_lib_is_ptp(int port);
|
||||
|
Reference in New Issue
Block a user