diff --git a/ChangeLog b/ChangeLog index 7910683fdc..3d0d95cf16 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-11-08 Kevin P. Fleming + * 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 diff --git a/channels/chan_local.c b/channels/chan_local.c index 6a4cc0c1f6..6dec650abc 100755 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -345,7 +345,9 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout) 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 */