[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    [SR-Users] Incompatibility of the DMQ htable protocol with older Kamailio versions
From:       Denys Pozniak via sr-users <sr-users () lists ! kamailio ! org>
Date:       2023-11-29 11:51:00
Message-ID: CA+x3AxqaeiMK3H23b4XoNTzAMk4DJGmvXSGYCQeumSK7Z_sVvw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello!

I noticed that there are differences in the DMQ htable replication protocol
for the old version of Kamailio 5.2 and the new 5.7.
For example, the new version uses action 2 when updating values and action
4 to remove.
The old Kamailio version uses the values 1 and 3 respectively.

Well, as a result, the htable data is not shared between such nodes, plus
there are errors in the syslog of the old version:
ERROR: htable [ht_dmq.c:328]: ht_dmq_handle_msg(): failed to replay action

It would probably be worth introducing some kind of DMQ htable protocol
versioning to maintain compatibility?
And is there any option to make them work together (I wouldn't really want
to change the action number in sip/sdp/json on the fly)?

Kamialio 5.2
{"action":1,"htname":"shared","cname":"user","type":2,"strval":"uri","mode":1}
{"action":3,"htname":"shared","cname":"user","mode":0}

Kamailio 5.7
{"action":2,"htname":"shared","cname":"user","type":2,"strval":"uri","mode":1}
{"action":4,"htname":"shared","cname":"user","mode":0}
-- 

BR,
Denys Pozniak

[Attachment #5 (text/html)]

<div dir="ltr">Hello!<div><br></div><div>I noticed that there are differences in the \
DMQ htable replication protocol for the old version of Kamailio 5.2 and the new \
5.7.<br>For example, the new version uses action 2 when updating values and action 4 \
to remove.</div><div>The old Kamailio version uses the values 1 and 3 \
respectively.<br></div><div><br></div><div>Well, as a result, the htable data is not \
shared between such nodes, plus there are errors in the syslog of the old \
version:<br></div><div>ERROR: htable [ht_dmq.c:328]: ht_dmq_handle_msg(): failed to \
replay action<br></div><div><div><br></div><div>It would probably be worth \
introducing some kind of DMQ htable protocol versioning to maintain \
compatibility?<br>And is there any option to make them work together (I wouldn't \
really want to change the action number in sip/sdp/json on the \
fly)?<br></div><div><br></div><div>Kamialio \
5.2<br></div>{&quot;action&quot;:1,&quot;htname&quot;:&quot;shared&quot;,&quot;cname&q \
uot;:&quot;user&quot;,&quot;type&quot;:2,&quot;strval&quot;:&quot;uri&quot;,&quot;mode \
&quot;:1}<br>{&quot;action&quot;:3,&quot;htname&quot;:&quot;shared&quot;,&quot;cname&quot;:&quot;user&quot;,&quot;mode&quot;:0}<br><br>Kamailio \
5.7<br>{&quot;action&quot;:2,&quot;htname&quot;:&quot;shared&quot;,&quot;cname&quot;:& \
quot;user&quot;,&quot;type&quot;:2,&quot;strval&quot;:&quot;uri&quot;,&quot;mode&quot; \
:1}<br>{&quot;action&quot;:4,&quot;htname&quot;:&quot;shared&quot;,&quot;cname&quot;:&quot;user&quot;,&quot;mode&quot;:0}<br><span \
class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys \
Pozniak<br></div><div><br></div><div><br></div></div></div></div></div></div>



__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic