Moises is right.
The best place for this is in an Event or we would be duplicating things.
Also consuming events is easier than trying to scan a log file.


On Sat, May 8, 2010 at 5:01 PM, Jan Berger <jan.berger@video24.no> wrote:

You could add an “Alarm” statement in coding, but error’s and warning’s serve the same purpose and you would in reality be coding an “alarm” side by side with these.

 

Actually – all I really want is the module name + code. Text, severity and what to do we look up in a config database.

 

jan

 


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Moises Silva
Sent: 8. mai 2010 20:01
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Alarms-codes

 

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

 


_______________________________________________
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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900