]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
the rest of that last patch
authorRaymond Chandler <intralanman@gmail.com>
Thu, 18 Aug 2011 18:47:06 +0000 (14:47 -0400)
committerRaymond Chandler <intralanman@gmail.com>
Thu, 18 Aug 2011 18:47:06 +0000 (14:47 -0400)
src/mod/applications/mod_easyroute/mod_easyroute.c

index ad1d75c30354ebd6752b510a23f4ba03beb771c2..cc6d6121f8aa196308c873e0a9d82ab361728b17 100644 (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];
                                }
                        }
                }