[svn-commits] branch 1.2 r27594 - /branches/1.2/apps/app_dial.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue May 16 16:31:56 MST 2006
Author: file
Date: Tue May 16 18:31:56 2006
New Revision: 27594
URL: http://svn.digium.com/view/asterisk?rev=27594&view=rev
Log:
Inherit channel variables during call forwards when going through chan_local (issue #7095 reported by raarts)
Modified:
branches/1.2/apps/app_dial.c
Modified: branches/1.2/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_dial.c?rev=27594&r1=27593&r2=27594&view=diff
==============================================================================
--- branches/1.2/apps/app_dial.c (original)
+++ branches/1.2/apps/app_dial.c Tue May 16 18:31:56 2006
@@ -471,6 +471,8 @@
o->chan = ast_request(tech, in->nativeformats, stuff, &cause);
if (!o->chan)
ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s' (cause = %d)\n", tech, stuff, cause);
+ else
+ ast_channel_inherit_variables(in, o->chan);
} else {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Too many forwards from %s\n", o->chan->name);
@@ -1060,6 +1062,8 @@
tmp->chan = ast_request(tech, chan->nativeformats, stuff, &cause);
if (!tmp->chan)
ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s' (cause = %d)\n", tech, stuff, cause);
+ else
+ ast_channel_inherit_variables(chan, tmp->chan);
} else {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Too many forwards from %s\n", tmp->chan->name);
More information about the svn-commits
mailing list