[OpenSIPS-Users] Setting do_routing
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Feb 13 17:28:52 CET 2014
Hi Nick,
What will help you is a kind of route_to_gw() but instead of taking as
param a single GW, to take a list of GWs ? and to iterate through using
use_next_gw() ?
Also, what Nick Altman says is very very true - you can simply populate
the AVPs he mentioned (do it from script, loading from a DB, replacing
the functionality of do_routing() ) and do the use_next_gw() ......it
simply works....and it simply scale :)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 11.02.2014 21:37, Nick Cameo wrote:
>
> On Thu, Feb 6, 2014 at 1:54 PM, Nick Altmann <nick.altmann at gmail.com
> <mailto:nick.altmann at gmail.com>> wrote:
>
> Carrier is just a gateways list. You may also set weight for each gw
> and drouting will choose gw's due its weight.
> Route_to_carrier() gets carrier parameters (gateways list) into avps
> and set $ru to first gw address.
> Use_next_gw() extract next gw parameters from avps and set $ru to the
> new gateway.
> So, you may try to work with these avps to change routing behaviour.
>
>
> Hello Nick,
>
> Thank you for your response. After looking into it further I realized
> that this approach is not very scalable. The reason why
> is because we have over 30 interconnects (30 gateways), and would have
> to maintain all of them to the carrier table.
>
> Is there not way to pass a gwlist list to a function dynamically (at
> run time) that will route to that call with failover? do_routing
> would be perfect! If it adheres to the order of the gateway list.
>
> PS I really don't want to change the ruri in perl either if this
> functionality can be made available in the script.
>
> Kind Regards,
>
> Nick.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140213/5cf6918b/attachment.htm>
More information about the Users
mailing list