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
This commit is contained in:
Brian West 2009-10-15 13:52:57 +00:00
parent 36d2d2f944
commit c8a6fdbf28
1 changed files with 1 additions and 0 deletions

View File

@ -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);