git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4126 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-02-05 21:10:39 +00:00
parent 7d27962689
commit 27eed28376
1 changed files with 1 additions and 1 deletions

View File

@ -2992,7 +2992,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
*cause = SWITCH_CAUSE_UNALLOCATED;
if (var_event) {
if (!caller_channel) { /* install the vars from the {} params */
if (peer_channel && !caller_channel) { /* install the vars from the {} params */
switch_event_header_t *header;
for (header = var_event->headers; header; header = header->next) {
switch_channel_set_variable(peer_channel, header->name, header->value);