Hello, Which version of Kamailio?
What is the output of 'kamcmd dmq.list_nodes'? Cheers, Charles On 24 August 2017 at 11:02, Aleksandar Sosic <[email protected]> wrote: > Hi everyone, > > we're trying to make work usrloc over dmq without a db on our nodes. > > Our `kamailio.cfg` code to make it work on the nodes is like this: > ``` > ... > loadmodule "usrloc.so" > ... > loadmodule "dmq.so" > loadmodule "dmq_usrloc.so" > ... > modparam("dmq", "server_address", DMQ_ADDRESS) > modparam("dmq", "notification_address", "sip:routers.ourcloud.com:5060") > modparam("dmq", "multi_notify", 1) > modparam("dmq", "num_workers", 4) > modparam("dmq_usrloc", "enable", 1) > modparam("dmq_usrloc", "sync", 1) > ``` > > Where `DMQ_ADDRESS="sip:<some_address>:5060"` is the public IP address > of the running node. > > `nslookup` of `routers.ourcloud.com`: > ```➜ ~ nslookup routers.ourcloud.com > Server: 8.8.8.8 > Address: 8.8.8.8#53 > > Non-authoritative answer: > Name: rrouters.ourcloud.com > Address: <IP1> > Name: routers.ourcloud.com > Address: <IP2> > ``` > and obviously IP1 and IP2 are pubblic IPs of kamailio nodes that > respond to my pings. > > When i register a client to node IP1 it's ul dump is: > ``` > { > "jsonrpc": "2.0", > "result": { > "Domain": "location", > "Size": 1024, > "AoRs": [{ > "Info": { > "AoR": "0409828030", > "HashID": 1970914268, > "Contacts": [{ > "Contact": { > "Address": "sip:[email protected]:56328;ob", > "Expires": 289, > "Q": -1, > "Call-ID": "5mclwiX4oYAVK0z-iT7M0p9RBX5-02g6", > "CSeq": 59427, > "User-Agent": "Telephone 1.2.6", > "Received": "sip:<PROXY_IP>:5060", > "Path": "[not set]", > "State": "CS_NEW", > "Flags": 0, > "CFlags": 192, > "Socket": "udp:<IP1>:5060", > "Methods": 8159, > "Ruid": "uloc-599d8fa8-f-1", > "Instance": "[not set]", > "Reg-Id": 0, > "Last-Keepalive": 1503498176, > "Last-Modified": 1503498176 > } > }] > } > }], > "Stats": { > "Records": 1, > "Max-Slots": 1 > } > }, > "id": 1 > } > ``` > > On node with IP2 the ul dump is: > ``` > { > "jsonrpc": "2.0", > "result": { > "Domain": "location", > "Size": 1024, > "AoRs": [], > "Stats": { > "Records": 0, > "Max-Slots": 0 > } > }, > "id": 1 > } > ``` > What are we doing wrong? Are we missing something? > -- > Aleksandar Sosic > mail: [email protected] > skype: alex.sosic > cell: +385 91 2505 146 > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- *Charles Chance* Managing Director t. 0330 120 1200 m. 07932 063 891 -- Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
