[asterisk-dev] Lightweight keepalive for websockets?

Jeremy Lainé jeremy.laine at m4x.org
Tue Feb 11 08:58:53 CST 2014


I encountered a situation where a websocket connection was getting
killed (presumably by the user's router) after ~ 2-3 minutes of inactivity.

To remedy this I looked into the "keepalive" option which was introduced
in Asterisk 11, as it is both simple and supported by libraries such as
JsSIP. However, I was unable to get the option to work for websockets,
and digging into the code, it seems it is not implemented:
sip_send_keepalive does not seem to have a codepath for sending the
keepalive over websockets.

Is this by design (and if so, why?) or would you accept a patch to
support keepalive over websockets?

Cheers,
Jeremy



More information about the asterisk-dev mailing list