[SR-Users] Dmq usage

José Seabra joseseabra4 at gmail.com
Mon Nov 20 11:24:47 CET 2017


Hello,
Why do you are using DMQ to replicate data across your redis servers since
redis has its own replication mechanisms?

BR
José

2017-11-20 10:12 GMT+00:00 Aidar Kamalov <aidar.kamalov at gmail.com>:

> Hello, I want to distribute some messages-actions for redis to my kamailio
> servers.
> I use this code:
> For send:
> dmq_bcast_message("redis", "set early:$fU", "text/plain");
>
> For recieve:
> request_route {
>     xnotice("ROOT: $rm $rU [$ci]");
>     if(is_method("KDMQ")) {
>         if($rU == 'redis') {
>             route(REDIS);
>         } else {
>             dmq_handle_message();
>         }
>     }
> ......
> route[REDIS] {
>     xnotice("REDIS: $rb");
>     redis_cmd("redis", "$rb", "r");
>     return;
> }
>
> When dmq_bcast_message starts - other node recieve 7 KDMQ sip packets. And
> not always it executed.
> Is it right way to use dmq?
>
> Dmq user locations are ok.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Cumprimentos
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171120/9d2d1b91/attachment.html>


More information about the sr-users mailing list