[asterisk-commits] file: branch 1.4 r195448 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 19 09:41:51 CDT 2009


Author: file
Date: Tue May 19 09:41:45 2009
New Revision: 195448

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195448
Log:
Fix a bug where direct RTP setup would partially occur even when disabled if the calling channel was answered.

(issue #13545)
Reported by: davidw
(issue #14244)
Reported by: mbnwa

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=195448&r1=195447&r2=195448
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue May 19 09:41:45 2009
@@ -18528,7 +18528,7 @@
 		return -1;
 
 	/* Disable early RTP bridge  */
-	if (chan->_state != AST_STATE_UP && !global_directrtpsetup) 	/* We are in early state */
+	if (!ast_bridged_channel(chan) && !global_directrtpsetup) 	/* We are in early state */
 		return 0;
 
 	ast_mutex_lock(&p->lock);




More information about the asterisk-commits mailing list