Forums Read-only archive

SIP over Websocket keep-alives

3 posts · Brekeke SIP Server Forum

pgrebenc Original post
1. Brekeke Product Name and Version:
Brekeke SIP Server 3.5.2.8

2. Java version:
1.8.0_60-b27

3. OS type and the version:
CentOS release 6.6

4. UA (phone), gateway or other hardware/software involved:
JsSIP 0.7.11

5. Your problem:

Is it possible to configure a keep-alive for SIP connections via websocket in the Brekeke SIP server?

Does the Configuration -> SIP -> NAT traversal -> "Keep address/port mapping" setting affect websockets?

Is there a way to enable ping/pong keep-alives, or CRLF keep-alives in the server?

Regards,
Paul
Harold
Interesting. Let me try.
Harold
NAT traversal's Keep-Alive is for UDP so it doesn't work with WS/WSS.

But I could send periodical keep-alive packets from the Redundancy's Heartbeat settings. If you set a registered username with @localhost as SIP URI there, the Heartbeat process sends OPTIONS packet periodically to the SIP server and so the SIP server forwards it to the UA over WebSocket .