[libpri-commits] jpeeler: branch 1.4 r1120 - /branches/1.4/q931.c
    SVN commits to the libpri project 
    libpri-commits at lists.digium.com
       
    Tue Sep 22 12:12:28 CDT 2009
    
    
  
Author: jpeeler
Date: Tue Sep 22 12:12:23 2009
New Revision: 1120
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1120
Log:
Fix call reference to be associated with the D channel message was received
The problem is that once a call reference was associated with a particular D
channel, it always was. This created an issue with NFAS when the secondary D
channel became active as the messages were still being sent on the non-active
D channel.
(closes issue #14959)
Reported by: remiq
Patches: 
      bug14959.patch uploaded by jpeeler (license 325)
Tested by: remiq
Modified:
    branches/1.4/q931.c
Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=1120&r1=1119&r2=1120
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Tue Sep 22 12:12:23 2009
@@ -3035,6 +3035,11 @@
 	prev = NULL;
 	while (cur) {
 		if (cur->cr == cr) {
+			if (!ctrl->bri && ctrl->switchtype != PRI_SWITCH_GR303_EOC_PATH
+				&& ctrl->switchtype != PRI_SWITCH_GR303_TMC_SWITCHING
+				&& cur->pri != ctrl) {
+				cur->pri = ctrl;
+			}
 			return cur;
 		}
 		prev = cur;
    
    
More information about the libpri-commits
mailing list