From: Michael Jerris Date: Wed, 23 Jan 2008 21:38:59 +0000 (+0000) Subject: don't scopemask vars. X-Git-Tag: v1.0-rc1~578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd208eb22ad4ea07cb2780ddf79973b56e4b5e14;p=thirdparty%2Ffreeswitch.git don't scopemask vars. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7338 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 5ff305819b..0eface041a 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -326,10 +326,10 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) nua_bye(tech_pvt->nh, TAG_END()); } else { if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) { - switch_call_cause_t cause = switch_channel_get_cause(channel); + switch_call_cause_t causecode = switch_channel_get_cause(channel); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Sending CANCEL to %s\n", switch_channel_get_name(channel)); - nua_cancel(tech_pvt->nh, TAG_IF(cause == SWITCH_CAUSE_PICKED_OFF, + nua_cancel(tech_pvt->nh, TAG_IF(causecode == SWITCH_CAUSE_PICKED_OFF, SIPTAG_REASON_STR("SIP;cause=200;text=\"Call completed elsewhere\"")), TAG_END()); } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Responding to INVITE with: %d\n", sip_cause);