From 6955b86b53c6609e630de63e177a29c6fce29cde Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 2 Mar 2009 19:43:17 +0000 Subject: [PATCH] MODENDP-192 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12358 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++++ 1 file changed, 4 insertions(+) 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;