<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Jeff,<br>
<br>
Yeah, the route_to_gw() gives you raw, low level access to the
routing, so the whole soring and filtering mechanisms are skipped.
This is why the status is not checked, but it makes sense, as time
as you can specify a list of GWs. Could you open a bug report on
this please ?<br>
<br>
About fetching the status of a GW from script, no there is no such
mechanism for now. Normally it should be needed (if we fix the
above issue, right?)<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit, Amsterdam, May 2020
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2020Amsterdam/">https://www.opensips.org/events/Summit-2020Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 4/7/20 3:57 PM, Jeff Pyle wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPhW+0JmbwqH-KoC6VKYH+itmoen_bF-YJFWP5tS1jVJw=NoOQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>I thought I'd ask the experts before I get crazy with it.</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>