diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-06-08 16:14:06 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-06-08 16:14:06 +0000 |
commit | 334d8d9dc484f1a52d19bd530a6c4d0f98246b5c (patch) | |
tree | f83365420c542090de7a38c6e6b3619b8b5f5de9 /main/pbx.c | |
parent | a08922bb71aaac5bd3f0dfc0352f2852ce5199f6 (diff) |
Add channel variable manager event
(issue #7291, patch from tonyh and jontow)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 90dd7ed74..014c23b14 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5925,6 +5925,13 @@ void pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const 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) |