[svn-commits] rmudgett: branch 1.4 r2258 - /branches/1.4/pri_facility.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 17 20:59:22 CDT 2011


Author: rmudgett
Date: Thu Mar 17 20:59:18 2011
New Revision: 2258

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2258
Log:
CallRerouting response not sent if peer hangs up first.

Send the CallRerouting response on the next message instead of only on the
DISCONNECT message.  The next message is either going to be a DISCONNECT
or RELEASE depending on who initiates disconnection first.

Modified:
    branches/1.4/pri_facility.c

Modified: branches/1.4/pri_facility.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/pri_facility.c?view=diff&rev=2258&r1=2257&r2=2258
==============================================================================
--- branches/1.4/pri_facility.c (original)
+++ branches/1.4/pri_facility.c Thu Mar 17 20:59:18 2011
@@ -3951,7 +3951,12 @@
 	rose_err = ROSE_ERROR_Gen_ResourceUnavailable;
 	switch (code) {
 	case PRI_REROUTING_RSP_OK_CLEAR:
-		return rose_result_ok_encode(ctrl, call, Q931_DISCONNECT, invoke_id);
+		/*
+		 * Send the response out on the next message which should be
+		 * either Q931_DISCONNECT or Q931_RELEASE depending upon who
+		 * initiates the disconnect first.
+		 */
+		return rose_result_ok_encode(ctrl, call, Q931_ANY_MESSAGE, invoke_id);
 	case PRI_REROUTING_RSP_OK_RETAIN:
 		return send_facility_result_ok(ctrl, call, invoke_id);
 	case PRI_REROUTING_RSP_NOT_SUBSCRIBED:




More information about the svn-commits mailing list