[asterisk-commits] russell: trunk r68473 - /trunk/main/pbx.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jun 8 09:14:06 MST 2007
Author: russell
Date: Fri Jun 8 11:14:06 2007
New Revision: 68473
URL: http://svn.digium.com/view/asterisk?view=rev&rev=68473
Log:
Add channel variable manager event
(issue #7291, patch from tonyh and jontow)
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=68473&r1=68472&r2=68473
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Jun 8 11:14:06 2007
@@ -5925,6 +5925,13 @@
ast_verbose(VERBOSE_PREFIX_2 "Setting global variable '%s' to '%s'\n", name, value);
newvariable = ast_var_assign(name, value);
AST_LIST_INSERT_HEAD(headp, newvariable, entries);
+ manager_event(EVENT_FLAG_CALL, "VarSet",
+ "Channel: %s\r\n"
+ "Variable: %s\r\n"
+ "Value: %s\r\n"
+ "Uniqueid: %s\r\n",
+ chan ? chan->name : "none", name, value,
+ chan ? chan->uniqueid : "none");
}
if (headp == &globals)
More information about the asterisk-commits
mailing list