David M. Lee
49e3489cac
A simplistic router for stasis_message's.
...
Often times, when subscribing to a topic, one wants to handle
different message types differently. While one could cascade if/else
statements through the subscription handler, it is much cleaner to
specify a different callback for each message type. The
stasis_message_router is here to help!
A stasis_message_router is constructed for a particular stasis_topic,
which is subscribes to. Call stasis_message_router_unsubscribe() to
cancel that subscription.
Once constructed, routes can be added using
stasis_message_router_add() (or stasis_message_router_set_default()
for any messages not handled by other routes). There may be only one
route per stasis_message_type. The route's callback is invoked just as
if it were a callback for a subscription; but it only gets called for
messages of the specified type.
(issue ASTERISK-20887)
Review: https://reviewboard.asterisk.org/r/2390/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-03-15 17:35:16 +00:00
..
2012-07-25 12:21:54 +00:00
2012-12-03 21:19:40 +00:00
2012-07-23 21:15:26 +00:00
2012-10-07 17:33:38 +00:00
2012-06-26 13:23:12 +00:00
2012-06-15 16:20:16 +00:00
2012-12-11 22:25:21 +00:00
2013-01-22 15:16:20 +00:00
2012-07-11 17:16:50 +00:00
2012-04-17 18:57:40 +00:00
2012-07-11 17:16:50 +00:00
2012-03-24 02:42:42 +00:00
2012-09-21 17:14:59 +00:00
2013-03-08 15:15:13 +00:00
2013-03-08 15:15:13 +00:00
2012-09-22 20:43:30 +00:00
2012-12-08 00:19:39 +00:00
2013-01-23 00:30:00 +00:00
2012-09-22 20:43:30 +00:00
2012-06-15 16:20:16 +00:00
2013-02-15 17:38:22 +00:00
2013-03-04 21:15:36 +00:00
2012-09-25 19:29:14 +00:00
2013-01-02 18:20:03 +00:00
2012-12-03 19:19:39 +00:00
2012-12-11 22:25:21 +00:00
2013-03-15 13:04:52 +00:00
2013-03-08 16:25:58 +00:00
2012-06-15 16:20:16 +00:00
2013-02-19 17:17:10 +00:00
2013-02-15 18:44:24 +00:00
2013-01-02 22:19:49 +00:00
2013-02-14 18:47:56 +00:00
2012-06-15 16:20:16 +00:00
2012-11-04 01:19:43 +00:00
2013-01-02 18:20:03 +00:00
2013-02-05 18:13:09 +00:00
2012-06-15 16:20:16 +00:00
2012-12-11 01:19:39 +00:00
2012-10-18 14:17:40 +00:00
2012-10-18 14:17:40 +00:00
2013-03-04 21:14:30 +00:00
2013-02-19 19:47:42 +00:00
2013-01-28 01:58:41 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-11-02 21:01:33 +00:00
2012-12-05 03:19:08 +00:00
2013-01-31 18:15:49 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-03-15 12:53:03 +00:00
2012-12-11 22:25:21 +00:00
2012-12-11 02:19:39 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-09-14 19:53:43 +00:00
2013-02-19 17:17:10 +00:00
2012-11-23 00:20:55 +00:00
2013-03-07 15:09:01 +00:00
2013-02-26 19:29:14 +00:00
2013-03-15 13:04:52 +00:00
2012-04-28 01:33:49 +00:00
2012-10-06 01:47:00 +00:00
2013-02-15 13:38:12 +00:00
2012-06-20 02:07:00 +00:00
2012-06-15 16:20:16 +00:00
2013-03-08 15:15:13 +00:00
2012-06-15 16:20:16 +00:00
2013-02-15 23:29:28 +00:00
2012-06-15 16:20:16 +00:00
2013-03-07 15:48:06 +00:00
2012-09-25 23:10:22 +00:00
2012-06-15 16:20:16 +00:00
2012-11-19 20:20:36 +00:00
2012-09-21 17:14:59 +00:00
2012-10-11 15:49:02 +00:00
2012-06-15 16:20:16 +00:00
2013-03-01 18:01:56 +00:00
2012-06-15 16:20:16 +00:00
2013-03-15 17:35:16 +00:00
2013-03-15 17:35:16 +00:00
2013-03-15 17:35:16 +00:00
2013-03-15 17:35:16 +00:00
2013-01-19 20:54:07 +00:00
2012-09-21 17:14:59 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2013-02-12 21:45:59 +00:00
2013-03-15 12:53:03 +00:00
2012-09-21 17:14:59 +00:00
2013-02-14 18:47:56 +00:00
2013-01-09 22:20:40 +00:00
2013-03-07 21:55:28 +00:00
2012-07-31 20:21:43 +00:00
2012-12-11 22:25:21 +00:00
2012-07-13 16:49:40 +00:00
2013-02-15 13:38:12 +00:00
2012-06-15 16:20:16 +00:00
2013-01-12 07:21:01 +00:00
2012-12-11 21:52:09 +00:00
2013-02-15 13:38:12 +00:00
2013-03-07 16:48:19 +00:00