Inherit variables across local channel (bug #3769)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-03-16 04:01:28 +00:00
parent c6c9c0a3ed
commit 6b20a0f5db

View File

@@ -309,7 +309,7 @@ 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);
p->launchedpbx = 1;
/* Start switch on sub channel */
res = ast_pbx_start(p->chan);