From: Michael Jerris Date: Mon, 15 Apr 2013 20:45:12 +0000 (-0400) Subject: fix case for call_completed_elsewhere var set X-Git-Tag: v1.5.1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0aa2009d1d0dabfb1d75f8a86ab8cc3c4caad24d;p=thirdparty%2Ffreeswitch.git fix case for call_completed_elsewhere var set --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 6ad7989d51..228fb2dc2d 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -501,7 +501,9 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) switch_snprintf(reason, sizeof(reason), "SIP;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause)); } } + } + if (switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) { switch_channel_set_variable(channel, "call_completed_elsewhere", "true"); }