From c269a58ac54a381ae68c1d6e6e7616d356584f88 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 17 Aug 2011 19:30:15 -0500 Subject: [PATCH] FS-3045 --resolve --- src/switch_channel.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index 8fb1d27c59..308d29f858 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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; }