[Freeswitch-svn] [commit] r8009 - freeswitch/trunk/src/mod/applications/mod_fifo
Freeswitch SVN
anthm at freeswitch.org
Thu Apr 3 16:02:00 EDT 2008
Author: anthm
Date: Thu Apr 3 16:01:59 2008
New Revision: 8009
Modified:
freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
Log:
enforce wait/nowait arg on out
Modified: freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c Thu Apr 3 16:01:59 2008
@@ -233,7 +233,12 @@
announce = switch_channel_get_variable(channel, "fifo_announce");
if (argc > 2) {
- nowait = !strcasecmp(argv[2], "nowait");
+ if (!strcasecmp(argv[2], "nowait")) {
+ nowait++;
+ } else if (strcasecmp(argv[2], "wait")) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "USAGE %s\n", FIFO_USAGE);
+ return;
+ }
}
if (!strcasecmp(argv[1], "in")) {
More information about the Freeswitch-svn
mailing list