]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
enforce wait/nowait arg on out
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Apr 2008 20:01:59 +0000 (20:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Apr 2008 20:01:59 +0000 (20:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8009 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fifo/mod_fifo.c

index fbcec3a96506da0e5c7d2e6ff90fd23faa46f26b..974e9e4f90f65ed6419207427d1f305447b6aff0 100644 (file)
@@ -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")) {