Hello,
dmq is designed to work only between kamailio nodes that have the same
major version (e.g., only between kamailio 5.7.x nodes).
That's because even on the network the data may look the same, the
internal structures, types of fields, sizes and meaning of values can be
different. This is similar to how the major storage systems require
nodes in the same replication group.
A note about it is in the docs:
-
https://www.kamailio.org/docs/modules/stable/modules/dmq.html#idm39
To detect different versions in the same cluster, you can eventually
look at the User-Agent header (or Server for replies).
Cheers,
Daniel
On 29.11.23 12:51, Denys Pozniak via sr-users wrote:
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
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
--
Daniel-Constantin Mierla (@
asipto.com)
twitter.com/miconda --
linkedin.com/in/miconda
Kamailio Consultancy and Development Services
Kamailio Advanced Training --
asipto.com