on a transfer lets update the rdnis to the old number

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7259 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Ken Rice 2008-01-16 22:13:36 +00:00
parent 27053181e9
commit ee328938aa
1 changed files with 5 additions and 3 deletions

View File

@ -28,6 +28,7 @@
* Neal Horman <neal at wanlink dot com>
* Matt Klein <mklein@nmedia.net>
* Michael Jerris <mike@jerris.com>
* Ken Rice <krice at suspicious dot org>
*
* switch_ivr.c -- IVR Library
*
@ -916,9 +917,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
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);