[SR-Users] How to get the dispatcher value dynamically

Narayan P narayana88 at outlook.com
Fri Oct 18 14:01:19 CEST 2019


Hello,

We are using kamailio for load balancing  as stateless proxy as mentioned below.

{$du = "sip:192.168.130.XXX;transport=udp";
forward();}

We have set $du to the correct media server value in the dispatcher module.Can you please tell me how to
get the correct dispatcher value(Media server IP) and print this into log file.

I am using $ru and $du to print,but it is not giving the correct one.
for example: Suppose for the first call ;

$du = "sip:192.168.130.XXX:5060;transport=udp";
$du = "sip:192.168.130.XXX:5062;transport=udp";
and so on.
How to fetch the correct dispatcher value dynamically.

Any response will be highly appreciated.


Thanks,
Rudra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191018/8bf6a3a6/attachment.html>


More information about the sr-users mailing list