Inherit variables across local channel (bug #3769)
authorMark Spencer <markster@digium.com>
Wed, 16 Mar 2005 04:01:28 +0000 (04:01 +0000)
committerMark Spencer <markster@digium.com>
Wed, 16 Mar 2005 04:01:28 +0000 (04:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5180 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 62ae7a8..95b1cda 100755 (executable)
@@ -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);