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