]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_transport_websocket: Fix security events and simplify implementation.
authorJoshua Colp <jcolp@digium.com>
Sun, 1 Dec 2013 19:56:38 +0000 (19:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 1 Dec 2013 19:56:38 +0000 (19:56 +0000)
commite0cfdf565521617f08b2933afe44fba8a26bf867
treec5cd929134b8ddee92068f54cca9b2932063d9d3
parent021f49bad79f0f875437c45a8e875c978f3c5d36
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/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@403256 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