Skip to content
Snippets Groups Projects
Commit 9d742946 authored by Joshua Colp's avatar Joshua Colp
Browse files

Fix a bug where the codec order as configured was not being obeyed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8a5a09e6
Branches
Tags
No related merge requests found
......@@ -1035,6 +1035,7 @@ struct ast_sip_session *ast_sip_session_create_outgoing(struct ast_sip_endpoint
}
pjsip_inv_set_local_sdp(inv_session, offer);
pjmedia_sdp_neg_set_prefer_remote_codec_order(inv_session->neg, PJ_FALSE);
ao2_ref(session, +1);
return session;
......@@ -1195,6 +1196,7 @@ static void handle_new_invite_request(pjsip_rx_data *rdata)
return;
} else {
pjsip_inv_set_local_sdp(inv_session, local);
pjmedia_sdp_neg_set_prefer_remote_codec_order(inv_session->neg, PJ_FALSE);
}
pjsip_timer_setting_default(&timer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment