]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a couple of useful channel variables for the CC recall macro.
authorMark Michelson <mmichelson@digium.com>
Tue, 8 Feb 2011 21:13:08 +0000 (21:13 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 8 Feb 2011 21:13:08 +0000 (21:13 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.8@307065 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/ccss.c

index 942d1d1ebaaefa9f73d8645ddd7a15b1c23b251d..c280dcb4b6929156c84e9abb589c6602a57697c8 100644 (file)
@@ -2508,6 +2508,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);