diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-11 14:45:38 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-11 14:45:38 +0000 |
commit | 9bfb024dbf233c34adb4505f810b75970f00d2b4 (patch) | |
tree | 1a1cbddb82243e5a3801d57aba30175263f4f019 /channels | |
parent | 491cf508dd486a2b1121ae8e0a2800ef092035db (diff) |
when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@50506 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/misdn/isdn_lib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index 4888cada2..d090ad86c 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -1965,7 +1965,9 @@ handle_event_nt(void *dat, void *arg) 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 @@ int handle_mgmt(msg_t *msg) 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; |