]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use timeout cause code MODSOFIA-22
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 21 Aug 2009 16:30:40 +0000 (16:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 21 Aug 2009 16:30:40 +0000 (16:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14587 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index f39ef3c53e0b2c0722ec01cbccc9058549b02752..e774267b85f065fc9440a1c29f8605cc50ed4bbf 100644 (file)
@@ -695,6 +695,7 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f
                if (--sanity && switch_channel_ready(channel)) {
                        switch_yield(10000);
                } else {
+                       switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_RECOVERY_ON_TIMER_EXPIRE);
                        return SWITCH_STATUS_GENERR;
                }
        }