]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
always export 'export_vars'
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Apr 2010 20:30:55 +0000 (15:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Apr 2010 20:30:55 +0000 (15:30 -0500)
src/switch_ivr_originate.c

index 2df902bcc45ffc0cf5278fa4eb0550b4fbda7722..27dd189600b93e1e7042b7f23368ab586fc268da 100644 (file)
@@ -1366,6 +1366,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
                int argc;
                char *argv[256];
 
+               switch_event_del_header(var_event, SWITCH_EXPORT_VARS_VARIABLE);
+               switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, SWITCH_EXPORT_VARS_VARIABLE, export_vars);
+
                if ((argc = switch_separate_string(cptmp, ',', argv, (sizeof(argv) / sizeof(argv[0]))))) {
                        int x;