[Freeswitch-svn] [commit] r1760 - freeswitch/branches/athompson/trunk/src/mod/applications/mod_sleep
Freeswitch SVN
athompson at freeswitch.org
Wed Jul 5 15:32:21 EDT 2006
Author: athompson
Date: Wed Jul 5 15:32:20 2006
New Revision: 1760
Modified:
freeswitch/branches/athompson/trunk/src/mod/applications/mod_sleep/mod_sleep.c
Log:
mod_sleep: Answer the channel before sleeping.
Modified: freeswitch/branches/athompson/trunk/src/mod/applications/mod_sleep/mod_sleep.c
==============================================================================
--- freeswitch/branches/athompson/trunk/src/mod/applications/mod_sleep/mod_sleep.c (original)
+++ freeswitch/branches/athompson/trunk/src/mod/applications/mod_sleep/mod_sleep.c Wed Jul 5 15:32:20 2006
@@ -35,7 +35,13 @@
static void sleep_function(switch_core_session_t *session, char *data)
{
+ switch_channel_t *channel;
char *delay = NULL;
+
+ channel = switch_core_session_get_channel(session);
+ assert(channel != NULL);
+
+ switch_channel_answer(channel);
delay = switch_core_session_strdup(session, data);
/* 1000000 seems to be equiv to 1 second */
More information about the Freeswitch-svn
mailing list