enforce wait/nowait arg on out
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8009 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e75dc0b65d
commit
fffb60d1ca
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue