From 13d880e9232112a63f32397826706538daf030dd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 23 Jul 2008 13:31:24 +0000 Subject: [PATCH] off by one git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9140 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 2662c55386..af8520f33d 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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\"");