[SR-Users] DMQ - Failed to get domain

Charles Chance charles.chance at sipcentric.com
Wed Sep 12 13:06:21 CEST 2018


On Fri, 7 Sep 2018 at 14:40, Daniel W. Graham <dan at cmsinter.net> wrote:

> My intent is to run in memory only except on one node which writes to
> database for reporting use.
>
>
>
> If this is not possible I will use an alternate for the database host.
>
>
>

It is possible, although you should use mode 1 or 2. Mode 3 is DB only and
4 only reads on startup (nothing written).


> Just to note, same issue is present for dialog module, in this case
> dialogs sync fine but nothing is written to the database.
>
> ….
>
> modparam("dialog", "enable_dmq", 1)
>
> modparam("dialog", "db_mode", 1) ----(Set to 0 on sender)
>
> ….
>

>
> Contact replication is still not working though, even with db_mode=4 on
> both nodes, still getting:
>
> ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain
>
>
>
> # kamctl ul show
>
> {
>
>   "jsonrpc":  "2.0",
>
>   "result": {
>
>     "Domains":  []
>
>   },
>
>   "id": 1366
>
> }
>
>
>

I suspect here is your issue - although it's difficult to know based on the
information provided why there are no domains in the list.

Was this command issued on the sender or receiver? If the receiver, do you
have a call to save() in your config? I believe this is parsed at startup
to determine which domains to create in memory - so realistically, the
configs on all nodes should be identical (or at least contain the same
REGISTER handling logic).

Otherwise, did you have this working without DMQ replication (i.e.
replicating via DB only)?

Cheers,

Charles

-- 
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/20180912/28a82c2a/attachment.html>


More information about the sr-users mailing list