[asterisk-dev] [Code Review] 3036: res_pjsip_transport_websocket: Fix crash with security events and improve implementation

Joshua Colp reviewboard at asterisk.org
Thu Nov 28 13:18:50 CST 2013

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers.

Bugs: ASTERISK-22897

Repository: Asterisk


The attached change fixes/tweaks a few things:

Security events now determine the transport type using a saner method (by looking at the transport type on the message itself), which includes WebSocket based connections. This means no having to create a container of configured transports and no having to iterate them.

Connection handling now uses the built-in PJSIP transport manager for figuring out what active transport/connection to use. This is based on the target IP address/port of the active WebSocket connection.


  /branches/12/res/res_pjsip_transport_websocket.c 403206 
  /branches/12/res/res_pjsip/security_events.c 403206 
  /branches/12/res/res_pjsip/location.c 403206 
  /branches/12/res/res_pjsip.c 403207 
  /branches/12/include/asterisk/res_pjsip.h 403207 

Diff: https://reviewboard.asterisk.org/r/3036/diff/


Connected using JsSIP, confirmed no crash and that traffic is sent out the proper connection.


Joshua Colp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131128/5a6c568c/attachment.html>

More information about the asterisk-dev mailing list