提交 acd607f8 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8010 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fffb60d1
...@@ -232,15 +232,6 @@ SWITCH_STANDARD_APP(fifo_function) ...@@ -232,15 +232,6 @@ SWITCH_STANDARD_APP(fifo_function)
moh = switch_channel_get_variable(channel, "fifo_music"); moh = switch_channel_get_variable(channel, "fifo_music");
announce = switch_channel_get_variable(channel, "fifo_announce"); 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")) { if (!strcasecmp(argv[1], "in")) {
const char *uuid = strdup(switch_core_session_get_uuid(session)); const char *uuid = strdup(switch_core_session_get_uuid(session));
const char *pri; const char *pri;
...@@ -346,6 +337,16 @@ SWITCH_STANDARD_APP(fifo_function) ...@@ -346,6 +337,16 @@ SWITCH_STANDARD_APP(fifo_function)
const char *fifo_consumer_wrapup_key = NULL; const char *fifo_consumer_wrapup_key = NULL;
char buf[5] = ""; 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) { if (argc > 3) {
announce = argv[3]; announce = argv[3];
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论