let sip calls pass the exact response status across a bridge

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8237 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-05-01 18:35:45 +00:00
parent 9b30341170
commit 8c352ce5b9
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -2106,6 +2106,8 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
}
switch_snprintf(st, sizeof(st), "%d", status);
switch_channel_set_variable(channel, "sip_term_status", st);
switch_snprintf(st, sizeof(st), "sip:%d", status);
switch_channel_set_variable_partner(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
switch_snprintf(st, sizeof(st), "%d", cause);
switch_channel_set_variable(channel, "sip_term_cause", st);
switch_channel_hangup(channel, cause);