mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
add sync param to sleep so you can choose to sync audio or not on sleep (reswig to follow)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10693 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -833,7 +833,7 @@ SWITCH_DECLARE(int) CoreSession::streamFile(char *file, int starting_sample_coun
|
||||
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(int) CoreSession::sleep(int ms) {
|
||||
SWITCH_DECLARE(int) CoreSession::sleep(int ms, int sync) {
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
@@ -841,7 +841,7 @@ SWITCH_DECLARE(int) CoreSession::sleep(int ms) {
|
||||
sanity_check(-1);
|
||||
|
||||
begin_allow_threads();
|
||||
status = switch_ivr_sleep(session, ms, ap);
|
||||
status = switch_ivr_sleep(session, ms, (switch_bool_t) sync, ap);
|
||||
end_allow_threads();
|
||||
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
|
Reference in New Issue
Block a user