[libpri-commits] file: trunk r529 - in /trunk: ./ q931.c
SVN commits to the libpri project
libpri-commits at lists.digium.com
Thu Feb 21 10:39:42 CST 2008
Author: file
Date: Thu Feb 21 10:39:42 2008
New Revision: 529
URL: http://svn.digium.com/view/libpri?view=rev&rev=529
Log:
Merged revisions 528 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4
........
r528 | file | 2008-02-21 12:38:11 -0400 (Thu, 21 Feb 2008) | 6 lines
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:
trunk/ (props changed)
trunk/q931.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Thu Feb 21 10:39:42 2008
@@ -1,1 +1,1 @@
-/branches/1.4:1-372,386,390,416,424,427,441,446,462,465,470,479,514
+/branches/1.4:1-372,386,390,416,424,427,441,446,462,465,470,479,514,528
Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?view=diff&rev=529&r1=528&r2=529
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Thu Feb 21 10:39:42 2008
@@ -3768,6 +3768,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