don't scopemask vars.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7338 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-01-23 21:38:59 +00:00
parent 660d52acba
commit fd208eb22a
1 changed files with 2 additions and 2 deletions

View File

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