From 3d5f9e762ae1a22d6e1309ed58bc7d7a76ff4f35 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 19 May 2010 21:30:34 +0000 Subject: [PATCH] It's amazing what a tiny bug in the Q.921 SDL diagram can do to cause trouble.... Fix issue where V_R was not reset and N_R was consequentially transmitted incorrectly. Particularly in layer 2 initiated re-establishments. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1702 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/q921.c b/q921.c index cf42176..66f73b5 100644 --- a/q921.c +++ b/q921.c @@ -1342,8 +1342,6 @@ static pri_event *q921_ua_rx(struct pri *pri, q921_h *h) } else { /* Might not want this... */ pri->l3initiated = 0; - /* But do want this */ - pri->v_r = 0; /* return DL-ESTABLISH-CONFIRM */ } @@ -1355,7 +1353,7 @@ static pri_event *q921_ua_rx(struct pri *pri, q921_h *h) stop_t200(pri); start_t203(pri); - pri->v_s = pri->v_a = 0; + pri->v_r = pri->v_s = pri->v_a = 0; q921_setstate(pri, Q921_MULTI_FRAME_ESTABLISHED); break;