diff options
author | David M. Lee <dlee@digium.com> | 2013-03-08 15:15:13 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-03-08 15:15:13 +0000 |
commit | 4edd8be35cdef3b212355c48b68319f2304bc9f2 (patch) | |
tree | 19eb1e097c68641f443584f6585a71bb4a4d6f77 /main/pbx.c | |
parent | f6f6bc7b5932808d570e41869c47c3fc54ab6bf8 (diff) |
This patch adds a new message bus API to Asterisk.
For the initial use of this bus, I took some work kmoore did creating
channel snapshots. So rather than create AMI events directly in the
channel code, this patch generates Stasis events, which manager.c uses
to then publish the AMI event.
This message bus provides a generic publish/subscribe mechanism within
Asterisk. This message bus is:
- Loosely coupled; new message types can be added in seperate modules.
- Easy to use; publishing and subscribing are straightforward
operations.
In addition to basic publish/subscribe, the patch also provides
mechanisms for message forwarding, and for message caching.
(issue ASTERISK-20887)
(closes issue ASTERISK-20959)
Review: https://reviewboard.asterisk.org/r/2339/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/main/pbx.c b/main/pbx.c index bf95ccbe2..82bbb5257 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -11453,18 +11453,7 @@ int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const ast_verb(2, "Setting global variable '%s' to '%s'\n", name, value); newvariable = ast_var_assign(name, value); AST_LIST_INSERT_HEAD(headp, newvariable, entries); - /*** DOCUMENTATION - <managerEventInstance> - <synopsis>Raised when a variable is set to a particular value.</synopsis> - </managerEventInstance> - ***/ - manager_event(EVENT_FLAG_DIALPLAN, "VarSet", - "Channel: %s\r\n" - "Variable: %s\r\n" - "Value: %s\r\n" - "Uniqueid: %s\r\n", - chan ? ast_channel_name(chan) : "none", name, value, - chan ? ast_channel_uniqueid(chan) : "none"); + ast_channel_publish_varset(chan, name, value); } if (chan) |