]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3045 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Aug 2011 00:30:15 +0000 (19:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Aug 2011 00:30:15 +0000 (19:30 -0500)
src/switch_channel.c

index 8fb1d27c59b4587a0f8583841e351676ef6faf02..308d29f85818f3dd59b660e3874ea2429ec4bf00 100644 (file)
@@ -1017,8 +1017,10 @@ SWITCH_DECLARE(void) switch_channel_process_export(switch_channel_t *channel, sw
                        const char *vval;
                        if ((vval = switch_channel_get_variable(channel, argv[x]))) {
                                char *vvar = argv[x];
-                               if (!strncasecmp(vvar, "nolocal:", 8)) {
+                               if (!strncasecmp(vvar, "nolocal:", 8)) { /* remove this later ? */
                                        vvar += 8;
+                               } else if (!strncasecmp(vvar, "_nolocal_", 9)) {
+                                       vvar += 9;
                                }
                                if (var_event) {
                                        switch_event_del_header(var_event, vvar);
@@ -1058,9 +1060,12 @@ SWITCH_DECLARE(switch_status_t) switch_channel_export_variable_var_check(switch_
        var = switch_core_session_strdup(channel->session, varname);
 
        if (var) {
-               if (!strncasecmp(var, "nolocal:", 8)) {
+               if (!strncasecmp(var, "nolocal:", 8)) { /* remove this later ? */
                        var_name = var + 8;
                        local = 0;
+               } else if (!strncasecmp(var, "_nolocal_", 9)) {
+                       var_name = var + 9;
+                       local = 0;
                } else {
                        var_name = var;
                }