[SR-Users] Dmq usage
Aidar Kamalov
aidar.kamalov at gmail.com
Mon Nov 20 11:19:09 CET 2017
And also I can see that in my logs. But network is working ok.
Nov 20 10:14:04 sipchel /usr/sbin/kamailio[8362]: ERROR: dmq
[notification_peer.c:588]: notification_resp_callback_f(): deleting server
sip:192.168.150.225:5060 because of failed request
Nov 20 10:14:04 sipchel /usr/sbin/kamailio[8362]: ERROR: dmq
[notification_peer.c:590]: notification_resp_callback_f(): not deleting
notification_peer
2017-11-20 13:12 GMT+03: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.
>
--
Aydar A. Kamalov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171120/1088b7b2/attachment.html>
More information about the sr-users
mailing list