]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure FollowMe sets language in channels it creates.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 15 Sep 2009 16:01:17 +0000 (16:01 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 15 Sep 2009 16:01:17 +0000 (16:01 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@218577 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_followme.c

index 73e991135e011d18253b86f98cf909301343b27c..6b228f416201f3034f9231308d36d4b9ce8f7924 100644 (file)
@@ -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)) {