<div dir="ltr"><div dir="ltr"><div dir="ltr">Hey Daniel,<div><br></div><div>Thanks for replying, i inserted the user in the wrong db, once i inserted it on the right one, registration worked nicely.</div><div><br></div><div>If you don't mind, now i'm trying to forward a call from a freeswitch coming to the proxy, over that authenticated session, but i'm not clear as to how that works.</div><div><br></div><div>For unauthenticated providers (ip based auth) i simply do something like:</div><div><br></div><div><div><span style="white-space:pre">                 </span>$du = "sip:<a href="http://9.7.5.3:5060">9.7.5.3:5060</a>";</div><div><span style="white-space:pre">                   </span>route(RELAY);</div><div><span style="white-space:pre">                 </span>exit;</div></div><div><br></div><div>But in this case that doesn't work, as kamailio is forwarding:</div><div><br></div><div><div>INVITE <a href="mailto:sip%3A%2B19542281168@my.proxy.com">sip:+19542281168@my.proxy.com</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 1.2.3.4:5080;rport;branch=z9hG4bK2DyQar9rreKpB</div><div>Max-Forwards: 70</div><div>From: "" <<a href="mailto:sip%3A3052974476@1.2.3.4">sip:3052974476@1.2.3.4</a>>;tag=Zt9X7ecBSXj1p</div><div>To: <<a href="mailto:sip%3A%2B19542281168@my.proxy.com">sip:+19542281168@my.proxy.com</a>></div><div>Call-ID: 8b1cc792-386c-1237-fd85-0a84c19b4018</div><div>CSeq: 128440667 INVITE</div><div>Contact: <sip:gw+myprovider@1.2.3.4:5080;transport=udp;gw=myprovider></div><div>User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit</div><div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</div><div>Supported: timer, path, replaces</div><div>Allow-Events: talk, hold, conference, refer</div><div>Content-Type: application/sdp</div><div>Content-Disposition: session</div><div>Content-Length: 599</div><div>X-destination: myprovider</div><div>X-FS-Support: update_display,send_info</div><div>Remote-Party-ID: <<a href="mailto:sip%3A3052974476@1.2.3.4">sip:3052974476@1.2.3.4</a>>;party=calling;screen=yes;privacy=off</div></div><div><br></div><div><br></div><div>and the provider is not even replying with a 100, i guess because nothing looks like it's for them. I supposed i need to change all from  <a href="http://my.proxy.com">my.proxy.com</a> to <a href="http://myprovider.com">myprovider.com</a>?</div><div><br></div><div>i'm not clear at all how to do this...</div><div><br></div><div>Appreciate your help!</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=5ef65fa0-80fe-4e67-ad0c-08cceb3c43e8"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018 at 8:33 AM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>can you send all the logs printed by kamailio with debug=3? The
      ones from kamailio startup are also relevant to see if there is
      any message saying that the record was ignored. So start kamailio,
      execute the rpc command and send all those logs.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="m_-5507635591223949236moz-cite-prefix">On 21.09.18 03:15, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">Hello guys
                <div><br>
                </div>
                <div>On my working config, i enabled uac like so:</div>
                <div><br>
                </div>
                <div>
                  <div><font face="monospace, monospace">loadmodule
                      "uac.so"</font></div>
                  <div><font face="monospace, monospace"><br>
                    </font></div>
                  <div><font face="monospace, monospace">...</font></div>
                  <div><font face="monospace, monospace"><br>
                    </font></div>
                  <div><font face="monospace, monospace">modparam("uac",
                      "reg_db_url", DBURL)</font></div>
                  <div><font face="monospace, monospace">modparam("uac",
                      "reg_db_table", "uacreg")</font></div>
                  <div><font face="monospace, monospace">modparam("uac",
                      "reg_contact_addr", "<a href="http://test-proxy.singlecomm.com" target="_blank">test-proxy.singlecomm.com</a>")</font></div>
                  <div><font face="monospace, monospace"><br>
                    </font></div>
                  <div><font face="monospace, monospace">...</font></div>
                  <div><br>
                  </div>
                </div>
                <div>And i added a user to the uacreg table:</div>
                <div><font face="monospace, monospace"><br>
                  </font></div>
                <div>
                  <div><font face="monospace, monospace">id,l_uuid,l_username,l_domain,r_username,r_domain,realm,auth_username,auth_password,auth_ha1,auth_proxy,expires,flags,reg_delay</font></div>
                  <div><font face="monospace, monospace">1,10001,myuser,<a href="http://test-proxy.test.com" target="_blank">test-proxy.test.com</a>,myuser,<a href="http://myprovider.com" target="_blank">myprovider.com</a>,<a href="http://myprovider.com" target="_blank">myprovider.com</a>,myuser,mypass,,sip:<a href="http://myprovider.com" target="_blank">myprovider.com</a>,300,0,0</font></div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>But it's not trying to register, and when i do:</div>
                <div><br>
                </div>
                <div><font face="monospace, monospace">#> kamcmd
                    uac.reg_info l_uuid 10001<br>
                  </font></div>
                <div><font face="monospace, monospace"><br>
                  </font></div>
                <div>I get:<font face="monospace, monospace"><br>
                  </font></div>
                <div><font face="monospace, monospace"><br>
                  </font></div>
                <div><font face="monospace, monospace">error: 404 -
                    Record not found<br>
                  </font></div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>What am I doing wrong?</div>
                <div><br clear="all">
                  <div>
                    <div dir="ltr" class="m_-5507635591223949236gmail_signature">
                      <div dir="ltr">
                        <div>Regards,</div>
                        <div><br>
                        </div>
                        David Villasmil
                        <div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
                        <div>phone: +34669448337</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=5cf832a9-6a0d-4a26-ad9a-0f81c0c6efff"><font size="1" color="#ffffff">ᐧ</font></div>
      <br>
      <fieldset class="m_-5507635591223949236mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="m_-5507635591223949236moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-5507635591223949236moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="m_-5507635591223949236moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="m_-5507635591223949236moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="m_-5507635591223949236moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-5507635591223949236moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="m_-5507635591223949236moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="m_-5507635591223949236moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
  </div>

</blockquote></div>