提交 f846a42e authored 作者: Raymond Chandler's avatar Raymond Chandler

the rest of that last patch

上级 94961e4f
...@@ -308,7 +308,7 @@ SWITCH_STANDARD_APP(easyroute_app_function) ...@@ -308,7 +308,7 @@ SWITCH_STANDARD_APP(easyroute_app_function)
noat = 1; noat = 1;
} else if (!strcasecmp(argv[1], "separator")) { } else if (!strcasecmp(argv[1], "separator")) {
if (argc == 3) { if (argc == 3) {
switch_set_string(separator, argv[2]); separator = argv[2];
} }
} }
} }
...@@ -358,13 +358,13 @@ SWITCH_STANDARD_API(easyroute_function) ...@@ -358,13 +358,13 @@ SWITCH_STANDARD_API(easyroute_function)
status = SWITCH_STATUS_SUCCESS; status = SWITCH_STATUS_SUCCESS;
goto done; goto done;
} }
if (argc == 2) { if (argc >= 2) {
if (!strcasecmp(argv[1], "noat")) { if (!strcasecmp(argv[1], "noat")) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Entering noat.\n"); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Entering noat.\n");
noat = 1; noat = 1;
} else if (!strcasecmp(argv[1], "separator")) { } else if (!strcasecmp(argv[1], "separator")) {
if (argc == 3) { if (argc == 3) {
switch_set_string(separator, argv[2]); separator = argv[2];
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论