-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yann JOUANIN wrote: > Hi all, > > > > I would like to have your opinion about the best way to detect a asterisk > failure, I mean when asterisk stop working but the process keep existing.
There's a few ways you could do it. Something like: asterisk -rx 'iax2 show peers' | wc -l Would count the number of iax peers (assuming the command didn't return if asterisk wasn't working). Or you could connect to the manager interface on port 5038 and issue a few commands: http://www.voip-info.org/wiki-Asterisk+manager+API - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://feeds.venturevoip.com/AsteriskNews (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5bkxDQNt8rg0Kp4RAuTAAJ9fImZF2H1jfXz2uWvWD4xH9Or0vgCgohfc 5U2Sx92QzzACUOvawsE4eJw= =sGKd -----END PGP SIGNATURE----- _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
