2005-11-08 Kevin P. Fleming <kpfleming@digium.com>
+ * channels/chan_local.c (local_call): move channel variables from incoming to outgoing instead of inheriting them (issue #5604)
+
* many files: add explicit include of stdio.h (issue #5650)
2005-11-07 Kevin P. Fleming <kpfleming@digium.com>
strncpy(p->chan->language, p->owner->language, sizeof(p->chan->language) - 1);
strncpy(p->chan->accountcode, p->owner->accountcode, sizeof(p->chan->accountcode) - 1);
p->chan->cdrflags = p->owner->cdrflags;
- ast_channel_inherit_variables(p->owner, p->chan);
+ /* move the channel variables from the incoming channel to the outgoing channel */
+ AST_LIST_HEAD_SET_NOLOCK(&p->chan->varshead, AST_LIST_FIRST(&p->owner->varshead));
+ AST_LIST_HEAD_INIT_NOLOCK(&p->owner->varshead);
p->launchedpbx = 1;
/* Start switch on sub channel */