MILESTONE: all the crap out of tech_pvt and sofia in general related to media shit

This commit is contained in:
Anthony Minessale
2012-12-22 22:19:58 -06:00
parent 85308861d8
commit 078d963222
5 changed files with 157 additions and 281 deletions
+2 -2
View File
@@ -4920,11 +4920,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
sip->sip_payload && sip->sip_payload->pl_data && !strcasecmp(tech_pvt->iananame, "PROXY")) {
switch_core_session_t *other_session;
sofia_media_proxy_codec(session, sip->sip_payload->pl_data);
switch_core_media_proxy_codec(session, sip->sip_payload->pl_data);
if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
if (switch_core_session_compare(session, other_session)) {
sofia_media_proxy_codec(other_session, sip->sip_payload->pl_data);
switch_core_media_proxy_codec(other_session, sip->sip_payload->pl_data);
}
switch_core_session_rwunlock(other_session);
}