[SR-Users] DMQ - Failed to get domain
Daniel W. Graham
dan at cmsinter.net
Thu Sep 6 20:13:09 CEST 2018
Correction:
if (!save("location", "0x02")) {
…..
-dan
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Daniel W. Graham
Sent: Thursday, September 6, 2018 1:59 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] DMQ - Failed to get domain
v 5.1.5
modparam("dmq", "server_address", "sip:x.x.x.x:5060")
modparam("dmq", "notification_address", "sip:y.y.y.y:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 2)
modparam("dmq", "worker_usleep", 0)
modparam("dmq", "ping_interval", 90)
modparam("dmq_usrloc", "enable", 1)
modparam("dmq_usrloc", "sync", 0)
modparam("dmq_usrloc", "usrloc_domain", "location")
My initial assumption was that dmq_handle_message() handled everything.
I have since added
if (dmq_is_from_node()) {
if (!save("location")) {
xlogl("L_ERR", "Error saving contact\n");
}
}
Now results in:
ERROR: <core> [db.c:463]: db_use_table(): invalid parameter value
ERROR: usrloc [udomain.c:631]: db_load_urecord(): failed to use table location
ERROR: <core> [db.c:463]: db_use_table(): invalid parameter value
ERROR: usrloc [ucontact.c:679]: db_insert_ucontact(): sql use_table failed
ERROR: usrloc [urecord.c:582]: insert_ucontact(): failed to insert in database
-dan
From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at lists.kamailio.org>> On Behalf Of Charles Chance
Sent: Thursday, September 6, 2018 6:01 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Subject: Re: [SR-Users] DMQ - Failed to get domain
Hi Dan,
Which version are you using?
Can you share your dmq_usrloc mod params and also your call to the save() function?
Cheers,
Charles
On Thu, 6 Sep 2018 at 05:14, Daniel W. Graham <dan at cmsinter.net<mailto:dan at cmsinter.net>> wrote:
Receiving the following message on the node receiving usr_loc via DMQ, for each location received:
DEBUG: dmq [worker.c:87]: worker_loop(): dmq_worker [0 54958] lock acquired
DEBUG: dmq_usrloc [usrloc_sync.c:460]: usrloc_dmq_handle_msg(): dmq message received from sip:usrloc at x.x.x.x
DEBUG: dmq_usrloc [usrloc_sync.c:405]: usrloc_dmq_execute_action(): Received DMQ_UPDATE. Update contact info...
ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain
Any input is appreciated.
Thanks,
-dan
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180906/1ee58b20/attachment.html>
More information about the sr-users
mailing list