[OpenSIPS-Users] Setting do_routing

Nick Cameo symack at gmail.com
Mon Dec 23 04:27:27 CET 2013

Hello Bogdan,

Thank your for your response. Just has a chance to test drive this.
Correct me if i'm wrong however, it would seem that route_to_gw():

* Does not accept comma separated gwlist? Just single gateways?
* Does not shape the ruri (ie, gateway prefix, port, ip....)

I would like to retain the functionality of do_routing however, fire
off to the gwlist in chronological

Hope all is well,


On 12/10/13, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
> Hi Nick,
> For using the whitelist, you need to pass 3 params, so it will be
> 	do_routing("0","","1,2,3,4")
> The whitelist is a list of GWs that are allowed to be used, they do no
> dictate the order. The order is still given by the DR rules - the
> whitelist is just an additional filter.
> If you want to explicitly route to a set of GWs (in the given order),
> take a look at the route_to_gw() functions:
> http://www.opensips.org/html/docs/modules/1.9.x/drouting.html#id294599
> Regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
> On 09.12.2013 04:56, Nick Cameo wrote:
>> Sorry about the last message, I hit enter by mistake.... After looking
>> over the do_routing documentation, I saw that is supports
>> gw_whitelist. My question is how do we pass gw_whitelist to function.
>> Does it have to be do_routing("0","","1,2,3,4") or can we just have
>> do_routing("0","1,2,3,4")?
>> Also, I am assuming that gw_whitelist will fire the gwlist in the
>> order given, and my failover route is not effected by the dynamic
>> injection. Correct me if I am wrong
>> Kind Regards,
>> Nick.
>> On 12/8/13, Nick Cameo <symack at gmail.com> wrote:
>>> Hello Everyone,
>>> Is it possible to set dr_rules.gwlist at runtime without having to
>>> relaod the DB etc...?
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list