mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
make device state code more accurate
This commit is contained in:
@@ -973,6 +973,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
|
||||
switch_mutex_unlock(session->read_codec->mutex);
|
||||
switch_mutex_unlock(session->codec_read_mutex);
|
||||
|
||||
|
||||
if (status == SWITCH_STATUS_SUCCESS && switch_channel_get_callstate(session->channel) == CCS_UNHELD) {
|
||||
switch_channel_set_callstate(session->channel, CCS_ACTIVE);
|
||||
}
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user