Hello Sergio, I'm trying the location method but can't seem to work. 
I have this code:
modparam("registrar", "method_filtering", 1)
modparam("registrar", "append_branches", 0)
modparam("registrar", "max_contacts", 10)
modparam("registrar", "max_expires", 3600)
modparam("registrar", "gruu_enabled", 0)

            xlog("L_WARN", "[REQUEST] R-URI User: $fu, Domain: $du\n");
            # Try to lookup the user location
            if (!lookup("location")) {
                xlog("L_WARN", "[REQUEST] Location lookup failed for user: 
$tU\n");
                t_newtran();
                send_reply("404", "User Not Found");
                exit;
            }
And this inside kamcmd ul.dump
{
        Domains: {
                Domain: {
                        Domain: location
                        Size: 1024
                        AoRs: {
                                Info: {
                                        AoR: user1
                                        HashID: 2079352211
                                        Contacts: {
                                                Contact: {
                                                        Address: 
sip:[email protected]
                                                        Expires: 408
                                                        Q: -1
                                                        Call-ID: 
nl90f1bhf5lv9jt79dp4
                                                        CSeq: 4
                                                        User-Agent: n/a
                                                        Received: 
sip:172.31.208.1:61031;transport=ws
                                                        Path: [not set]
                                                        State: CS_NEW
                                                        Flags: 0
                                                        CFlags: 0
                                                        Socket: 
udp:10.5.0.8:5001
                                                        Methods: -1
                                                        Ruid: uloc-68addea4-31-1
                                                        Instance: [not set]
                                                        Reg-Id: 0
                                                        Server-Id: 0
                                                        Tcpconn-Id: -1
                                                        Keepalive: 0
                                                        Last-Keepalive: 
1756225263
                                                        KA-Roundtrip: 0
                                                        Last-Modified: 
1756225263
                                                }
                                        }
                                }
                        }
                        Stats: {
                                Records: 1
                                Max-Slots: 1
                        }
                }
        }
}
and this logs:
(49) WARNING: <script>: [REQUEST] MESSAGE from Asterisk (10.5.0.2), attempting 
location lookup for User1
 4(49) WARNING: <script>: [REQUEST] R-URI User: sip:[email protected], 
Domain: <null>
 4(49) WARNING: <script>: [REQUEST] Location lookup failed for user: User1

Thank you for the help.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- 
[email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to