<!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,<BR>
<BR>
I am just trying to work out exactly what needs to be updated in the Kamailio core/parser for WebSockets.<BR>
<BR>
I already know that the Via: parser needs to be updated to understand the WS and WSS transports, and the URI parser needs to be updated to understand the the WS transport, but is there anything else?<BR>
<BR>
I'd appreciate it if anyone has any ideas about what else might need changed (and where in the code), as my guessing at this could be a bit hit-and-miss...<BR>
<BR>
I don't plan to add a forward_ws() function to core because I don't think it'll work (or at least not in all cases as servers cannot initiate WebSocket connections).&nbsp; But are there updates needed in the following areas (and any ideas where in the code I should look)?
<UL>
    <LI>forward_no_connect()
    <LI>the proto core variable
    <LI>the snd_proto core variable
    <LI>Is a WS keyword (like SCTP/TCP/TLS/UDP) needed
    <LI>Are the pseudo variables (for example, I know that the mutable variable $du needs to do the right thing as this is fundamental to being able to route requests), transformations, and selects that need to be updated
    <LI>Are there any modules (rr, nathelper?) that need to be updated
</UL>
<BR>
Thanks for your help,<BR>
<BR>
Peter<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>