<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Got your private message.<br>
      <br>
      By default, OpenSIPS sends the request on the interface it
      received the message from. Therefore, if the request was sent from
      a WS client, then the same interface will be used to send it out.<br>
      If you'd like to send via UDP, you'll have to the
      force_send_socket() function in failure_route{} to change the
      outbound interfaces.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 09/28/2015 03:34 PM, Răzvan Crainea
      wrote:<br>
    </div>
    <blockquote cite="mid:560933DA.6010809@opensips.org" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <tt>Hi, Tito!<br>
        <br>
        I am not sure I understand your scenario. So you first send a
        message to a client (is he a WS client?) and then, if that
        fails, you failover to a different server(AS server, not WS)?<br>
        Can you post OpenSIPS debugging logs on pastebin? You can email
        them personally if you don't want to share them with the list.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
      <div class="moz-cite-prefix">On 09/18/2015 02:36 AM, Tito Cumpen
        wrote:<br>
      </div>
      <blockquote
cite="mid:CANZPVB6Phnwek-YeU-5e_FEMiCV4Y9UOCijY0Tr=CWfzDgmTmw@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <p class="">Group,</p>
          <p class=""><br>
          </p>
          <p class="">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 class="">within this 2nd route i'm specifying (sip:ip:port)
            but opensips is sending this request as a websocket. </p>
          <p class="">which concludes in this error:</p>
          <p class=""><br>
          </p>
          <p class=""> </p>
          <p class=""><span class="">CRITICAL:proto_<a
                moz-do-not-send="true" class="moz-txt-link-freetext"
                href="ws:ws_server_handshake"><a class="moz-txt-link-freetext" href="ws:ws_server_handshake">ws:ws_server_handshake</a></a></span></p>
          <p class="">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:'Lucida
              Console','Andale Mono','Courier
              New',Courier;font-size:0.9em;line-height:21.5933px">
              revert_uri();</span></p>
          <p class="">in this case? within the failover route?</p>
          <p class="">What can be done over the fact that the request is
            being sent to the AS server as a ws?</p>
          <p class=""><br>
          </p>
          <p class="">What do you guys think about this strange error in
            the logs??</p>
          <p class="">" &gt;&gt;&gt; not a new connection here 1</p>
          <p class=""><span class="">It seems you have hit a programming
              bug.</span></p>
          <p class=""><span class="">Please help us make OpenSIPS better
              by reporting it at <a moz-do-not-send="true"
                href="https://github.com/OpenSIPS/opensips/issues">https://github.com/OpenSIPS/opensips/issues</a>"</span></p>
          <p class=""><span class=""><br>
            </span></p>
          <p class=""><span class=""><br>
            </span></p>
          <p class=""><span class="">Thanks,</span></p>
          <p class=""><span class="">Tito</span></p>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>