mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Make queue support channel variable inheritance (bug #3274)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -823,8 +823,13 @@ static int ring_entry(struct queue_ent *qe, struct localuser *tmp)
|
||||
tmp->chan->cid.cid_name = strdup(qe->chan->cid.cid_name);
|
||||
if (qe->chan->cid.cid_ani)
|
||||
tmp->chan->cid.cid_ani = strdup(qe->chan->cid.cid_ani);
|
||||
|
||||
/* Inherit specially named variables from parent channel */
|
||||
ast_channel_inherit_variables(qe->chan, tmp->chan);
|
||||
|
||||
/* Presense of ADSI CPE on outgoing channel follows ours */
|
||||
tmp->chan->adsicpe = qe->chan->adsicpe;
|
||||
|
||||
/* Place the call, but don't wait on the answer */
|
||||
res = ast_call(tmp->chan, location, 0);
|
||||
if (res) {
|
||||
|
Reference in New Issue
Block a user