[OpenSIPS-Users] drouting gateway status with route_to_gw()

Jeff Pyle jeff at ugnd.org
Tue Apr 7 12:57:23 EST 2020


Hello,

On v2.4.7 I'm using route_to_gw() to load routing for a particular
gateway.  It works well.  It also works when the gateway is in an
"Inactive" status, which surprises me.  I would expect the function to
return with an error code in that scenario, or at least have the option to
achieve that behavior.

I don't see any mention in the documentation of a way to manually check the
status of a gateway from the script (only from MI).  Is there?

Perhaps the gateway status is taken into consideration only with
do_routing()?  If that's the case, I'm wondering if I can emulate
route_to_gw() with do_routing() while specifying a gw_whitelist of only the
gateway I'm interested in routing to.

I thought I'd ask the experts before I get crazy with it.


- Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200407/f27b2bf7/attachment.html>


More information about the Users mailing list