<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 03/05/13 14:48, אורן אברהם wrote:<br>
    </div>
    <blockquote
cite="mid:CAHgMfJMqYh2YF1iKgmvXrSecxeg-0zX+xHzEDSiYk2NWTxe6fg@mail.gmail.com"
      type="cite">
      <div dir="rtl">
        <div dir="ltr" style="">I've tried to implement the first method
          you've stated. it seems ok but i've found a more fundamental
          problem:</div>
        <div dir="ltr" style="">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 w<u>ebsocket:closed event is not triggered</u>. (and this
          is my main target for the question) </div>
        <div dir="ltr" style=""><b>how can i make it trigger ?</b></div>
        <div dir="ltr" style=""><br>
        </div>
      </div>
    </blockquote>
    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.<br>
    <br>
    <blockquote
cite="mid:CAHgMfJMqYh2YF1iKgmvXrSecxeg-0zX+xHzEDSiYk2NWTxe6fg@mail.gmail.com"
      type="cite">
      <div dir="rtl">
        <div dir="ltr" style="">p.s: about the outbound,path method, <b>is
            it a stable feature and bug-free ?</b> I see the default
          configuration is still using the nathelper hack instead of
          it. </div>
        <div dir="ltr" style=""><br>
        </div>
      </div>
    </blockquote>
    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.<br>
    <br>
    Regards,<br>
    <br>
    Peter<br>
    <br>
  </body>
</html>