From: Anthony Minessale Date: Thu, 3 Apr 2008 20:01:59 +0000 (+0000) Subject: enforce wait/nowait arg on out X-Git-Tag: v1.0-rc3~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fffb60d1ca5b8ecee88f6586a01de49165fd2de5;p=thirdparty%2Ffreeswitch.git enforce wait/nowait arg on out git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8009 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index fbcec3a965..974e9e4f90 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -233,7 +233,12 @@ SWITCH_STANDARD_APP(fifo_function) 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")) {