[asterisk-commits] russell: trunk r252627 -	/trunk/channels/chan_sip.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Mon Mar 15 17:14:22 CDT 2010
    
    
  
Author: russell
Date: Mon Mar 15 17:14:18 2010
New Revision: 252627
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=252627
Log:
Tell the RTP engine API about the initial read and write format.
Peer reviewed out-of-band by file.
Modified:
    trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=252627&r1=252626&r2=252627
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Mar 15 17:14:18 2010
@@ -5504,10 +5504,15 @@
 	if (state == AST_STATE_RING)
 		tmp->rings = 1;
 	tmp->adsicpe = AST_ADSI_UNAVAILABLE;
+
 	tmp->writeformat = fmt;
 	tmp->rawwriteformat = fmt;
+	ast_rtp_instance_set_write_format(i->rtp, fmt);
+
 	tmp->readformat = fmt;
 	tmp->rawreadformat = fmt;
+	ast_rtp_instance_set_read_format(i->rtp, fmt);
+
 	tmp->tech_pvt = dialog_ref(i, "sip_new: set chan->tech_pvt to i");
 
 	tmp->callgroup = i->callgroup;
    
    
More information about the asterisk-commits
mailing list