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

FreeSWITCH SVN anthm at freeswitch.org
Wed Nov 19 12:42:29 PST 2008


Author: anthm
Date: Wed Nov 19 15:42:28 2008
New Revision: 10466

Log:
add some magic vars

Modified:
   freeswitch/trunk/src/switch_ivr.c

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Wed Nov 19 15:42:28 2008
@@ -1057,7 +1057,8 @@
 	switch_channel_clear_state_handler(channel, NULL);
 
 	if ((profile = switch_channel_get_caller_profile(channel))) {
-
+		const char *var;
+		
 		if (switch_strlen_zero(dialplan)) {
 			dialplan = profile->dialplan;
 		}
@@ -1078,6 +1079,14 @@
 			extension = "service";
 		}
 
+		if ((var = switch_channel_get_variable(channel, "force_transfer_dialplan"))) {
+			dialplan = var;
+		}
+
+		if ((var = switch_channel_get_variable(channel, "force_transfer_context"))) {
+			context = var;
+		}
+		
 		new_profile = switch_caller_profile_clone(session, profile);
 
 		new_profile->dialplan = switch_core_strdup(new_profile->pool, dialplan);



More information about the Freeswitch-svn mailing list