From: Mark Spencer Date: Wed, 16 Mar 2005 04:01:28 +0000 (+0000) Subject: Inherit variables across local channel (bug #3769) X-Git-Tag: 1.2.0-beta1~1082 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b20a0f5db3553cd70bea6e2f660fde364ddfb0c;p=thirdparty%2Fasterisk.git Inherit variables across local channel (bug #3769) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5180 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_local.c b/channels/chan_local.c index 62ae7a8c09..95b1cdad97 100755 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -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);