]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont change device state from hangup to hangup
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Jun 2013 15:43:59 +0000 (10:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Jun 2013 15:44:22 +0000 (10:44 -0500)
src/switch_channel.c

index 16d1652b2d85f5ca1515fd0164510f4ee484a6c7..8d98caa635fe8a9bb6ab50539715c490e6a7b945 100644 (file)
@@ -4766,7 +4766,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
                }
        }
 
-       if (drec->state == SDS_DOWN && drec->last_state == SDS_DOWN) {
+       if ((drec->state == SDS_DOWN && drec->last_state == SDS_DOWN) || (drec->state == SDS_HANGUP && drec->last_state == SDS_HANGUP)) {
                switch_mutex_unlock(drec->mutex);
                switch_mutex_unlock(globals.device_mutex);
                return;