From: Raymond Chandler Date: Thu, 18 Aug 2011 18:47:06 +0000 (-0400) Subject: the rest of that last patch X-Git-Tag: v1.2-rc1~51^2~264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f846a42e60347b084f23d0ec13f9bdfb50c49219;p=thirdparty%2Ffreeswitch.git the rest of that last patch --- diff --git a/src/mod/applications/mod_easyroute/mod_easyroute.c b/src/mod/applications/mod_easyroute/mod_easyroute.c index ad1d75c303..cc6d6121f8 100644 --- a/src/mod/applications/mod_easyroute/mod_easyroute.c +++ b/src/mod/applications/mod_easyroute/mod_easyroute.c @@ -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]; } } }