[asterisk-commits] tilghman: branch 1.4 r218577 - /branches/1.4/apps/app_followme.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 15 11:01:22 CDT 2009
Author: tilghman
Date: Tue Sep 15 11:01:17 2009
New Revision: 218577
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218577
Log:
Ensure FollowMe sets language in channels it creates.
Also, not in the original bug report, but related fields are accountcode and
musicclass, and the inheritance of datastores.
(closes issue #15372)
Reported by: Romik
Patches:
20090828__issue15372.diff.txt uploaded by tilghman (license 14)
Tested by: cervajs
Modified:
branches/1.4/apps/app_followme.c
Modified: branches/1.4/apps/app_followme.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/apps/app_followme.c?view=diff&rev=218577&r1=218576&r2=218577
==============================================================================
--- branches/1.4/apps/app_followme.c (original)
+++ branches/1.4/apps/app_followme.c Tue Sep 15 11:01:17 2009
@@ -831,6 +831,10 @@
if (outbound) {
ast_set_callerid(outbound, caller->cid.cid_num, caller->cid.cid_name, caller->cid.cid_num);
ast_channel_inherit_variables(tpargs->chan, outbound);
+ ast_channel_datastore_inherit(tpargs->chan, outbound);
+ ast_string_field_set(outbound, language, tpargs->chan->language);
+ ast_string_field_set(outbound, accountcode, tpargs->chan->accountcode);
+ ast_string_field_set(outbound, musicclass, tpargs->chan->musicclass);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "calling %s\n", dialarg);
if (!ast_call(outbound,dialarg,0)) {
More information about the asterisk-commits
mailing list