title: Error during WebSocket handshake: Invalid status line
body: <pre><code>WebSocket connection to 'ws://server-ip:port-name/ws' failed: Error during WebSocket handshake: Invalid status line on tsip_transport.js?svn=241:359 
  </code></pre>
  
  <p>While trying to connect to PBX server on
  <a href="http://server-ip/call.htm" rel="nofollow">http://server-ip/call.htm</a> on my server same to which is present on official site below
   <a href="https://www.doubango.org/sipml5/call.htm" rel="nofollow">https://www.doubango.org/sipml5/call.htm</a></p>
  
  <p>I get the above error.</p>
  
  <p>The code which gives me the error is </p>
  
  <pre><code>var s_url = tsk_string_is_null_or_empty(o_self.o_stack.network.s_websocket_server_url) ?
           tsk_string_format("{0}://{1}:{2}",o_self.s_protocol, o_self.s_host, o_self.i_port) : o_self.o_stack.network.s_websocket_server_url;
  tsk_utils_log_info("Connecting to '"+s_url+"'");
  o_self.o_ws = new WebSocket(s_url, 'sip');
  </code></pre>
  
  <p>I am getting an error on this line
  o_self.o_ws = new WebSocket(s_url, 'sip');</p>