[asterisk-commits] file: branch file/pimp_sip_media r381273 - /team/file/pimp_sip_media/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 12 08:09:17 CST 2013


Author: file
Date: Tue Feb 12 08:09:12 2013
New Revision: 381273

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381273
Log:
Use the local SDP that has been negotiated.

Modified:
    team/file/pimp_sip_media/res/res_sip_session.c

Modified: team/file/pimp_sip_media/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_media/res/res_sip_session.c?view=diff&rev=381273&r1=381272&r2=381273
==============================================================================
--- team/file/pimp_sip_media/res/res_sip_session.c (original)
+++ team/file/pimp_sip_media/res/res_sip_session.c Tue Feb 12 08:09:12 2013
@@ -1133,9 +1133,9 @@
 static void session_inv_on_media_update(pjsip_inv_session *inv, pj_status_t status)
 {
 	struct ast_sip_session *session = inv->mod_data[session_module.id];
-	const pjmedia_sdp_session *remote;
-
-	if ((status != PJ_SUCCESS) || (pjmedia_sdp_neg_get_active_remote(inv->neg, &remote) != PJ_SUCCESS)) {
+	const pjmedia_sdp_session *negotiated;
+
+	if ((status != PJ_SUCCESS) || (pjmedia_sdp_neg_get_active_local(inv->neg, &negotiated) != PJ_SUCCESS)) {
 		if (session->channel) {
 			ast_channel_hangupcause_set(session->channel, AST_CAUSE_BEARERCAPABILITY_NOTAVAIL);
 			ast_queue_hangup(session->channel);
@@ -1143,7 +1143,7 @@
 		return;
 	}
 
-	handle_negotiated_sdp(session, remote);
+	handle_negotiated_sdp(session, negotiated);
 }
 
 static pjsip_redirect_op session_inv_on_redirected(pjsip_inv_session *inv, const pjsip_uri *target, const pjsip_event *e)




More information about the asterisk-commits mailing list