[Asterisk-Users] Re: Asterisk monitoring with Nagios and IAX (Roy Sigurd Karlsbakk)

Jens Vagelpohl jens at dataflake.org
Wed Jan 19 05:38:27 MST 2005


> There:  
> https://sourceforge.net/tracker/index.php? 
> func=detail&aid=746083&group_id=29880&atid=541465
> Added IAX ping :)

Improvement suggestion: The while loop that checks for an IAX answer  
currently runs as "while (1)", so it always runs until the timeout has  
been reached. I replaced the "while (1)" with "while ($iax_answer ==  
0)" to make it break out of the loop immediately if an answer has come.

Works nice :)

jens




More information about the asterisk-users mailing list