<div dir="ltr">Thanks both. Understand the drouting() issue.<br><div><br></div><div>I like the dialog profiles idea, that sounds much easier than updating stats in the correct places. Is that done using set_dlg_profile() ?</div><div><br></div><div>Regards</div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 Jul 2020 at 09:03, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
An option is to use dialog profiles at script level - each time you <br>
route a call to a specific GW (you can get its ID after do_routing()), <br>
just add the call into a corresponding dialog profile. And you can use <br>
the dialog MI cmds to fetch the status of the profiles.<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
OpenSIPS Summit 2020 online<br>
<a href="https://www.opensips.org/events/Summit-2020Distributed/" rel="noreferrer" target="_blank">https://www.opensips.org/events/Summit-2020Distributed/</a><br>
<br>
On 7/30/20 10:09 AM, Răzvan Crainea wrote:<br>
> Hi, Mark!<br>
><br>
> The main issue is that the drouting module is not aware of what <br>
> gateways are being used, when they are used & stuff. Therefore is very <br>
> complicated to build these statistics from the code, as it is highly <br>
> dependent of the way they are used in the script. Furthermore, even if <br>
> one would find a way of making this work, it would be a lot more <br>
> complicated than simply coding it in the script. Therefore I don't see <br>
> this being coded any time soon.<br>
><br>
> Best regards,<br>
><br>
> Răzvan Crainea<br>
> OpenSIPS Core Developer<br>
> <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
><br>
> On 7/29/20 1:59 PM, Mark Farmer wrote:<br>
>> Thanks Razvan. I will look into using that.<br>
>><br>
>> Is it possible to add such stats to drouting? I'm guessing it would <br>
>> be useful to others too.<br>
>> Feature request?<br>
>><br>
>> Best regards<br>
>> Mark.<br>
>><br>
>><br>
>><br>
>> On Mon, 27 Jul 2020 at 08:23, Răzvan Crainea <<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a> <br>
>> <mailto:<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>>> wrote:<br>
>><br>
>> Hi, Mark!<br>
>><br>
>> Unfortunately the drouting module does not export any statistics. <br>
>> You<br>
>> can however use the statistics module[1] and define your own<br>
>> statistics,<br>
>> that you have to manually update them from the script according <br>
>> to your<br>
>> needs.<br>
>><br>
>> [1] <a href="https://opensips.org/docs/modules/3.1.x/statistics.html" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.1.x/statistics.html</a><br>
>><br>
>> Best regards,<br>
>><br>
>> Răzvan Crainea<br>
>> OpenSIPS Core Developer<br>
>> <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
>><br>
>> On 7/17/20 4:39 PM, Mark Farmer wrote:<br>
>> > Hi everyone<br>
>> ><br>
>> > I have been asked to look into getting Nagios to monitor active<br>
>> calls on<br>
>> > specific Dynamic Routing gateways.<br>
>> ><br>
>> > Looking at the drouting() docs I don't see any exported <br>
>> statistics.<br>
>> > Is there a way to do this please?<br>
>> ><br>
>> > Many thanks<br>
>> > Mark.<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
>> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
>><br>
>><br>
>> -- <br>
>> Mark Farmer<br>
>> <a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a> <mailto:<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>