]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_ivr_originate: export variables were broken since b946ee94 4 aug 2011
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 9 Aug 2011 07:09:19 +0000 (03:09 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 9 Aug 2011 07:09:19 +0000 (03:09 -0400)
src/switch_ivr_originate.c

index 938be90db2ee23116f3433a544ca7836b3d9a264..2bec189547cdd577e11ea23c80cc5b0f0b2bdc18 100644 (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++;