[asterisk-users] HA - How to detect software failure?

Matt Riddell matt at venturevoip.com
Mon Sep 10 16:37:53 CDT 2007


-----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-----



More information about the asterisk-users mailing list