Author: anthm Date: Wed Jul 23 09:31:24 2008 New Revision: 9140 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: off by one Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Wed Jul 23 09:31:24 2008 @@ -306,7 +306,7 @@ 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\"");