[libpri-commits] file: branch 1.4 r528 - /branches/1.4/q931.c
SVN commits to the libpri project
libpri-commits at lists.digium.com
Thu Feb 21 10:38:12 CST 2008
Author: file
Date: Thu Feb 21 10:38:11 2008
New Revision: 528
URL: http://svn.digium.com/view/libpri?view=rev&rev=528
Log:
If inband audio is being provided with a disconnect message let the audio be heard before releasing the channel.
(closes issue #10552)
Reported by: paravoid
Patches:
disconnect-audio.diff uploaded by paravoid (license 200)
Modified:
branches/1.4/q931.c
Modified: branches/1.4/q931.c
URL: http://svn.digium.com/view/libpri/branches/1.4/q931.c?view=diff&rev=528&r1=527&r2=528
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Thu Feb 21 10:38:11 2008
@@ -3716,6 +3716,12 @@
UPDATE_OURCALLSTATE(pri, c, Q931_CALL_STATE_DISCONNECT_INDICATION);
c->peercallstate = Q931_CALL_STATE_DISCONNECT_REQUEST;
c->sendhangupack = 1;
+
+ /* wait for a RELEASE so that sufficient time has passed
+ for the inband audio to be heard */
+ if (c->progressmask & PRI_PROG_INBAND_AVAILABLE)
+ break;
+
/* Return such an event */
pri->ev.e = PRI_EVENT_HANGUP_REQ;
pri->ev.hangup.channel = c->channelno | (c->ds1no << 8) | (c->ds1explicit << 16);
More information about the libpri-commits
mailing list