[svn-commits] file: branch file/rtp_engine-mark2 r185365 - /team/file/rtp_engine-mark2/chan...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 31 11:57:57 CDT 2009


Author: file
Date: Tue Mar 31 11:57:54 2009
New Revision: 185365

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185365
Log:
Fix a bug where RTP was being initialized on dialogs that did not need it.

Modified:
    team/file/rtp_engine-mark2/channels/chan_sip.c

Modified: team/file/rtp_engine-mark2/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/rtp_engine-mark2/channels/chan_sip.c?view=diff&rev=185365&r1=185364&r2=185365
==============================================================================
--- team/file/rtp_engine-mark2/channels/chan_sip.c (original)
+++ team/file/rtp_engine-mark2/channels/chan_sip.c Tue Mar 31 11:57:54 2009
@@ -4690,6 +4690,10 @@
  */
 static int dialog_initialize_rtp(struct sip_pvt *dialog)
 {
+	if (!sip_methods[dialog->method].need_rtp) {
+		return 0;
+	}
+
 	if (!(dialog->rtp = ast_rtp_instance_new(dialog->engine, sched, &bindaddr, NULL))) {
 		return -1;
 	}




More information about the svn-commits mailing list