Re: [Freeswitch-dev] CPU and RAM usage counters access from my module

2010-05-06 Thread Anthony Minessale
we have the TRAP one that we use to distribute signals etc, that would be a good place for it. On Thu, May 6, 2010 at 3:35 PM, Moises Silva wrote: > May be we could have an "alarm" core event with some subevents about cpu or > memory usage, then modules may take nice actions like stop accepting

Re: [Freeswitch-dev] CPU and RAM usage counters access from my module

2010-05-06 Thread Moises Silva
May be we could have an "alarm" core event with some subevents about cpu or memory usage, then modules may take nice actions like stop accepting calls to at least try to protect the quality of the current ones. Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 50 McIntosh Drive, Su

Re: [Freeswitch-dev] CPU and RAM usage counters access from my module

2010-05-06 Thread Anthony Minessale
see switch_core.c Line 58 or mod_commands.c Line 1402 On Thu, May 6, 2010 at 5:27 AM, Vitalii Colosov wrote: > Hi, > > Is there is a way I can access the current CPU and / or RAM utilization > counters from my module "mod_any_module"? > I know that FreeSWITCH has this information, how could I g

[Freeswitch-dev] CPU and RAM usage counters access from my module

2010-05-06 Thread Vitalii Colosov
Hi, Is there is a way I can access the current CPU and / or RAM utilization counters from my module "mod_any_module"? I know that FreeSWITCH has this information, how could I get it? This would provide some nice benefits, for example if current CPU utilization > 75% I would force using PCMU codec