the rest of that last patch

This commit is contained in:
Raymond Chandler 2011-08-18 14:47:06 -04:00
parent 94961e4ff6
commit f846a42e60
1 changed files with 3 additions and 3 deletions

View File

@ -308,7 +308,7 @@ SWITCH_STANDARD_APP(easyroute_app_function)
noat = 1;
} else if (!strcasecmp(argv[1], "separator")) {
if (argc == 3) {
switch_set_string(separator, argv[2]);
separator = argv[2];
}
}
}
@ -358,13 +358,13 @@ SWITCH_STANDARD_API(easyroute_function)
status = SWITCH_STATUS_SUCCESS;
goto done;
}
if (argc == 2) {
if (argc >= 2) {
if (!strcasecmp(argv[1], "noat")) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Entering noat.\n");
noat = 1;
} else if (!strcasecmp(argv[1], "separator")) {
if (argc == 3) {
switch_set_string(separator, argv[2]);
separator = argv[2];
}
}
}