From carlos.ruizdiaz@gmail.com Wed Aug 8 20:53:02 2012 From: Carlos Ruiz =?utf-8?q?D=C3=ADaz?= To: sr-dev@lists.kamailio.org Subject: Re: [sr-dev] Websocket testing Date: Wed, 08 Aug 2012 14:52:57 -0400 Message-ID: In-Reply-To: <4156be7f95d3d01f3a220bebf7febf58.squirrel@crocodile-rcs.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1978706181==" --===============1978706181== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thank you for your time Peter. I'll setup a VM with Windows to continue with my tests and I'll come back later with more feedback. Regards. Carlos. On Wed, Aug 8, 2012 at 12:22 PM, Peter Dunkley < peter.dunkley(a)crocodile-rcs.com> wrote: > Hi, > > I have added some comments in-line below. > > Regards, > > Peter > > > 1. After setting up the proxy ip:port in the call.htm file (of sipml5) to > > * > > 127.0.0.1:5060* the client started to work but kamailio script refused > to > > establish my connection because the following condition was not > satisfied: > > > > > > *if ($Rp !=3D MY_WS_PORT && $Rp !=3D MY_WSS_PORT) {* > > * xlog("L_WARN", "HTTP request received on $Rp\n");* > > * xhttp_reply("403", "Forbidden", "", "");* > > * exit;* > > *}* > > > > *MY_WS_PORT* and *MY_WSS_PORT *are set to 80 and 443 respectively, as the > > default config example of websocket module says so. > > > > Then, I decided to change the ip:port to *127.0.0.1:80*, always in the > > call.htm file and afterwards the condition was satisfied but sipml5 dies > > with > > > > SIP stack start: proxy=3D'127.0.0.1:80', realm=3D'', > > impi=3D'2000', impu=3D'' > > tsk_utils.js:97< > http://127.0.0.1/sipml5/src/tinySAK/src/tsk_utils.js?svn=3D5> > > Connecting to 'ws://127.0.0.1:80' > > tsk_utils.js:97< > http://127.0.0.1/sipml5/src/tinySAK/src/tsk_utils.js?svn=3D5> > > Stack starting > > tsk_utils.js:97< > http://127.0.0.1/sipml5/src/tinySAK/src/tsk_utils.js?svn=3D5> > > Unexpected response code: 200 :1 > > __tsip_transport_ws_onerror > > tsk_utils.js:97< > http://127.0.0.1/sipml5/src/tinySAK/src/tsk_utils.js?svn=3D5> > > __tsip_transport_ws_onclose > > tsk_utils.js:97< > http://127.0.0.1/sipml5/src/tinySAK/src/tsk_utils.js?svn=3D5> > > Failed to connet to the server > > > > Finally, I ended up commenting the condition block and restored the > > original values of ip:port to *127.0.0.1:5060* . > > > > Having done that, I tried again and another error was thrown but this > > time, > > in the next condition block: * if ($hdr(Host) =3D=3D $null || > > !is_myself($hdr(Host))) * > > > >