[asterisk-commits] file: trunk r112205 - in /trunk: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 1 12:48:52 CDT 2008


Author: file
Date: Tue Apr  1 12:48:52 2008
New Revision: 112205

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112205
Log:
Merged revisions 112204 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r112204 | file | 2008-04-01 14:43:46 -0300 (Tue, 01 Apr 2008) | 4 lines

Do not pass audio until the remote side has indicated they are providing early media, or if the channel has been answered.
(closes issue #11823)
Reported by: SDamm

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=112205&r1=112204&r2=112205
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Apr  1 12:48:52 2008
@@ -5647,7 +5647,13 @@
 		}
 	}
 
+	/* Only allow audio through if they sent progress with SDP, or if the channel is actually answered */
+	if (p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) {
+		fr = &ast_null_frame;
+	}
+
 	sip_pvt_unlock(p);
+
 	return fr;
 }
 




More information about the asterisk-commits mailing list