<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I haven't time to look at the traces and code, but be sure that you
    don't do any fixing to contact address when receiving traffic from
    the other proxy. The first proxy should do that.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 23/09/14 23:07, Bruno Emer wrote:<br>
    </div>
    <blockquote
cite="mid:CANSN5OWo+DzhOg=GTw7RgBsg-rkCD3n8pyciZ0n+euRXugb1wQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Guys!
        <div><br>
        </div>
        <div>Good news about my tests here!</div>
        <div>I found some configurations relative to Outbound proxy and
          I get this working. Now, I can have two outbound proxies, one
          registrar and one database. I can register one user in the
          Outbound Proxy1 and one user in Outbound Proxy 2 and place a
          call between these users.</div>
        <div><br>
        </div>
        <div>But now I'm facing another problem! The ACK messages are
          not being delivered, so the session is being dropped after a
          few seconds. I think that the problem is in the Contact field.
          Trying to investigate it now!</div>
        <div><br>
        </div>
        <div>I'm not sure about how to change the message to deliver the
          ACK. Did someone had this problem before?</div>
        <div><br>
        </div>
        <div>In anycase, here is the routing configuration that I'm
          using in my Oubound proxy:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>request_route {</div>
          <div><span class="" style="white-space:pre"> </span>if (($Rp
            == MY_WS_PORT || $Rp == MY_WSS_PORT)</div>
          <div><span class="" style="white-space:pre"> </span>&&
            !(proto == WS || proto == WSS)) {</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_WARN",
            "SIP request received on $Rp\n");</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("403",
            "Forbidden");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>route(REQINIT);</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            (is_method("CANCEL")) {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (t_check_trans()) {</div>
          <div><span class="" style="white-space:pre"> </span>route(RELAY);</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>route(WITHINDLG);</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>t_check_trans();</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            (is_method("REGISTER")) {</div>
          <div><span class="" style="white-space:pre"> </span>remove_hf("Route");</div>
          <div><span class="" style="white-space:pre"> </span>add_path();</div>
          <div><span class="" style="white-space:pre"> </span>$du =
            <a class="moz-txt-link-rfc2396E" href="sip:REGISTRAR_IP:REGISTRAR_PORT">"sip:REGISTRAR_IP:REGISTRAR_PORT"</a>;</div>
          <div><span class="" style="white-space:pre"> </span>} else {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (is_method("INVITE|SUBSCRIBE|ACK"))</div>
          <div><span class="" style="white-space:pre"> </span>record_route();</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            (@via[2] == "") {</div>
          <div><span class="" style="white-space:pre"> </span># From
            client so route to registrar...</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if ($rU
            == $null) {</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("484",
            "Address Incomplete");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>remove_hf("Route");</div>
          <div><span class="" style="white-space:pre"> </span>$du =
            <a class="moz-txt-link-rfc2396E" href="sip:REGISTRAR_IP:REGISTRAR_PORT">"sip:REGISTRAR_IP:REGISTRAR_PORT"</a>;</div>
          <div><span class="" style="white-space:pre"> </span>} else {</div>
          <div><span class="" style="white-space:pre"> </span># From
            registrar so route using "Route:" headers...</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            (!loose_route()) {</div>
          <div><span class="" style="white-space:pre"> </span>switch($rc)
            {</div>
          <div><span class="" style="white-space:pre"> </span>case -2:</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("403",
            "Forbidden");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>default:</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_ERR",
            "in request_route\n");</div>
          <div><span class="" style="white-space:pre"> </span>sl_reply_error();</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>t_on_failure("FAIL_OUTBOUND");</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>route(RELAY);</div>
          <div>}</div>
          <div><br>
          </div>
          <div>route[RELAY] {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (!t_relay()) {</div>
          <div><span class="" style="white-space:pre"> </span>sl_reply_error();</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div>}</div>
          <div><br>
          </div>
          <div>route[REQINIT] {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (!mf_process_maxfwd_header("10")) {</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("483","Too
            Many Hops");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if(!sanity_check("1511",
            "7"))</div>
          <div><span class="" style="white-space:pre"> </span>{</div>
          <div><span class="" style="white-space:pre"> </span>xlog("Malformed
            SIP message from $si:$sp\n");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div>}</div>
          <div><br>
          </div>
          <div>route[WITHINDLG] {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (has_totag()) {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (!loose_route()) {</div>
          <div><span class="" style="white-space:pre"> </span>switch($rc)
            {</div>
          <div><span class="" style="white-space:pre"> </span>case -2:</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("403",
            "Forbidden");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>default:</div>
          <div><span class="" style="white-space:pre"> </span>if
            (is_method("ACK")) {</div>
          <div><span class="" style="white-space:pre"> </span>if (
            t_check_trans() ) {</div>
          <div><span class="" style="white-space:pre"> </span>
            record_route();</div>
          <div><span class="" style="white-space:pre"> </span>
            route(RELAY);</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>} else {</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>sl_send_reply("404","Not
            Found");</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>} else {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (is_method("NOTIFY")) {</div>
          <div><span class="" style="white-space:pre"> </span>record_route();</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>route(RELAY);</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div>}</div>
          <div><br>
          </div>
          <div>onreply_route {</div>
          <div><span class="" style="white-space:pre"> </span>if (($Rp
            == MY_WS_PORT || $Rp == MY_WSS_PORT)</div>
          <div><span class="" style="white-space:pre"> </span>&&
            !(proto == WS || proto == WSS)) {</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_WARN",
            "SIP response received on $Rp\n");</div>
          <div><span class="" style="white-space:pre"> </span>drop;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            (!t_check_trans()) {</div>
          <div><span class="" style="white-space:pre"> </span>drop;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if ($rm
            == "REGISTER" && $rs >= 200 && $rs <=
            299) {</div>
          <div><span class="" style="white-space:pre"> </span>remove_hf("Flow-Timer");</div>
          <div><span class="" style="white-space:pre"> </span>if
            ($(hdr(Require)[*])=~"outbound")</div>
          <div><span class="" style="white-space:pre"> </span>insert_hf("Flow-Timer:
            FLOW_TIMER\r\n", "Call-ID");</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div>}</div>
          <div><br>
          </div>
          <div>failure_route[FAIL_OUTBOUND] {</div>
          <div><span class="" style="white-space:pre"> </span>if
            (t_branch_timeout() || !t_branch_replied()) {</div>
          <div><span class="" style="white-space:pre"> </span>send_reply("430",
            "Flow Failed");</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div>}</div>
          <div><br>
          </div>
          <div>event_route[xhttp:request] {</div>
          <div><span class="" style="white-space:pre"> </span>set_reply_close();</div>
          <div><span class="" style="white-space:pre"> </span>set_reply_no_connect();</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if ($Rp
            != MY_WS_PORT</div>
          <div>#!ifdef WITH_TLS</div>
          <div><span class="" style="white-space:pre"> </span>&&
            $Rp != MY_WSS_PORT</div>
          <div>#!endif</div>
          <div><span class="" style="white-space:pre"> </span>) {</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_WARN",
            "HTTP request received on $Rp\n");</div>
          <div><span class="" style="white-space:pre"> </span>xhttp_reply("403",
            "Forbidden", "", "");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_DBG",
            "HTTP Request Received\n");</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>if
            ($hdr(Upgrade)=~"websocket"</div>
          <div><span class="" style="white-space:pre"> </span>&&
            $hdr(Connection)=~"Upgrade"</div>
          <div><span class="" style="white-space:pre"> </span>&&
            $rm=~"GET") {</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>#
            Validate Host - make sure the client is using the correct</div>
          <div><span class="" style="white-space:pre"> </span># alias
            for WebSockets</div>
          <div><span class="" style="white-space:pre"> </span>if
            ($hdr(Host) == $null || !is_myself("sip:" + $hdr(Host))) {</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_WARN",
            "Bad host $hdr(Host)\n");</div>
          <div><span class="" style="white-space:pre"> </span>xhttp_reply("403",
            "Forbidden", "", "");</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>#
            Optional... validate Origin - make sure the client is from
            an</div>
          <div><span class="" style="white-space:pre"> </span>#
            authorised website.  For example,</div>
          <div><span class="" style="white-space:pre"> </span>#</div>
          <div><span class="" style="white-space:pre"> </span># if
            ($hdr(Origin) != "<a moz-do-not-send="true"
              href="http://communicator.MY_DOMAIN">http://communicator.MY_DOMAIN</a>"</div>
          <div><span class="" style="white-space:pre"> </span>#    
            && $hdr(Origin) != "<a moz-do-not-send="true"
              href="https://communicator.MY_DOMAIN">https://communicator.MY_DOMAIN</a>")
            {</div>
          <div><span class="" style="white-space:pre"> </span>#<span
              class="" style="white-space:pre"> </span>xlog("L_WARN",
            "Unauthorised client $hdr(Origin)\n");</div>
          <div><span class="" style="white-space:pre"> </span>#<span
              class="" style="white-space:pre"> </span>xhttp_reply("403",
            "Forbidden", "", "");</div>
          <div><span class="" style="white-space:pre"> </span>#<span
              class="" style="white-space:pre"> </span>exit;</div>
          <div>                # }</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>#
            Optional... perform HTTP authentication</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>#
            ws_handle_handshake() exits (no further configuration file</div>
          <div><span class="" style="white-space:pre"> </span>#
            processing of the request) when complete.</div>
          <div><span class="" style="white-space:pre"> </span>if
            (ws_handle_handshake())</div>
          <div><span class="" style="white-space:pre"> </span>{</div>
          <div><span class="" style="white-space:pre"> </span>#
            Optional... cache some information about the</div>
          <div><span class="" style="white-space:pre"> </span>#
            successful connection</div>
          <div><span class="" style="white-space:pre"> </span>exit;</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div><span class="" style="white-space:pre"> </span>xhttp_reply("404",
            "Not Found", "", "");</div>
          <div>}</div>
          <div><br>
          </div>
          <div>event_route[websocket:closed] {</div>
          <div><span class="" style="white-space:pre"> </span>xlog("L_INFO",
            "WebSocket connection from $si:$sp has closed\n");</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks again!!!</div>
        <div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div dir="ltr">
                <div><span style="background-color:rgb(255,255,255)"><font
                      color="#000000"><strong style="font-family:Arial"><u><br>
                        </u></strong></font></span></div>
                <div><span style="background-color:rgb(255,255,255)"><font
                      color="#000000"><strong style="font-family:Arial"><u><br>
                        </u></strong></font></span></div>
                <div><span style="background-color:rgb(255,255,255)"><font
                      color="#000000"><strong style="font-family:Arial"><u>Bruno
                          Emer</u></strong></font></span></div>
                <div><font
                    style="font-size:small;font-family:sans-serif"
                    color="#00a1e6"><br>
                  </font></div>
                <div>Mobile: +55 11 96540-0044 </div>
                <div>email: <a moz-do-not-send="true"
                    href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div>
                <div><span
                    style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a
                      moz-do-not-send="true"
                      href="https://www.facebook.com/bruno.emer.5"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/facebook.png"
                        style="border: none;" width="16"></a><span
                      style="font-size:small"> </span><a
                      moz-do-not-send="true"
                      href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/linkedin.png"
                        style="border: none;" width="16"></a><span
                      style="font-size:small"> </span><a
                      moz-do-not-send="true"
                      href="https://twitter.com/brunoemer_"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/twitter.png"
                        style="border: none;" width="16"></a><span
                      style="font-size:small"> </span><a
                      moz-do-not-send="true"
                      href="https://www.flickr.com/photos/122070309@N03/"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/flickr.png"
                        style="border: none;" width="16"></a><span
                      style="font-size:small"> </span><a
                      moz-do-not-send="true"
                      href="http://google.com/+BrunoEmer"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/googleplus.png"
                        style="border: none;" width="16"></a><span
                      style="font-size:small"> </span><a
                      moz-do-not-send="true"
                      href="http://instagram.com/brunoemer_"
                      style="font-size:small;outline:none"
                      target="_blank"><img moz-do-not-send="true"
                        src="http://images.wisestamp.com/instagram.png"
                        style="border: none;" width="16"></a></div>
                </div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">2014-09-22 12:40 GMT-03:00 Bruno
              Emer <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a>></span>:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                <div dir="ltr">Hi, Daniel and Frank!
                  <div><br>
                  </div>
                  <div>Thanks for your support!</div>
                  <div>Now, I changed my scenario just a lil bit to make
                    it easy to understand and deploy. I'm doing the
                    following:</div>
                  <div><br>
                  </div>
                  <div>   1. Created a server using the "Outbound"
                    module configuration example, but add WebSocket
                    support in it. (IP Address 192.168.1.16)</div>
                  <div>   2. Created a server running as Proxy and
                    Registrar with WebSockets support. (IP Address
                    192.168.1.15)</div>
                  <div>   3. Registered two users (bob and <a
                      moz-do-not-send="true"
                      href="mailto:alice@enterprise.com" target="_blank">alice@enterprise.com</a>)
                    using WebRTC. These users sent they Register
                    requests to the Oubount server (192.168.1.16).</div>
                  <div>   4. I'm also using an external postgres
                    database to store the user informations. In my
                    proxy/registrar server, I've configurated
                    "modparam("usrloc", "db_mode", 3)", so it will not
                    store data in memory.</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>After register the users in my scenario, I can
                    see the following information stored in my database
                    (output of kamctl db show location):</div>
                  <div><br>
                  </div>
                  <div>
                    <div> id  |         ruid         | username |    
                      domain     |                    contact          
                                |       received        | path |      
                      expires       | q  |         callid         | cseq
                      |    last_modified    | flags | cflags |  
                       user_agent     |       socket        | methods |
                                         instance                     |
                      reg_id </div>
                    <div>-----+----------------------+----------+----------------+------------------------------------------------+-----------------------+------+---------------------+----+------------------------+------+---------------------+-------+--------+-------------------+---------------------+---------+-------------------------------------------------+--------</div>
                    <div> 277 | uloc-54203f71-10bd-2 | alice    | <a
                        moz-do-not-send="true"
                        href="http://enterprise.com" target="_blank">enterprise.com</a>
                      | <a class="moz-txt-link-freetext" href="sip:v4s0prah@o35ctmdnnruv.invalid;transport=ws">sip:v4s0prah@o35ctmdnnruv.invalid;transport=ws</a> |
                      sip:<a moz-do-not-send="true"
                        href="http://192.168.1.16:5060" target="_blank">192.168.1.16:5060</a>
                      |      | 2014-09-22 15:31:21 | -1 |
                      udb4shpe4dnm1jsl6016s5 |   82 | 2014-09-22
                      15:26:21 |     0 |      0 | JsSIP 0.4.0-devel |
                      udp:<a moz-do-not-send="true"
                        href="http://192.168.1.15:80" target="_blank">192.168.1.15:80</a>
                      |     783 |
                      <urn:uuid:75c837d1-740a-4c62-baa0-56a06149699e>
                      |      1</div>
                    <div> 278 | uloc-54203f71-10bc-2 | bob      | <a
                        moz-do-not-send="true"
                        href="http://enterprise.com" target="_blank">enterprise.com</a>
                      | <a class="moz-txt-link-freetext" href="sip:lr78s270@0mkf6fgtprlh.invalid;transport=ws">sip:lr78s270@0mkf6fgtprlh.invalid;transport=ws</a> |
                      sip:<a moz-do-not-send="true"
                        href="http://192.168.1.16:5060" target="_blank">192.168.1.16:5060</a>
                      |      | 2014-09-22 15:34:02 | -1 |
                      5mpl9q4bkuqsnpk8r316j5 |   82 | 2014-09-22
                      15:29:02 |     0 |      0 | JsSIP 0.4.0-devel |
                      udp:<a moz-do-not-send="true"
                        href="http://192.168.1.15:80" target="_blank">192.168.1.15:80</a>
                      |     783 |
                      <urn:uuid:e92ef911-1ae4-45b1-bfc9-b5752b0f2fe1>
                      |      1</div>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>So, I can assume that both users are registered
                    and ready to start sessions.</div>
                  <div><br>
                  </div>
                  <div>Now, when I try to start a new session between
                    then (let's say bob calling alice) what I get in the
                    endpoint is the following message:</div>
                  <div><br>
                  </div>
                  <div>
                    <div>SIP/2.0 500 I'm terribly sorry, server error
                      occurred (1/SL)</div>
                    <div>Via: SIP/2.0/WS
0mkf6fgtprlh.invalid;rport=33154;received=192.168.1.11;branch=z9hG4bK7711221</div>
                    <div>To: <<a moz-do-not-send="true"
                        href="mailto:sip%3Aalice@enterprise.com"
                        target="_blank">sip:alice@enterprise.com</a>>;tag=94c1b96a0e6eb467885b5057e1e49f9e.1970</div>
                    <div>From: <<a moz-do-not-send="true"
                        href="mailto:sip%3Abob@enterprise.com"
                        target="_blank">sip:bob@enterprise.com</a>>;tag=on056iipql</div>
                    <div>Call-ID: 5e1pmj2fppbgg13doi4k</div>
                    <div>CSeq: 3989 INVITE</div>
                    <div>Server: kamailio (4.1.5 (x86_64/linux))</div>
                    <div>Content-Length: 0</div>
                  </div>
                  <div><br>
                  </div>
                  <div>What I understood about this problem is that the
                    Proxy server is trying to forward the INVITE to the
                    Outbound server and this server does not know that
                    to do with this message - like forward it to alice. </div>
                  <div><br>
                  </div>
                  <div>I'm stucked in this step.</div>
                  <div><br>
                  </div>
                  <div>Here you can find the configuration files that
                    I'm using:</div>
                  <div><br>
                  </div>
                  <div>Outbound Server:</div>
                  <div><a moz-do-not-send="true"
href="https://mega.co.nz/#%21Wlw2RL7S%21G2YOP-1QbSCeNQddaAe3kyQMqz8yteZlZsAUpjZX4v4"
                      target="_blank">https://mega.co.nz/#!Wlw2RL7S!G2YOP-1QbSCeNQddaAe3kyQMqz8yteZlZsAUpjZX4v4</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div>Proxy Server:</div>
                  <div><a moz-do-not-send="true"
href="https://mega.co.nz/#%21qxAXTbbb%214zBjRtmADdl3rPCN2Yidd3xnZEjFahW3GSMb00w41xc"
                      target="_blank">https://mega.co.nz/#!qxAXTbbb!4zBjRtmADdl3rPCN2Yidd3xnZEjFahW3GSMb00w41xc</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>Thanks again!</div>
                  <div><br>
                  </div>
                  <div>Bruno Emer</div>
                </div>
                <div class="gmail_extra"><span class=""><br clear="all">
                    <div>
                      <div dir="ltr">
                        <div><span
                            style="background-color:rgb(255,255,255)"><font
                              color="#000000"><strong
                                style="font-family:Arial"><u><br>
                                </u></strong></font></span></div>
                        <div><span
                            style="background-color:rgb(255,255,255)"><font
                              color="#000000"><strong
                                style="font-family:Arial"><u><br>
                                </u></strong></font></span></div>
                        <div><span
                            style="background-color:rgb(255,255,255)"><font
                              color="#000000"><strong
                                style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div>
                        <div><font
                            style="font-size:small;font-family:sans-serif"
                            color="#00a1e6"><br>
                          </font></div>
                        <div>Mobile: <a moz-do-not-send="true"
                            href="tel:%2B55%2011%2096540-0044"
                            value="+5511965400044" target="_blank">+55
                            11 96540-0044</a> </div>
                        <div>email: <a moz-do-not-send="true"
                            href="mailto:brunoemer@gmail.com"
                            target="_blank">brunoemer@gmail.com</a></div>
                        <div><span
                            style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span>
                          <div
style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a
                              moz-do-not-send="true"
                              href="https://www.facebook.com/bruno.emer.5"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/facebook.png"
                                style="border: none;" width="16"></a><span
                              style="font-size:small"> </span><a
                              moz-do-not-send="true"
                              href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/linkedin.png"
                                style="border: none;" width="16"></a><span
                              style="font-size:small"> </span><a
                              moz-do-not-send="true"
                              href="https://twitter.com/brunoemer_"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/twitter.png"
                                style="border: none;" width="16"></a><span
                              style="font-size:small"> </span><a
                              moz-do-not-send="true"
                              href="https://www.flickr.com/photos/122070309@N03/"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/flickr.png"
                                style="border: none;" width="16"></a><span
                              style="font-size:small"> </span><a
                              moz-do-not-send="true"
                              href="http://google.com/+BrunoEmer"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/googleplus.png"
                                style="border: none;" width="16"></a><span
                              style="font-size:small"> </span><a
                              moz-do-not-send="true"
                              href="http://instagram.com/brunoemer_"
                              style="font-size:small;outline:none"
                              target="_blank"><img
                                moz-do-not-send="true"
                                src="http://images.wisestamp.com/instagram.png"
                                style="border: none;" width="16"></a></div>
                        </div>
                      </div>
                    </div>
                    <br>
                  </span>
                  <div class="gmail_quote">2014-09-18 18:04 GMT-03:00
                    Bruno Emer <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:brunoemer@gmail.com"
                        target="_blank">brunoemer@gmail.com</a>></span>:
                    <div>
                      <div class="h5"><br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                          <div dir="ltr">Ok, Daniel!
                            <div><br>
                            </div>
                            <div>I am trying exactly what you said, but
                              for some reason the proxy server can't
                              forward the message back to the WebSocket
                              server. I am getting "487 Unresolvable
                              destination". Appears that my Proxy Server
                              can't get data from usrloc.</div>
                            <div><br>
                            </div>
                            <div>When I register an user using WebRTC I
                              can see that the system stores the
                              information in kamailio database and in
                              the field "contact" it puts a string. The
                              Proxy server is looking in database and
                              just find this information. Actually, I'm
                              trying to understand the entire process
                              that envolves passing information from an
                              Edge Server to a Proxy server that sends
                              the Register information to another
                              Registrar server (as I described before).
                              The database is shared between all the
                              servers, and they are in the same
                              network. </div>
                            <div><br>
                            </div>
                            <div>I just read the information in another
                              topic, as you said, but I think that my
                              case is a lil bit different from it. I you
                              agree, I can post my configuration files
                              here. Maybe this can help another users
                              with the same problem!</div>
                            <div><br>
                            </div>
                            <div>Thanks again!!!</div>
                          </div>
                          <div class="gmail_extra"><span><br clear="all">
                              <div>
                                <div dir="ltr">
                                  <div><span
                                      style="background-color:rgb(255,255,255)"><font
                                        color="#000000"><strong
                                          style="font-family:Arial"><u><br>
                                          </u></strong></font></span></div>
                                  <div><span
                                      style="background-color:rgb(255,255,255)"><font
                                        color="#000000"><strong
                                          style="font-family:Arial"><u><br>
                                          </u></strong></font></span></div>
                                  <div><span
                                      style="background-color:rgb(255,255,255)"><font
                                        color="#000000"><strong
                                          style="font-family:Arial"><u>Bruno
                                            Emer</u></strong></font></span></div>
                                  <div><font
                                      style="font-size:small;font-family:sans-serif"
                                      color="#00a1e6"><br>
                                    </font></div>
                                  <div>Mobile: <a moz-do-not-send="true"
                                      href="tel:%2B55%2011%2096540-0044"
                                      value="+5511965400044"
                                      target="_blank">+55 11 96540-0044</a> </div>
                                  <div>email: <a moz-do-not-send="true"
                                      href="mailto:brunoemer@gmail.com"
                                      target="_blank">brunoemer@gmail.com</a></div>
                                  <div><span
                                      style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span>
                                    <div
style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a
                                        moz-do-not-send="true"
                                        href="https://www.facebook.com/bruno.emer.5"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/facebook.png"
                                          style="border: none;"
                                          width="16"></a><span
                                        style="font-size:small"> </span><a
                                        moz-do-not-send="true"
                                        href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/linkedin.png"
                                          style="border: none;"
                                          width="16"></a><span
                                        style="font-size:small"> </span><a
                                        moz-do-not-send="true"
                                        href="https://twitter.com/brunoemer_"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/twitter.png"
                                          style="border: none;"
                                          width="16"></a><span
                                        style="font-size:small"> </span><a
                                        moz-do-not-send="true"
                                        href="https://www.flickr.com/photos/122070309@N03/"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/flickr.png"
                                          style="border: none;"
                                          width="16"></a><span
                                        style="font-size:small"> </span><a
                                        moz-do-not-send="true"
                                        href="http://google.com/+BrunoEmer"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/googleplus.png"
                                          style="border: none;"
                                          width="16"></a><span
                                        style="font-size:small"> </span><a
                                        moz-do-not-send="true"
                                        href="http://instagram.com/brunoemer_"
style="font-size:small;outline:none" target="_blank"><img
                                          moz-do-not-send="true"
                                          src="http://images.wisestamp.com/instagram.png"
                                          style="border: none;"
                                          width="16"></a></div>
                                  </div>
                                </div>
                              </div>
                              <br>
                            </span>
                            <div class="gmail_quote">2014-09-17 9:13
                              GMT-03:00 Bruno Emer <span dir="ltr"><<a
                                  moz-do-not-send="true"
                                  href="mailto:brunoemer@gmail.com"
                                  target="_blank">brunoemer@gmail.com</a>></span>:
                              <div>
                                <div><br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                                    <div dir="ltr"><span
                                        style="font-family:arial,sans-serif;font-size:13px">Hello!</span>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px"><br>
                                      </div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px">I
                                        am relatively new to Kamailio
                                        and I'm trying to create a new
                                        enviroment using it in my
                                        company. I am thinking about use
                                        Amazon to host the servers and
                                        use OpsWorks to automatically
                                        escalate then if necessary. To
                                        accomplish this, my idea is to
                                        separate the servers, using one
                                        dedicated server to run as
                                        WebSocket, one to run as proxy
                                        and one as a Registrar. I'll be
                                        using just one database to store
                                        informations to all of my
                                        servers. With this, if I need
                                        more resources later, I can just
                                        create new servers with the
                                        specific roles (WebSockets,
                                        Proxy, Registrar).</div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px"><br>
                                      </div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px">By
                                        now, the idea is clear, but the
                                        point is that I don't know how
                                        to separate the WebSockets
                                        server from the proxy server.
                                        Actually, I can do this, but
                                        when I have one agent using a
                                        regular softphone and one agent
                                        using WebSockets (with JSSIP)
                                        they are not able to establish a
                                        session if the softphone user
                                        starts it. Now, I want to know
                                        if is there a way to use two
                                        websockets servers, register
                                        users using both of then and
                                        start sessions between then,
                                        with a separated proxy and
                                        registrar.</div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px"><br>
                                      </div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px">Has
                                        anyone done this before? Is
                                        possible to use kamailio like
                                        this?</div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px"><br>
                                      </div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px"><br>
                                      </div>
                                      <div
                                        style="font-family:arial,sans-serif;font-size:13px">Thanks.</div>
                                      <div><br>
                                      </div>
                                      <div>
                                        <div dir="ltr">
                                          <div><span
                                              style="background-color:rgb(255,255,255)"><font
                                                color="#000000"><strong
style="font-family:Arial"><u><br>
                                                  </u></strong></font></span></div>
                                          <div><span
                                              style="background-color:rgb(255,255,255)"><font
                                                color="#000000"><strong
style="font-family:Arial"><u><br>
                                                  </u></strong></font></span></div>
                                          <div><span
                                              style="background-color:rgb(255,255,255)"><font
                                                color="#000000"><strong
style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div>
                                          <div><font
                                              style="font-size:small;font-family:sans-serif"
                                              color="#00a1e6"><br>
                                            </font></div>
                                          <div>Mobile: <a
                                              moz-do-not-send="true"
                                              href="tel:%2B55%2011%2096540-0044"
                                              value="+5511965400044"
                                              target="_blank">+55 11
                                              96540-0044</a> </div>
                                          <div>email: <a
                                              moz-do-not-send="true"
                                              href="mailto:brunoemer@gmail.com"
                                              target="_blank">brunoemer@gmail.com</a></div>
                                          <div><span
                                              style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span>
                                            <div
style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a
                                                moz-do-not-send="true"
                                                href="https://www.facebook.com/bruno.emer.5"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/facebook.png" style="border: none;"
                                                  width="16"></a><span
                                                style="font-size:small"> </span><a
                                                moz-do-not-send="true"
                                                href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/linkedin.png" style="border: none;"
                                                  width="16"></a><span
                                                style="font-size:small"> </span><a
                                                moz-do-not-send="true"
                                                href="https://twitter.com/brunoemer_"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/twitter.png" style="border: none;"
                                                  width="16"></a><span
                                                style="font-size:small"> </span><a
                                                moz-do-not-send="true"
                                                href="https://www.flickr.com/photos/122070309@N03/"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/flickr.png" style="border: none;"
                                                  width="16"></a><span
                                                style="font-size:small"> </span><a
                                                moz-do-not-send="true"
                                                href="http://google.com/+BrunoEmer"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/googleplus.png" style="border: none;"
                                                  width="16"></a><span
                                                style="font-size:small"> </span><a
                                                moz-do-not-send="true"
                                                href="http://instagram.com/brunoemer_"
style="font-size:small;outline:none" target="_blank"><img
                                                  moz-do-not-send="true"
src="http://images.wisestamp.com/instagram.png" style="border: none;"
                                                  width="16"></a></div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                              </div>
                            </div>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                  <br>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </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>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
  </body>
</html>