dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 307065 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r307065 | mmichelson | 2011-02-08 15:13:08 -0600 (Tue, 08 Feb 2011) | 6 lines
  
  Add a couple of useful channel variables for the CC recall macro.
  
  CC_EXTEN and CC_CONTEXT will allow you to determine the channel
  and context that will be called when the recall occurs.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@307071 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mmichelson 2011-02-08 21:18:26 +00:00
parent 8fd74132f7
commit 56f9835d92
1 changed files with 3 additions and 0 deletions

View File

@ -2518,6 +2518,9 @@ static void *generic_recall(void *data)
ast_copy_string(chan->context, generic_pvt->context, sizeof(chan->context));
chan->priority = 1;
pbx_builtin_setvar_helper(chan, "CC_EXTEN", generic_pvt->exten);
pbx_builtin_setvar_helper(chan, "CC_CONTEXT", generic_pvt->context);
if (!ast_strlen_zero(callback_macro)) {
ast_log_dynamic_level(cc_logger_level, "Core %d: There's a callback macro configured for agent %s\n",
agent->core_id, agent->device_name);