Hello Jan,

I believe you're confusing alarms with logging and those two are not the same thing and I think should not be mixed. For alarms an special event should be triggered ( as mentioned in other thread, may be SWITCH_EVENT_TRAP ).

mod_freetdm ( FreeSWITCH PSTN module ) is already sending a SWITCH_EVENT_TRAP when any pstn port becomes alarmed, other modules may start using it for their own type of alarms. Then we may add the alarm-code and severity fields. 

Moises Silva
Senior Software Engineer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada
t. 1 905 474 1990 x 128 | e. moy@sangoma.com


On Sat, May 8, 2010 at 2:47 AM, Jan Berger <janvb@live.com> wrote:
hi,
 
I have playing around with FreeSWITCHf or a while and one of things I am looking for is unique Alarms-codes
 
FreeSwitch has error, warning, info etc on the logging - but the message print module name and line-number - it does not incude a proper, unique alarm-code. Using the combination of module-name and line-number is possible - but this changes from release to release.
 
The point with alarms is that they are forwarded into databases/applications/operating senters that monitor telecom equipmenet. The way this usually is done is that the forwarding mechanism filter on alarm-code/severity as we don't want to forward junk - but it's a requirement that we visualise those that affect business.
 
---
 
It's doable to change logging so that every module insert a unique number - starting with 1 - this would make modulename + alarm-code an unique combination that would serve the purpose.
 
Any suggestions?
 
Jan
 
 


Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now.

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org