Hey Daniel,

Thanks for replying, i inserted the user in the wrong db, once i inserted it on the right one, registration worked nicely.

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.

For unauthenticated providers (ip based auth) i simply do something like:

$du = "sip:9.7.5.3:5060";
route(RELAY);
exit;

But in this case that doesn't work, as kamailio is forwarding:

INVITE sip:+19542281168@my.proxy.com SIP/2.0
Via: SIP/2.0/UDP 1.2.3.4:5080;rport;branch=z9hG4bK2DyQar9rreKpB
Max-Forwards: 70
From: "" <sip:3052974476@1.2.3.4>;tag=Zt9X7ecBSXj1p
To: <sip:+19542281168@my.proxy.com>
Call-ID: 8b1cc792-386c-1237-fd85-0a84c19b4018
CSeq: 128440667 INVITE
Contact: <sip:gw+myprovider@1.2.3.4:5080;transport=udp;gw=myprovider>
User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 599
X-destination: myprovider
X-FS-Support: update_display,send_info
Remote-Party-ID: <sip:3052974476@1.2.3.4>;party=calling;screen=yes;privacy=off


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  my.proxy.com to myprovider.com?

i'm not clear at all how to do this...

Appreciate your help!

Regards,

David Villasmil
phone: +34669448337


On Fri, Sep 21, 2018 at 8:33 AM Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

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.

Cheers,
Daniel


On 21.09.18 03:15, David Villasmil wrote:
Hello guys

On my working config, i enabled uac like so:

loadmodule "uac.so"

...

modparam("uac", "reg_db_url", DBURL)
modparam("uac", "reg_db_table", "uacreg")
modparam("uac", "reg_contact_addr", "test-proxy.singlecomm.com")

...

And i added a user to the uacreg table:

id,l_uuid,l_username,l_domain,r_username,r_domain,realm,auth_username,auth_password,auth_ha1,auth_proxy,expires,flags,reg_delay
1,10001,myuser,test-proxy.test.com,myuser,myprovider.com,myprovider.com,myuser,mypass,,sip:myprovider.com,300,0,0


But it's not trying to register, and when i do:

#> kamcmd uac.reg_info l_uuid 10001

I get:

error: 404 - Record not found


What am I doing wrong?

Regards,

David Villasmil
phone: +34669448337


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com