[libpri-commits] rmudgett: branch rmudgett/mrg_ntptmp r1126 - /team/rmudgett/mrg_ntptmp/

SVN commits to the libpri project libpri-commits at lists.digium.com
Tue Sep 22 13:14:01 CDT 2009


Author: rmudgett
Date: Tue Sep 22 13:13:58 2009
New Revision: 1126

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1126
Log:
Merged revisions 1120 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.4

........
  r1120 | jpeeler | 2009-09-22 12:12:23 -0500 (Tue, 22 Sep 2009) | 13 lines
  
  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:
    team/rmudgett/mrg_ntptmp/   (props changed)
    team/rmudgett/mrg_ntptmp/q931.c

Propchange: team/rmudgett/mrg_ntptmp/
------------------------------------------------------------------------------
    automerge = *

Propchange: team/rmudgett/mrg_ntptmp/
------------------------------------------------------------------------------
    automerge-email = rmudgett at digium.com

Propchange: team/rmudgett/mrg_ntptmp/
------------------------------------------------------------------------------
--- mattf_branch-integrated (original)
+++ mattf_branch-integrated Tue Sep 22 13:13:58 2009
@@ -1,1 +1,1 @@
-/branches/1.4:1-1110
+/branches/1.4:1-1125

Modified: team/rmudgett/mrg_ntptmp/q931.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/mrg_ntptmp/q931.c?view=diff&rev=1126&r1=1125&r2=1126
==============================================================================
--- team/rmudgett/mrg_ntptmp/q931.c (original)
+++ team/rmudgett/mrg_ntptmp/q931.c Tue Sep 22 13:13:58 2009
@@ -3033,7 +3033,19 @@
 	prev = NULL;
 	while (cur) {
 		if (cur->cr == cr) {
-			goto done;
+			/* Found existing call. */
+			switch (ctrl->switchtype) {
+			case PRI_SWITCH_GR303_EOC:
+			case PRI_SWITCH_GR303_EOC_PATH:
+			case PRI_SWITCH_GR303_TMC:
+			case PRI_SWITCH_GR303_TMC_SWITCHING:
+				break;
+			default:
+				/* PRI is set to whoever called us */
+				cur->pri = ctrl;
+				break;
+			}
+			return cur;
 		}
 		prev = cur;
 		cur = cur->next;
@@ -3088,7 +3100,6 @@
 		*master->callpool = cur;
 	}
 
-done:
 	/* PRI is set to whoever called us */
 	cur->pri = ctrl;
 




More information about the libpri-commits mailing list