From: Anthony Minessale Date: Fri, 15 Feb 2008 21:03:51 +0000 (+0000) Subject: help SwK nuke some more telcos X-Git-Tag: v1.0-rc1~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0162145fac2c8239ff95196baeef7ab079bbfd0;p=thirdparty%2Ffreeswitch.git help SwK nuke some more telcos git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7631 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 bfba4e5af5..e96e41731f 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -280,7 +280,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) if (tech_pvt->nh && !switch_test_flag(tech_pvt, TFLAG_BYE)) { if (switch_test_flag(tech_pvt, TFLAG_ANS)) { char reason[128] = ""; - if (cause < 128) { + if (cause > 1 && cause < 128) { switch_snprintf(reason, sizeof(reason), "Q.850;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause)); } else { switch_snprintf(reason, sizeof(reason), "FreeSWITCH;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));