When stating "stable" and "bug-free" - my intention was relativly to that feature in kamailio because it seems that it is still under development. Moreover -  certainly if i will find any problem while testing i would submit a bug-report and bug-fixes if possible.

and by the way, I found another problem when implementing the first method: when calling unregister("location","websocket=>$si:$sp)" from the event_route[websocket:closed] i get the following error: 
[parser/parse_to.c:879] : failed to parse To uri
why it happens and how can i fix it ? (i think it is related to the fact we call unregister from the event_route, but i'm not sure)



2013/5/3 Peter Dunkley <peter.dunkley@crocodile-rcs.com>

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 ?

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.


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. 

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.

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