[asterisk-commits] mmichelson: branch 1.8 r307065 - /branches/1.8/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 8 15:13:12 CST 2011


Author: mmichelson
Date: Tue Feb  8 15:13:08 2011
New Revision: 307065

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307065
Log:
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.


Modified:
    branches/1.8/main/ccss.c

Modified: branches/1.8/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/ccss.c?view=diff&rev=307065&r1=307064&r2=307065
==============================================================================
--- branches/1.8/main/ccss.c (original)
+++ branches/1.8/main/ccss.c Tue Feb  8 15:13:08 2011
@@ -2508,6 +2508,9 @@
 	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);




More information about the asterisk-commits mailing list