From: Anthony Minessale Date: Thu, 4 Mar 2010 19:09:13 +0000 (+0000) Subject: copy var X-Git-Tag: v1.0.6~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb62df6e9f1e6edb84537c3434871a0304fa083a;p=thirdparty%2Ffreeswitch.git copy var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16902 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index a95234f6c6..8a664d90f4 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -465,6 +465,8 @@ void sofia_handle_sip_i_bye(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_channel_set_variable(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st); if (phrase) { switch_channel_set_variable_partner(channel, "sip_hangup_phrase", phrase);