[svn-commits] branch crichter/0.3.0 r9308 - /team/crichter/0.3.0/channels/misdn/isdn_lib.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Feb 9 09:57:41 MST 2006


Author: crichter
Date: Thu Feb  9 10:57:38 2006
New Revision: 9308

URL: http://svn.digium.com/view/asterisk?rev=9308&view=rev
Log:
still some L1 related fixes

Modified:
    team/crichter/0.3.0/channels/misdn/isdn_lib.c

Modified: team/crichter/0.3.0/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/misdn/isdn_lib.c?rev=9308&r1=9307&r2=9308&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_lib.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_lib.c Thu Feb  9 10:57:38 2006
@@ -1141,7 +1141,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);
@@ -2343,12 +2343,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 svn-commits mailing list