Files
asterisk/main
David M. Lee dbdb2b1b3a Add vtable and methods for to_json and to_ami for Stasis messages
When a Stasis message type is defined in a loadable module, handling
those messages for AMI and res_stasis events can be cumbersome.

This patch adds a vtable to stasis_message_type, with to_ami and
to_json virtual functions. These allow messages to be handled
abstractly without putting module-specific code in core.

As an example, the VarSet AMI event was refactored to use the to_ami
virtual function.

(closes issue ASTERISK-21817)
Review: https://reviewboard.asterisk.org/r/2579/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-06-11 15:46:35 +00:00
..
2012-06-15 16:20:16 +00:00
2012-12-11 22:25:21 +00:00
2012-03-24 02:42:42 +00:00
2012-09-21 17:14:59 +00:00
2012-09-22 20:43:30 +00:00
2012-09-22 20:43:30 +00:00
2012-06-15 16:20:16 +00:00
2012-12-11 22:25:21 +00:00
2013-06-07 12:56:56 +00:00
2012-06-15 16:20:16 +00:00
2012-03-22 19:51:16 +00:00
2013-02-14 18:47:56 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-10-18 14:17:40 +00:00
2012-03-22 19:51:16 +00:00
2013-06-07 12:56:56 +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-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-04-28 01:33:49 +00:00
2013-04-18 17:26:29 +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-09-25 23:10:22 +00:00
2012-06-15 16:20:16 +00:00
2012-09-21 17:14:59 +00:00
2013-06-06 20:50:25 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2012-09-21 17:14:59 +00:00
2013-02-14 18:47:56 +00:00
2012-12-11 22:25:21 +00:00
2013-02-15 13:38:12 +00:00
2012-06-15 16:20:16 +00:00
2013-02-15 13:38:12 +00:00
2013-04-02 11:40:05 +00:00