res_pjsip_transport_websocket: Fix security events and simplify implementation.
authorJoshua Colp <jcolp@digium.com>
Sun, 1 Dec 2013 19:58:08 +0000 (19:58 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 1 Dec 2013 19:58:08 +0000 (19:58 +0000)
commit0620cc0c0049993df6521420d3a6f9b2933aaa55
tree293542a1b5aa293cccd7c318216f76752bdd57ea
parente93fbf41e639bc1d3b17c81dab4a3c0812124dcc
res_pjsip_transport_websocket: Fix security events and simplify implementation.

Transport type determination for security events has been simplified to use
the type present on the message itself instead of searching through configured
transports to find the transport used.

The actual WebSocket transport has also been simplified. It now leverages the
existing PJSIP transport manager for finding the active WebSocket transport
for outgoing messages. This removes the need for res_pjsip_transport_websocket
to store a mapping itself.

(closes issue ASTERISK-22897)
Reported by: Max E. Reyes Vera J.

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

Merged revisions 403256 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/location.c
res/res_pjsip/pjsip_options.c
res/res_pjsip/security_events.c
res/res_pjsip_transport_websocket.c