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

Karsten Horsmann khorsmann at gmail.com
Fri Oct 18 17:49:31 CEST 2019


Hi,

If you want to loadbalance the stuff dynamic to a group of target servers
you can use the dispatcher module.

They are many HowTos for that and the module documentation is also the best
way to get it working.

Cheers
Karsten


Narayan P <narayana88 at outlook.com> schrieb am Fr., 18. Okt. 2019, 14:02:

> 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
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191018/9fac4844/attachment.html>


More information about the sr-users mailing list