<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you can do nat_uac_test("64") to identify that call comes in via
    websocket and after lookup("location") you can see it is going out
    via websocket. If both coditions are true, then you can skip
    engaging rtpengine.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 03/03/15 07:42, Don Fanning wrote:<br>
    </div>
    <blockquote
cite="mid:CAFywq49NXmJAtP4D_UcorBk+TE82aZToVg8Kr7QDDR_omfMSJQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello All,
        <div><br>
        </div>
        <div>Prior to going down the rtpengine path for another need,
          calling was working fine between WSS client.  Now that I've
          added in some pieces from caruizdiaz's config [<a
            moz-do-not-send="true"
href="https://github.com/caruizdiaz/kamailio-ws/blob/master/kamailio-ws.cfg">https://github.com/caruizdiaz/kamailio-ws/blob/master/kamailio-ws.cfg</a>]
          relating to SETUP_BY_TRANSPORT, it has broken that
          functionality.</div>
        <div><br>
        </div>
        <div>Is there a way to skip rtpengine if the originator and
          destination are both on wss?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>route[RELAY] {</div>
          <div><br>
          </div>
          <div>        # enable additional event routes for forwarded
            requests</div>
          <div>        # - serial forking, RTP relaying handling, a.s.o.</div>
          <div>        if (is_method("INVITE|BYE|SUBSCRIBE|UPDATE")) {</div>
          <div>                t_on_branch("MANAGE_BRANCH");</div>
          <div>                t_on_reply("MANAGE_REPLY");</div>
          <div>        }</div>
          <div>        if (is_method("INVITE")) {</div>
          <div>                route(SETUP_BY_TRANSPORT);</div>
          <div>                if(!t_is_set("failure_route"))
            t_on_failure("MANAGE_FAILURE");</div>
          <div>        }</div>
          <div>        if (!t_relay()) {</div>
          <div>                sl_reply_error();</div>
          <div>        }</div>
          <div>        exit;</div>
          <div>}</div>
          <div><br>
          </div>
          <div>route[SETUP_BY_TRANSPORT] {</div>
          <div><br>
          </div>
          <div>        if ($ru =~ "transport=ws") {</div>
          <div>                xlog("L_INFO", "Request going to WS");</div>
          <div>                if(sdp_with_transport("RTP/SAVPF")) {</div>
          <div>                        rtpengine_manage("rtcp-mux-demux
            trust-address replace-origin replace-session-connection
            ICE=force DTLS=passive");</div>
          <div>                        t_on_reply("REPLY_WS_TO_WS");</div>
          <div>                        return;</div>
          <div>                }</div>
          <div><br>
          </div>
          <div>                #rtpengine_manage("rtcp-mux-demux
            trust-address replace-origin replace-session-connection
            ICE=force DTLS=passive RTP/SAVP");</div>
          <div>                t_on_reply("REPLY_FROM_WS");</div>
          <div>        }</div>
          <div>        else if ($proto =~ "ws") {</div>
          <div>                xlog("L_INFO", "Request coming from WS");</div>
          <div>                rtpengine_manage("rtcp-mux-demux
            trust-address replace-origin replace-session-connection
            ICE=remove DTLS=passive RTP/SAVP");</div>
          <div>                t_on_reply("REPLY_TO_WS");</div>
          <div>        }</div>
          <div>        else {</div>
          <div>                xlog("L_INFO", "This is a classic phone
            call");</div>
          <div>                rtpengine_manage("replace-origin
            replace-session-connection");</div>
          <div>                t_on_reply("MANAGE_CLASSIC_REPLY");</div>
          <div>        }</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>Thanks for any help!</div>
        <div>-Don</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>