aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-15 16:01:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-15 16:01:17 +0000
commit6ff08a1751af328a828ab7ccaaa744b30f74d42f (patch)
tree70f56cf639ce495af557107a7d194cf4c78d69ae /apps
parentd2359e38c2bf2ee05c02f02a4d971fae9c01f6b4 (diff)
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 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@218577 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_followme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index 73e991135..6b228f416 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -831,6 +831,10 @@ static void findmeexec(struct fm_args *tpargs)
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)) {