} else if (!strcmp(var, "legacy-events")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Set legacy-events: %s\n", val);
kazoo_globals.legacy_events = switch_true(val);
+ } else if (!strcmp(var, "expand-headers-on-fetch")) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Set expand-headers-on-fetch: %s\n", val);
+ kazoo_globals.expand_headers_on_fetch = switch_true(val);
}
}
}
/* after all that did we get what we were after?! */
if (reply.xml_str) {
/* HELL YA WE DID */
- reply.xml_str = expand_vars(reply.xml_str);
+ if (kazoo_globals.expand_headers_on_fetch) {
+ reply.xml_str = expand_vars(reply.xml_str);
+ }
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Received %s XML (%s) after %dms: %s\n"
,section
,reply.uuid_str