aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-08 21:13:08 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-08 21:13:08 +0000
commitcd7454f41fd1b8f3dba70864925d49edafe3fcf0 (patch)
treea00cab2025da1fea4adb1152b2f7023823099695
parent81b726a6b1f9cea49bf535fa5b6eb462a40abbe3 (diff)
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/branches/1.8@307065 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/ccss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/ccss.c b/main/ccss.c
index 942d1d1eb..c280dcb4b 100644
--- a/main/ccss.c
+++ b/main/ccss.c
@@ -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);