From c8a6fdbf285a7ea0de20bcdcdbdc1f2b14c0ffc8 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 15 Oct 2009 13:52:57 +0000 Subject: [PATCH] add variable for one legged 302's via originate so you can tell it happened. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15163 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 53dc9f2df1..58016e85bb 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -3263,6 +3263,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status full_contact = sip_header_as_string(home, (void *) sip->sip_contact); invite_contact = sofia_glue_strip_uri(full_contact); + switch_channel_set_variable(channel, "sip_redirected_to", invite_contact); tech_pvt->redirected = switch_core_session_strdup(session, invite_contact); free(invite_contact);