mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Merged revisions 54884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54884 | file | 2007-02-16 12:02:35 -0500 (Fri, 16 Feb 2007) | 2 lines 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/trunk@54885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1393,6 +1393,9 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
|
||||
ast_app_group_set_channel(tc, outbound_group);
|
||||
|
||||
/* Inherit context and extension */
|
||||
if (!ast_strlen_zero(chan->macrocontext))
|
||||
ast_copy_string(tc->dialcontext, chan->macrocontext, sizeof(tc->dialcontext));
|
||||
else
|
||||
ast_copy_string(tc->dialcontext, chan->context, sizeof(tc->dialcontext));
|
||||
ast_copy_string(tc->exten, chan->exten, sizeof(tc->exten));
|
||||
|
||||
|
Reference in New Issue
Block a user