From: Jeff Lenk Date: Fri, 6 Jan 2012 18:18:57 +0000 (-0600) Subject: FS-3796 --resolve X-Git-Tag: v1.2-rc1~19^2~1^2~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=424ba6937e31998cf197b056fdd4ab395d686099;p=thirdparty%2Ffreeswitch.git FS-3796 --resolve --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c02f1f8ee1..102efbdb89 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -494,7 +494,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) val = switch_channel_get_variable(tech_pvt->channel, "disable_q850_reason"); - if (switch_false(val)) { + if (!val || switch_false(val)) { if (switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) { switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\""); } else if (cause > 0 && cause < 128) {