summaryrefslogtreecommitdiff
path: root/apps/app_userevent.c
diff options
context:
space:
mode:
authorScott Griepentrog <sgriepentrog@digium.com>2014-05-22 16:09:51 +0000
committerScott Griepentrog <sgriepentrog@digium.com>2014-05-22 16:09:51 +0000
commitcf21644d6a4b757999be136ab1b90ba5cf6ac3bc (patch)
treea35b24bdfcf860a4085383bab882ed33bf3d3e1d /apps/app_userevent.c
parentd00882108fabd3798aa6566aa5697d82459e753e (diff)
ARI: Add ability to raise arbitrary User Events
User events can now be generated from ARI. Events can be signalled with arbitrary json variables, and include one or more of channel, bridge, or endpoint snapshots. An application must be specified which will receive the event message (other applications can subscribe to it). The message will also be delivered via AMI provided a channel is attached. Dialplan generated user event messages are still transmitted via the channel, and will only be received by a stasis application they are attached to or if the channel is subscribed to. This change also introduces the multi object blob mechanism used to send multiple snapshot types in a single message. The dialplan app UserEvent was also changed to use multi object blob, and a new stasis message type created to handle them. ASTERISK-22697 #close Review: https://reviewboard.asterisk.org/r/3494/ ........ Merged revisions 414405 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_userevent.c')
-rw-r--r--apps/app_userevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_userevent.c b/apps/app_userevent.c
index f5defd49d..8f7219eab 100644
--- a/apps/app_userevent.c
+++ b/apps/app_userevent.c
@@ -115,7 +115,7 @@ static int userevent_exec(struct ast_channel *chan, const char *data)
}
ast_channel_lock(chan);
- ast_channel_publish_blob(chan, ast_channel_user_event_type(), blob);
+ ast_multi_object_blob_single_channel_publish(chan, ast_multi_user_event_type(), blob);
ast_channel_unlock(chan);
return 0;
}