<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.2">
</HEAD>
<BODY>
Hi Daniel,<BR>
<BR>
Thanks for the encouragement.<BR>
<BR>
I could do with a guide here.&nbsp; I think there is only a few hours work left to finish off the handshake and basic module stuff.&nbsp; After that I think the next step needs to be:<BR>
- Getting the module to register with core to receive WS frames (which may arrive over TCP or TLS)<BR>
- Giving the module/core the ability to &quot;change&quot; the connection the handshake came in on from SIP/HTTP to WS (so that new messages go straight to the handler in the new module)<BR>
- In the module adding handling for Close, Ping, and Pong<BR>
- To do the handling for Ping the module needs to be able to send WS frames out (over TCP or TLS)<BR>
- In the module &quot;printing&quot; received binary and text frames (which will contain SIP requests)<BR>
<BR>
The bits I need help with here the most are the registering the module to receive the WS frames and sending WS frames (over TCP or TLS), and adding the ability for the module/core to &quot;upgrade&quot; the connection from SIP/HTTP to WS after successful handshake.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Fri, 2012-06-15 at 08:25 +0200, Daniel-Constantin Mierla wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
I will be here to guide whenever needed to navigate through the 
transport layers.

At some point it time when someone was looking to sponsor the 
development of web sockets support I was investigating a bit, 
unfortunately the project was postponed. From what I remember, the core 
touches will be:

- sip uri and via parsers enhanced to deal with websocket transport values
- tcp connection structure to keep a flag its websocket in order to 
generate proper values for via/record-route
</PRE>
</BLOCKQUOTE>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>