]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-192
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 2 Mar 2009 19:43:17 +0000 (19:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 2 Mar 2009 19:43:17 +0000 (19:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12358 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 6751078f007d6bd925d4afe6561fc3e292fcb841..cab854094f7cf306bd132cc9aa76f802e2e871fb 100644 (file)
@@ -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;