[Freeswitch-svn] [commit] r8010 - freeswitch/trunk/src/mod/applications/mod_fifo

Freeswitch SVN anthm at freeswitch.org
Thu Apr 3 16:08:39 EDT 2008


Author: anthm
Date: Thu Apr  3 16:08:39 2008
New Revision: 8010

Modified:
   freeswitch/trunk/src/mod/applications/mod_fifo/mod_fifo.c

Log:
update

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:08:39 2008
@@ -232,15 +232,6 @@
 	moh = switch_channel_get_variable(channel, "fifo_music");
     announce = switch_channel_get_variable(channel, "fifo_announce");
 
-    if (argc > 2) {
-        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")) {
         const char *uuid = strdup(switch_core_session_get_uuid(session));
 		const char *pri;
@@ -346,6 +337,16 @@
 		const char *fifo_consumer_wrapup_key = NULL;
 		char buf[5] = "";
 
+
+		if (argc > 2) {
+			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 (argc > 3) {
             announce = argv[3];
         }



More information about the Freeswitch-svn mailing list