mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
Allow directed pickup to pick up the real context instead of the macro context if a Macro is used. (issue #8984 reported by jamesb63)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@54884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1185,6 +1185,9 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
|
|||||||
ast_app_group_set_channel(tmp->chan, outbound_group);
|
ast_app_group_set_channel(tmp->chan, outbound_group);
|
||||||
|
|
||||||
/* Inherit context and extension */
|
/* Inherit context and extension */
|
||||||
|
if (!ast_strlen_zero(chan->macrocontext))
|
||||||
|
ast_copy_string(tmp->chan->dialcontext, chan->macrocontext, sizeof(tmp->chan->dialcontext));
|
||||||
|
else
|
||||||
ast_copy_string(tmp->chan->dialcontext, chan->context, sizeof(tmp->chan->dialcontext));
|
ast_copy_string(tmp->chan->dialcontext, chan->context, sizeof(tmp->chan->dialcontext));
|
||||||
ast_copy_string(tmp->chan->exten, chan->exten, sizeof(tmp->chan->exten));
|
ast_copy_string(tmp->chan->exten, chan->exten, sizeof(tmp->chan->exten));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user