asterisk/channels/sip/include
David M. Lee e06e519a90 Initial support for endpoints.
An endpoint is an external device/system that may offer/accept
channels to/from Asterisk. While this is a very useful concept for end
users, it is surprisingly not a core concept within Asterisk itself.

This patch defines ast_endpoint as a separate object, which channel
drivers may use to expose their concept of an endpoint. As the channel
driver creates channels, it can use ast_endpoint_add_channel() to
associate channels to the endpoint. This updated the endpoint
appropriately, and forwards all of the channel's events to the
endpoint's topic.

In order to avoid excessive locking on the endpoint object itself, the
mutable state is not accessible via getters. Instead, you can create a
snapshot using ast_endpoint_snapshot_create() to get a consistent
snapshot of the internal state.

This patch also includes a set of topics and messages associated with
endpoints, and implementations of the endpoint-related RESTful
API. chan_sip was updated to create endpoints with SIP peers, but the
state of the endpoints is not updated with the state of the peer.

Along for the ride in this patch is a Stasis test API. This is a
stasis_message_sink object, which can be subscribed to a Stasis
topic. It has functions for blocking while waiting for conditions in
the message sink to be fulfilled.

(closes issue ASTERISK-21421)
Review: https://reviewboard.asterisk.org/r/2492/



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-05-08 13:39:08 +00:00
..
config_parser.h Add auto_force_rport and auto_comedia NAT options 2012-02-09 18:14:39 +00:00
dialog.h logger: Adds additional support for call id logging and chan_sip specific stuff 2012-05-17 16:28:20 +00:00
dialplan_functions.h Make all of the various rtpqos parameters in this branch available from the CHANNEL function. 2010-02-17 06:25:15 +00:00
globals.h Asterisk media architecture conversion - no more format bitfields 2011-02-03 16:22:10 +00:00
reqresp_parser.h Fix Record-Route parsing for large headers. 2013-01-18 05:31:23 +00:00
sdp_crypto.h Doxygen Updates - janitor work 2012-09-21 17:14:59 +00:00
security_events.h Merged revisions 337595,337597 via svnmerge from 2011-09-22 16:35:20 +00:00
sip.h Initial support for endpoints. 2013-05-08 13:39:08 +00:00
sip_utils.h Add auto_force_rport and auto_comedia NAT options 2012-02-09 18:14:39 +00:00
srtp.h Clean up doxygen warnings 2012-08-30 14:23:28 +00:00