The websocket:closed event will be triggered when Kamailio next tries to send a WebSocket ping. Whether Kamailio does this at all (and how frequently it does it) depends entirely on how you've configured the WebSocket module.
On 03/05/13 14:48, אורן אברהם wrote:
I've tried to implement the first method you've stated. it seems ok but i've found a more fundamental problem:The event_route[websocket:closed] is called only when i teminate the sip stack in my browser, but if i close the browser, without a "regular disconnect" then the websocket:closed event is not triggered. (and this is my main target for the question)how can i make it trigger ?
I am using outbound in my deployments now. It is only available in Kamailio Git master. If stable and bug-free is an absolute requirement that you have then I strongly suggest you consider not using any SIP over WebSocket implementation that exists anywhere. This is brand-new technology and you are on the bleeding edge by using it. I would rate the stability of the Kamailio implementation against anything else you can find and I have no stability issues with it - but I strongly recommend you testing it thoroughly yourself and contributing bug-reports and fixes.
p.s: about the outbound,path method, is it a stable feature and bug-free ? I see the default configuration is still using the nathelper hack instead of it.
Regards,
Peter
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users