Hello Everyone,
We are currently using the DR module for routing and failover, and would like to replace it with equivalent functionality using perl script. What we would like is to:
* Order the gateways in a strict list given some constraints (Completed) * Build the RURI with the gateway IP, and prefix from the dr_gateways table (Similar to what do_routing does with the FROM tag and dr_gateways information) * Failover to the next gateway in strict order.
I would really like to know what our options are, and the most graceful/scalable way of implementing this.
PS An example would be highly appreciated!
Kind Regards,
Nick
Hello,
On 27/01/14 01:33, Nick Cameo wrote:
Hello Everyone,
We are currently using the DR module for routing and failover, and would like to replace it with equivalent functionality using perl script. What we would like is to:
- Order the gateways in a strict list given some constraints (Completed)
- Build the RURI with the gateway IP, and prefix from the dr_gateways
table (Similar to what do_routing does with the FROM tag and dr_gateways information)
- Failover to the next gateway in strict order.
I would really like to know what our options are, and the most graceful/scalable way of implementing this.
all you need is to put the most preferred gateway in the request uri and the rest of the options in a list of avps. Then use failure route to send to the addresses stored in avps in the case the most preferred fails to answer.
Not a user of Perl API, but I think you have the methods to set values to r-uri and avps.
Cheers, Daniel
PS An example would be highly appreciated!
Kind Regards,
Nick
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Daniel! Thank you so much for your response. Inline exist.
all you need is to put the most preferred gateway in the request uri and
the rest of the options in a list of avps.
Then use failure route to send to the addresses stored in avps in the
case the most preferred fails to answer.
I am assuming you mean using the to do_routing, and use_next_gw methods in the script? A small example or reference would be great help.
Not a user of Perl API, but I think you have the methods to set values
to r-uri and avps.
If anyone can bring my attention to a:
i) A method that can build the ruri using `ip` and `prefix` parameters that we pass to it ii) Check if the route fails so we iterate to the next gw in the list
Beers on me!!!! :)
Kind Regards,
Nick from Toronto