mod_sofia: preserve transport on route (SFSIP-157)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13948 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-25 15:40:38 +00:00
parent d7cba9a03b
commit e7aebb463d
1 changed files with 2 additions and 2 deletions

View File

@ -1454,7 +1454,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
tech_pvt->transport = SOFIA_TRANSPORT_UDP;
}
}
if (sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) {
tech_pvt->user_via = sofia_glue_create_external_via(session, tech_pvt->profile, tech_pvt->transport);
}
@ -1671,7 +1671,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
dst = sofia_glue_get_destination(tech_pvt->dest);
if (dst->route_uri) {
route_uri = sofia_overcome_sip_uri_weakness(tech_pvt->session, dst->route_uri, 0, SWITCH_TRUE, NULL);
route_uri = sofia_overcome_sip_uri_weakness(tech_pvt->session, dst->route_uri, tech_pvt->transport, SWITCH_TRUE, NULL);
}
if (dst->route) {