off by one

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9140 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-23 13:31:24 +00:00
parent e5bdb11b81
commit 13d880e923
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
bye_headers = stream.data;
}
if (cause > 1 && cause < 128) {
if (cause > 0 && cause < 128) {
switch_snprintf(reason, sizeof(reason), "Q.850;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));
} else if (cause == SWITCH_CAUSE_PICKED_OFF) {
switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\"");