[asterisk-commits] file: trunk r389568 - /trunk/res/res_sip_sdp_rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 23 13:39:08 CDT 2013


Author: file
Date: Thu May 23 13:39:05 2013
New Revision: 389568

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389568
Log:
Fix a bug where the DTMF mode was not set on newly created RTP instances in the res_sip_sdp_rtp module.

Modified:
    trunk/res/res_sip_sdp_rtp.c

Modified: trunk/res/res_sip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_sip_sdp_rtp.c?view=diff&rev=389568&r1=389567&r2=389568
==============================================================================
--- trunk/res/res_sip_sdp_rtp.c (original)
+++ trunk/res/res_sip_sdp_rtp.c Thu May 23 13:39:05 2013
@@ -119,6 +119,12 @@
 
 	if (!session->endpoint->ice_support && (ice = ast_rtp_instance_get_ice(session_media->rtp))) {
 		ice->stop(session_media->rtp);
+	}
+
+	if (session->endpoint->dtmf == AST_SIP_DTMF_RFC_4733) {
+		ast_rtp_instance_dtmf_mode_set(session_media->rtp, AST_RTP_DTMF_MODE_RFC2833);
+	} else if (session->endpoint->dtmf == AST_SIP_DTMF_INBAND) {
+		ast_rtp_instance_dtmf_mode_set(session_media->rtp, AST_RTP_DTMF_MODE_INBAND);
 	}
 
 	return 0;




More information about the asterisk-commits mailing list