[SR-Users] Loadbalancing proxy using DNS SRV instead of dispatcher
Daniel Tryba
d.tryba at pocos.nl
Fri Apr 17 11:25:29 CEST 2015
On Friday 17 April 2015 11:09:23 Jon Bonilla wrote:
> I had the issue in the past and here's how it was solved:
>
> - When sending your "first" request to the server resolving it by DNS, you
> can store the destination IP in a hash table (callid--> IP) using
> onsend_route
>
> The kamailio script should check something like this:
>
> 1: Initial request. Is the callid in hash table?
> Yes --> Don't resolve DNS and send it to the stored IP
> NO --> Use DNS to send it and store the IP using onsend_route
>
> If you set the autoexpire of keys to 3-4 secs it will work well.
Sounds like a very useful solution. May need some extra mangling for failover
situations
Thank you for sharing.
--
Telefoon: 088 0100 700
Sales: sales at pocos.nl | Service: servicedesk at pocos.nl
http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
17097024
More information about the sr-users
mailing list