<div dir="ltr">Any ideas on this matter ?I have debug logs is they are needed to debug this issue.<div><br></div><div><br>Thanks,</div><div>Tito</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 7:36 PM, Tito Cumpen <span dir="ltr">&lt;<a href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p>Group,</p><p><br></p><p>I am using opensips 2.2-dev git revision: 0faac6a and I am seeing issues when sending a request to second  route for failover purpose(AS server) When the source is a WS client. I am using sipjs version 0.7.1</p><p>within this 2nd route i&#39;m specifying (sip:ip:port) but opensips is sending this request as a websocket. </p><p>which concludes in this error:</p><p><br></p><p>







</p><p><span>CRITICAL:proto_ws:ws_server_handshake</span></p><p>Only when the request  goes from the failure route to the failover route. In the event that I route the request directly to the 2nd route upon failure to find the AOR entry for the user from the main route.  Opensips does send the request go to AS server as a sip request. Another note to add is that opensips does not revert the ruri . In the case of sipjs it utilizes a random string for contact entries upon registration. Opensips uses this as the ruri when making the request it does not revert them upon failure route consequently the request reaches  failover route with this ruri as well. Can I use <span style="color:rgb(102,102,102);font-family:&#39;Lucida Console&#39;,&#39;Andale Mono&#39;,&#39;Courier New&#39;,Courier;font-size:0.9em;line-height:21.5933px">    revert_uri();</span></p><div style="color:rgb(102,102,102);font-family:&#39;Trebuchet MS&#39;,sans-serif,Verdana,Arial;font-size:13.008px;line-height:21.5933px"></div><p>in this case? within the failover route?</p><p>What can be done over the fact that the request is being sent to the AS server as a ws?</p><p><br></p><p>What do you guys think about this strange error in the logs??</p><p>&quot; &gt;&gt;&gt; not a new connection here 1</p>








<p><span>It seems you have hit a programming bug.</span></p>
<p><span>Please help us make OpenSIPS better by reporting it at <a href="https://github.com/OpenSIPS/opensips/issues" target="_blank">https://github.com/OpenSIPS/opensips/issues</a>&quot;</span></p><p><span><br></span></p><p><span><br></span></p><p><span>Thanks,</span></p><p><span>Tito</span></p>















</div>
</blockquote></div><br></div>