mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
Merged revisions 89169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89169 | crichter | 2007-11-12 10:45:36 +0100 (Mo, 12 Nov 2007) | 1 line aded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2752,12 +2752,14 @@ static int handle_l1(msg_t *msg)
|
||||
case PH_DEACTIVATE | CONFIRM:
|
||||
case PH_DEACTIVATE | INDICATION:
|
||||
cb_log (3, stack->port, "L1: PH L1Link Down! \n");
|
||||
|
||||
|
||||
#if 0
|
||||
for (i=0; i<=stack->b_num; i++) {
|
||||
if (global_state == MISDN_INITIALIZED) {
|
||||
cb_event(EVENT_CLEANUP, &stack->bc[i], glob_mgr->user_data);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (stack->nt) {
|
||||
if (stack->nst.l1_l2(&stack->nst, msg))
|
||||
@@ -2859,7 +2861,9 @@ static int handle_mgmt(msg_t *msg)
|
||||
case SSTATUS_L1_DEACTIVATED:
|
||||
cb_log(3, 0, "MGMT: SSTATUS: L1_DEACTIVATED \n");
|
||||
stack->l1link=0;
|
||||
#if 0
|
||||
clear_l3(stack);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case SSTATUS_L2_ESTABLISHED:
|
||||
@@ -3866,6 +3870,18 @@ int misdn_lib_maxports_get() { /** BE AWARE WE HAVE NO CB_LOG HERE! **/
|
||||
}
|
||||
|
||||
|
||||
void misdn_lib_nt_keepcalls( int kc)
|
||||
{
|
||||
#ifdef FEATURE_NET_KEEPCALLS
|
||||
if (kc) {
|
||||
struct misdn_stack *stack=get_misdn_stack();
|
||||
for ( ; stack; stack=stack->next) {
|
||||
stack->nst.feature |= FEATURE_NET_KEEPCALLS;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void misdn_lib_nt_debug_init( int flags, char *file )
|
||||
{
|
||||
int static init=0;
|
||||
|
||||
Reference in New Issue
Block a user