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

David Villasmil david.villasmil.work at gmail.com
Fri Oct 18 17:56:37 CEST 2019


+1
Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337


On Fri, Oct 18, 2019 at 4:51 PM Karsten Horsmann <khorsmann at gmail.com>
wrote:

> 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
>>
> _______________________________________________
> 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/00d32c64/attachment.html>


More information about the sr-users mailing list