mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 08:14:13 +00:00
dont change device state from hangup to hangup
This commit is contained in:
1 parent
f37467e054
commit
2c9ee26fdd
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user