[asterisk-commits] trunk r9309 - /trunk/channels/misdn/isdn_lib.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Feb 9 09:58:15 MST 2006
Author: crichter
Date: Thu Feb 9 10:58:13 2006
New Revision: 9309
URL: http://svn.digium.com/view/asterisk?rev=9309&view=rev
Log:
still some L1 related fixes
Modified:
trunk/channels/misdn/isdn_lib.c
Modified: trunk/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/misdn/isdn_lib.c?rev=9309&r1=9308&r2=9309&view=diff
==============================================================================
--- trunk/channels/misdn/isdn_lib.c (original)
+++ trunk/channels/misdn/isdn_lib.c Thu Feb 9 10:58:13 2006
@@ -1138,7 +1138,7 @@
if (!stack->nt) {
/*assume L1 is up, we'll get DEACTIVATES soon, for non
* up L1s*/
- stack->l1link=1;
+ stack->l1link=0;
}
misdn_lib_get_short_status(stack);
@@ -2342,12 +2342,13 @@
case SSTATUS_L2_ESTABLISHED:
cb_log(1, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n");
stack->l2link=1;
+ if ( !stack->ptp && !stack->nt )
+ stack->l1link=2;
break;
case SSTATUS_L2_RELEASED:
cb_log(1, stack->port, "MGMT: SSTATUS: L2_RELEASED \n");
stack->l2link=0;
- stack->l1link=2;
break;
}
More information about the asterisk-commits
mailing list