[libpri-commits] mattf: branch 1.2 r368 - /branches/1.2/q931.c

libpri-commits at lists.digium.com libpri-commits at lists.digium.com
Fri Jul 28 07:44:16 MST 2006


Author: mattf
Date: Fri Jul 28 09:44:15 2006
New Revision: 368

URL: http://svn.digium.com/view/libpri?rev=368&view=rev
Log:
Make sure we send any pending facilty APDUs after we get proceeding. (#7551)

Modified:
    branches/1.2/q931.c

Modified: branches/1.2/q931.c
URL: http://svn.digium.com/view/libpri/branches/1.2/q931.c?rev=368&r1=367&r2=368&view=diff
==============================================================================
--- branches/1.2/q931.c (original)
+++ branches/1.2/q931.c Fri Jul 28 09:44:15 2006
@@ -3364,6 +3364,16 @@
 		pri->ev.proceeding.progressmask = c->progressmask;
 		pri->ev.proceeding.cref = c->cr;
 		pri->ev.proceeding.call = c;
+
+		cur = c->apdus;
+		while (cur) {
+			if (!cur->sent && cur->message == Q931_FACILITY) {
+				q931_facility(pri, c);
+				break;
+			}
+			cur = cur->next;
+		}
+
 		return Q931_RES_HAVEEVENT;
 	case Q931_CONNECT_ACKNOWLEDGE:
 		if (c->newcall) {



More information about the libpri-commits mailing list