]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Add methods to allow for synchronous publishing to subscriber
authorMatthew Jordan <mjordan@digium.com>
Sun, 12 Jan 2014 21:55:11 +0000 (21:55 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 12 Jan 2014 21:55:11 +0000 (21:55 +0000)
commitdde2d41715242e32677afc917d6b48cde80b8f1f
tree1b267b6b2368a3ac597ebfdc3738fa3425634e1c
parent08e624708d01196f71a9e52da5634717413499a8
stasis: Add methods to allow for synchronous publishing to subscriber

This patch adds an API call to Stasis that allows a publisher to publish a
stasis message that will not return until a specific subscriber handles the
message. Since a subscriber can have their own forwarding topic which orders
messages from many topics, this allows a publisher who knows of that subscriber
to synchronize to that subscriber regardless of the forwarding relationships
between topics.

This is of particular use for dialplan applications that need to synchronize
on a particular subscriber's handling of a message.

(issue ASTERISK-22884)
Reported by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/3099/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@405311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stasis.h
include/asterisk/stasis_message_router.h
main/stasis.c
main/stasis_message_router.c
tests/test_stasis.c