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

Freeswitch SVN anthm at freeswitch.org
Fri Feb 9 15:36:01 EST 2007


Author: anthm
Date: Fri Feb  9 15:36:01 2007
New Revision: 4182

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
fix causes some more

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Feb  9 15:36:01 2007
@@ -3553,7 +3553,7 @@
 
     if (switch_channel_get_state(caller_channel) < CS_HANGUP && 
         switch_true(switch_channel_get_variable(caller_channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE))) {
-        switch_channel_hangup(caller_channel, SWITCH_CAUSE_NORMAL_CLEARING);
+        switch_channel_hangup(caller_channel, switch_channel_get_cause(peer_channel));
     }
 
 	return status;



More information about the Freeswitch-svn mailing list