Hi sorry to mention the version, but I'm using kamailio v5.6.1. But the doc seems to be the same at devel/
rgds,
Loi Dang Thanh
Phone : +84. 774.735.448
Email : loi.dangthanh@gmail.com


On Mon, Jun 3, 2024 at 2:52 PM Lợi Đặng <loi.dangthanh@gmail.com> wrote:
Hi, I'm setting up shared user location for 2 instances of kamailio via dmq_usrloc.
Everything seems fine except my setup is multi-domains.
The issue arises when the producer node produces the Contact of domain X, Contact of domain Y  separately, but the consumer node stores both as the Contact of domain Y (seen in kamcmd ul.dump), in which Y is set in usrloc_domain.
modparam("dmq_usrloc", "usrloc_domain", "{{domain_Y}}")
modparam("usrloc", "use_domain", 1)
====
I had a quick ngrep and see the domain was put in the "aor" key of the body in KMQ message for usrloc
{"action":1,"aor":"test_username_0dppxcl@$domain_X"}
But I'm not sure how to make my consumer node to store the contact in appropriate domain.

Any help will be appreciated. 
Thanks and regards,
Loi Dang Thanh
Phone : +84. 774.735.448
Email : loi.dangthanh@gmail.com