[svn-commits] mattf: branch 1.2 r426 - /branches/1.2/q931.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 19 13:22:33 CDT 2007


Author: mattf
Date: Tue Jun 19 13:22:33 2007
New Revision: 426

URL: http://svn.digium.com/view/libpri?view=rev&rev=426
Log:
Try to send pending facility messages if we receive alerting (for when we don't get proceeding) (#9651)

Modified:
    branches/1.2/q931.c

Modified: branches/1.2/q931.c
URL: http://svn.digium.com/view/libpri/branches/1.2/q931.c?view=diff&rev=426&r1=425&r2=426
==============================================================================
--- branches/1.2/q931.c (original)
+++ branches/1.2/q931.c Tue Jun 19 13:22:33 2007
@@ -3294,6 +3294,16 @@
 		pri->ev.ringing.progressmask = c->progressmask;
 		libpri_copy_string(pri->ev.ringing.useruserinfo, c->useruserinfo, sizeof(pri->ev.ringing.useruserinfo));
 		c->useruserinfo[0] = '\0';
+
+		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:
 		if (c->newcall) {




More information about the svn-commits mailing list