Archived
14
0
Fork 0

still some L1 related fixes

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9309 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
crichter 2006-02-09 16:58:13 +00:00
parent eec98d0bea
commit 0a2b114fb5

View file

@ -1138,7 +1138,7 @@ struct misdn_stack* stack_init( int midev, int port, int ptp )
if (!stack->nt) { if (!stack->nt) {
/*assume L1 is up, we'll get DEACTIVATES soon, for non /*assume L1 is up, we'll get DEACTIVATES soon, for non
* up L1s*/ * up L1s*/
stack->l1link=1; stack->l1link=0;
} }
misdn_lib_get_short_status(stack); misdn_lib_get_short_status(stack);
@ -2342,12 +2342,13 @@ int handle_mgmt(msg_t *msg)
case SSTATUS_L2_ESTABLISHED: case SSTATUS_L2_ESTABLISHED:
cb_log(1, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n"); cb_log(1, stack->port, "MGMT: SSTATUS: L2_ESTABLISH \n");
stack->l2link=1; stack->l2link=1;
if ( !stack->ptp && !stack->nt )
stack->l1link=2;
break; break;
case SSTATUS_L2_RELEASED: case SSTATUS_L2_RELEASED:
cb_log(1, stack->port, "MGMT: SSTATUS: L2_RELEASED \n"); cb_log(1, stack->port, "MGMT: SSTATUS: L2_RELEASED \n");
stack->l2link=0; stack->l2link=0;
stack->l1link=2;
break; break;
} }