add msleep

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10484 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-11-20 23:03:25 +00:00
parent e7755a78f3
commit 369e606564
2 changed files with 7 additions and 0 deletions

View File

@ -373,6 +373,7 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
SWITCH_DECLARE(void) console_log(char *level_str, char *msg);
SWITCH_DECLARE(void) console_clean_log(char *msg);
SWITCH_DECLARE(void) msleep(uint32_t ms);
/** \brief bridge the audio of session_b into session_a
*

View File

@ -1090,6 +1090,12 @@ SWITCH_DECLARE(void) console_clean_log(char *msg)
}
SWITCH_DECLARE(void) msleep(uint32_t ms)
{
switch_sleep(ms * 1000);
return;
}
SWITCH_DECLARE(void) bridge(CoreSession &session_a, CoreSession &session_b)
{
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "bridge called, session_a uuid: %s\n", session_a.get_uuid());