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.