]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
off by one
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 23 Jul 2008 13:31:24 +0000 (13:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 23 Jul 2008 13:31:24 +0000 (13:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9140 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 2662c5538665fb1cfeb67b89e298cc207d3b86db..af8520f33dd019cc3215a4081f2c4c6c1b902f44 100644 (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\"");