In the output of "kamcmd dmq.list_nodes" i see nodes twice. One with ip address of the host and one with the hostname of the host.

Jan

On Thu, Sep 27, 2018 at 12:47 PM Jan Hazenberg <jenus321@gmail.com> wrote:
Daniel,

It indeed sends duplicate DMQ messages, one to the ip of the other node and one to the hostname of the other node. 

Unknown request: KDMQ sip:dialog@sip04.voip.domain.acc:5060 |  (application/json)
Unknown request: KDMQ sip:dialog@10.10.10.12:5060 |  (application/json)

Is there any way to disable this?

Thanks,

Jan


On Thu, Sep 27, 2018 at 11:50 AM Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

the log message says that the dialog was already added to the timer. Do you see retransmissions of the DMQ requests on the network with ngrep/wireshark/...?

Cheers,
Daniel

On 27.09.18 10:40, Jan Hazenberg wrote:
Hello,

I'm trying to replicate active dialogs using the DMQ module. I see the dialogs on the other nodes but it generates a error message in the logs on all the nodes:

Sep 27 10:17:31 sip04 /usr/sbin/kamailio[27367]: CRITICAL: dialog [dlg_timer.c:130]: insert_dlg_timer(): Trying to insert a bogus dlg tl=0x7efdca1bebf8 tl->next=0x7efdca14cb80 tl->prev=0x7efdca14cb80
Sep 27 10:17:31 sip04 /usr/sbin/kamailio[27367]: CRITICAL: dialog [dlg_dmq.c:309]: dlg_dmq_handle_msg(): Unable to insert dlg timer 0x7efdca1beb98 [2643:3725]

Even with the timeout_avp option disabled i still see the error messages. I tested this on kamailio 5.0.3 and 5.1.3 with the same results.

With debug enabled i see the correct data is replicated to the other nodes:

dlg_dmq_replicate_action(): sending serialized data {"action":2,"h_entry":1328,"h_id":409,"state":4,"start_ts":1538036606,"lifetime":7200,"tag1":"1635359980","tag2":"as2d80799c","cseq1":"21","cseq2":"0","route_set1":"","route_set2":"","contact1":"sip:sipuser@10.10.10.10:1057;alias=10.10.10.10~1055~1","contact2":"sip:+31101234567@10.10.10.10:5060"}

"lifetime":7200 is in the serialized data, and when i check on the other node with "kamcmd dlg.list" i see that the lifetime data is not updated.


Thanks,

Jan


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com