提交 ee328938 authored 作者: Ken Rice's avatar Ken Rice

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
上级 27053181
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
* Neal Horman <neal at wanlink dot com> * Neal Horman <neal at wanlink dot com>
* Matt Klein <mklein@nmedia.net> * Matt Klein <mklein@nmedia.net>
* Michael Jerris <mike@jerris.com> * Michael Jerris <mike@jerris.com>
* Ken Rice <krice at suspicious dot org>
* *
* switch_ivr.c -- IVR Library * switch_ivr.c -- IVR Library
* *
...@@ -916,9 +917,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_ ...@@ -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 = switch_caller_profile_clone(session, profile);
new_profile->dialplan = switch_core_strdup(profile->pool, dialplan); new_profile->dialplan = switch_core_strdup(new_profile->pool, dialplan);
new_profile->context = switch_core_strdup(profile->pool, context); new_profile->context = switch_core_strdup(new_profile->pool, context);
new_profile->destination_number = switch_core_strdup(profile->pool, extension); 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); switch_channel_set_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论