aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 20:38:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 20:38:10 +0000
commitb3f0f77145e134060970e6140436ab556478b437 (patch)
tree72c72646eea668ee8e5b95465a3e6dc340270e5f /channels/chan_local.c
parentfdc1a4148ae9dc294fd5085e0e2888d04d468e24 (diff)
issue #5604
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7031 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-xchannels/chan_local.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 6a4cc0c1f..6dec650ab 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 */