[svn-commits] file: trunk r395938 - /trunk/res/res_pjsip_session.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Aug 1 06:21:29 CDT 2013


Author: file
Date: Thu Aug  1 06:21:28 2013
New Revision: 395938

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395938
Log:
Answer with multiple codecs if the underlying pjproject supports it.

Modified:
    trunk/res/res_pjsip_session.c

Modified: trunk/res/res_pjsip_session.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip_session.c?view=diff&rev=395938&r1=395937&r2=395938
==============================================================================
--- trunk/res/res_pjsip_session.c (original)
+++ trunk/res/res_pjsip_session.c Thu Aug  1 06:21:28 2013
@@ -947,6 +947,9 @@
 
 	pjsip_inv_set_local_sdp(session->inv_session, offer);
 	pjmedia_sdp_neg_set_prefer_remote_codec_order(session->inv_session->neg, PJ_FALSE);
+#ifdef PJMEDIA_SDP_NEG_ANSWER_MULTIPLE_CODECS
+	pjmedia_sdp_neg_set_answer_multiple_codecs(session->inv_session->neg, PJ_TRUE);
+#endif
 	if (pjsip_inv_invite(session->inv_session, tdata) != PJ_SUCCESS) {
 		return -1;
 	}
@@ -1459,6 +1462,9 @@
 	} else {
 		pjsip_inv_set_local_sdp(invite->session->inv_session, local);
 		pjmedia_sdp_neg_set_prefer_remote_codec_order(invite->session->inv_session->neg, PJ_FALSE);
+#ifdef PJMEDIA_SDP_NEG_ANSWER_MULTIPLE_CODECS
+		pjmedia_sdp_neg_set_answer_multiple_codecs(invite->session->inv_session->neg, PJ_TRUE);
+#endif
 	}
 
 	pjsip_timer_setting_default(&timer);




More information about the svn-commits mailing list