[sr-dev] websocket-closed - good idea

Olle E. Johansson oej at edvina.net
Wed Aug 8 09:05:33 CEST 2012


This is a good idea.
For outbound, we might need a tcp-socket-closed route to handle failover cases.

Just a note for the archives :-)

/O

8 aug 2012 kl. 00:39 skrev Peter Dunkley:

> Module: sip-router
> Branch: master
> Commit: 6f928a54d137e2e08ccc1a278afb04b40e34307f
> URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6f928a54d137e2e08ccc1a278afb04b40e34307f
> 
> Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
> Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
> Date:   Tue Aug  7 23:38:18 2012 +0100
> 
> modules/websocket: Added new event_route[websocket:closed] which is run when a WebSocket connection is closed
> 
> - Also changed ws_handle_handshake() to return 1 on success (still 0 on all
>  errors as they are handled - and the correct responses sent - within the
>  function).
> 
> ---
> 
> modules/websocket/README                  |   34 +++++++++++++++++++++--
> modules/websocket/doc/websocket_admin.xml |   33 ++++++++++++++++++++--
> modules/websocket/example/kamailio.cfg    |   11 +++++++-
> modules/websocket/ws_conn.c               |   42 ++++++++++++++++++++++++++--
> modules/websocket/ws_conn.h               |   12 +++++++-
> modules/websocket/ws_frame.c              |    6 ++--
> modules/websocket/ws_handshake.c          |   10 +++++--
> 7 files changed, 130 insertions(+), 18 deletions(-)
> 
> Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=6f928a54d137e2e08ccc1a278afb04b40e34307f
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

---
* Olle E Johansson - oej at edvina.net
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden






More information about the sr-dev mailing list