Juha Heinanen writes:
apache 2.4 has capability to tunnel websocket requests:
https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
the tunnel also automatically upgrades the connection to websocket connection meaning that ws_handle_handshake() is not needed.
has anyone managed to configure kamailio to handle sip requests via apache wstunnel?
forgot to include an example of a GET request from the tunnel:
GET / HTTP/1.1. Host: 192.98.102.30:8000. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8. Accept-Language: en-US,en;q=0.5. Accept-Encoding: gzip, deflate. DNT: 1. Sec-WebSocket-Version: 13. Origin: https://test.tutpro.com. Sec-WebSocket-Protocol: sip. Sec-WebSocket-Key: NKwlVvwJcj2Z07MlXm8URg==. Pragma: no-cache. Cache-Control: no-cache. X-Forwarded-For: 192.98.103.30. X-Forwarded-Host: 192.98.103.33. X-Forwarded-Server: jessie.test.tutpro.com.
since Connection, Upgrade and Sec-WebSocket-Version headers are missing, it looks to me that a modified version of ws_handle_handshake() would be needed.
-- juha