Merged revisions 218577 via svnmerge from
[asterisk/asterisk.git] / apps / app_followme.c
index d460f75..363abb5 100644 (file)
@@ -835,6 +835,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);
                                ast_verb(3, "calling %s\n", dialarg);
                                if (!ast_call(outbound,dialarg,0)) {
                                        tmpuser->ochan = outbound;