[Freeswitch-svn] [commit] r4126 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon Feb 5 16:10:40 EST 2007


Author: anthm
Date: Mon Feb  5 16:10:39 2007
New Revision: 4126

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
doh

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Mon Feb  5 16:10:39 2007
@@ -2992,7 +2992,7 @@
 		*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);



More information about the Freeswitch-svn mailing list