From: Anthony Minessale Date: Mon, 5 Feb 2007 21:10:39 +0000 (+0000) Subject: doh X-Git-Tag: v1.0-beta1~1231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27eed28376253e7bef9a89c55ed46ce25a9364b7;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4126 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index d92b76ce2a..115fcd776e 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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);