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

Freeswitch SVN silik0n at freeswitch.org
Wed Jan 16 17:13:36 EST 2008


Author: silik0n
Date: Wed Jan 16 17:13:36 2008
New Revision: 7259

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
on a transfer lets update the rdnis to the old number

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Wed Jan 16 17:13:36 2008
@@ -28,6 +28,7 @@
  * Neal Horman <neal at wanlink dot com>
  * Matt Klein <mklein at nmedia.net>
  * Michael Jerris <mike at jerris.com>
+ * Ken Rice <krice at suspicious dot org>
  *
  * switch_ivr.c -- IVR Library
  *
@@ -916,9 +917,10 @@
 		
 		new_profile = switch_caller_profile_clone(session, profile);
 
-		new_profile->dialplan = switch_core_strdup(profile->pool, dialplan);
-		new_profile->context = switch_core_strdup(profile->pool, context);
-		new_profile->destination_number = switch_core_strdup(profile->pool, extension);
+		new_profile->dialplan = switch_core_strdup(new_profile->pool, dialplan);
+		new_profile->context = switch_core_strdup(new_profile->pool, context);
+		new_profile->destination_number = switch_core_strdup(new_profile->pool, extension);
+		new_profile->rdnis = switch_core_strdup(new_profile->pool, profile->destination_number);
 
 		switch_channel_set_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);
 



More information about the Freeswitch-svn mailing list