From 27eed28376253e7bef9a89c55ed46ce25a9364b7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 5 Feb 2007 21:10:39 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4126 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);