switch_ivr_originate: export variables were broken since b946ee94 4 aug 2011

This commit is contained in:
Marc Olivier Chouinard 2011-08-09 03:09:19 -04:00
parent 46f097c1b9
commit 38e3f5fe16
1 changed files with 4 additions and 0 deletions

View File

@ -1843,6 +1843,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
}
if (caller_channel) {
switch_channel_process_export(caller_channel, NULL, var_event, SWITCH_EXPORT_VARS_VARIABLE);
}
/* strip leading spaces */
while (data && *data && *data == ' ') {
data++;