From: Anthony Minessale Date: Mon, 2 Mar 2009 19:43:17 +0000 (+0000) Subject: MODENDP-192 X-Git-Tag: v1.0.4~1750 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6955b86b53c6609e630de63e177a29c6fce29cde;p=thirdparty%2Ffreeswitch.git MODENDP-192 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12358 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 6751078f00..cab854094f 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2355,6 +2355,10 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session nchannel = switch_core_session_get_channel(nsession); + if ((hval = switch_event_get_header(var_event, "sip_invite_to_uri"))) { + dest_to = switch_core_session_strdup(nsession, hval); + } + if (!strncasecmp(profile_name, "gateway", 7)) { char *gw, *params; sofia_gateway_t *gateway_ptr = NULL;