fix segfault on reinvite on nomedia call when using uuid_media

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13894 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-22 18:37:07 +00:00
parent 95fd78f881
commit f618475c67
1 changed files with 8 additions and 6 deletions

View File

@ -1667,6 +1667,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
sofia_glue_tech_patch_sdp(tech_pvt);
}
if (!switch_strlen_zero(tech_pvt->dest)) {
dst = sofia_glue_get_destination(tech_pvt->dest);
if (dst->route_uri) {
@ -1676,6 +1677,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
if (dst->route) {
route = dst->route;
}
}
if ((val = switch_channel_get_variable(channel, "sip_route_uri"))) {
route_uri = switch_core_session_strdup(session, val);