summaryrefslogtreecommitdiff
path: root/main/ccss.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2011-02-08 21:18:26 +0000
committerMark Michelson <mmichelson@digium.com>2011-02-08 21:18:26 +0000
commit0074165356e12a5cdfc1b4f919e37a38ebf043eb (patch)
tree26e25d45cf3c305ce1079b3543be2b884395e5b9 /main/ccss.c
parent4f57a3bb7c20c21b3f3dec48c411a0a4f49d8604 (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@307071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/ccss.c')
-rw-r--r--main/ccss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/ccss.c b/main/ccss.c
index d0fc1852b..45f3671c3 100644
--- a/main/ccss.c
+++ b/main/ccss.c
@@ -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);