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:
Anthony Minessale
2008-12-10 00:48:24 +00:00
parent 0e60a19e77
commit 71054917ac
12 changed files with 31 additions and 19 deletions

View File

@@ -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;