[asterisk-commits] crichter: branch 1.2 r50506 - /branches/1.2/channels/misdn/isdn_lib.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 11 07:45:38 MST 2007


Author: crichter
Date: Thu Jan 11 08:45:38 2007
New Revision: 50506

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50506
Log:
when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.

Modified:
    branches/1.2/channels/misdn/isdn_lib.c

Modified: branches/1.2/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/misdn/isdn_lib.c?view=diff&rev=50506&r1=50505&r2=50506
==============================================================================
--- branches/1.2/channels/misdn/isdn_lib.c (original)
+++ branches/1.2/channels/misdn/isdn_lib.c Thu Jan 11 08:45:38 2007
@@ -1965,7 +1965,9 @@
 				cb_log(0, stack->port, "%% GOT L2 Activate Info. but we're activated already.. this l2 is faulty, blocking port\n");
 				cb_event(EVENT_PORT_ALARM, &stack->bc[0], glob_mgr->user_data);
 			}
-			
+		
+			/* when we get the L2 UP, the L1 is UP definitely too*/
+			stack->l1link = 1;
 			stack->l2link = 1;
 			stack->l2upcnt=0;
 			
@@ -2812,6 +2814,9 @@
 
 		case SSTATUS_L2_ESTABLISHED:
 			cb_log(3, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n");
+
+			/*when the L2 goes UP, L1 needs to be UP too*/
+			stack->l1link=1;
 			stack->l2link=1;
 			if ( !stack->ptp && !stack->nt )
 				stack->l1link=2;



More information about the asterisk-commits mailing list