[Asterisk-Users] Asterisk monitoring with Nagios and IAX

Rich Adamson radamson at routers.com
Wed Jan 19 02:13:17 MST 2005


> > an application available called iaxping with would send a set of well
> > formed iax packets and wait for the response.  Unfortunately that
> > application was written in visual basic, and no source code was
> > distributed.  A skilled coder could probably use some of the required
> > functions from iaxclient or libiax2 and create a similar function in C.
> 
> I've googled around and tried a few things. The ideal solution would 
> involve no library dependencies to make maintenance easier.
> 
> The specific problem I have is that I don't know what a IAX packet 
> contains which elicits a measurable response from Asterisk. I have 
> looked at the sources but it's very convoluted and the last time I 
> touched any C was 7 years ago...
> 
> So if there was a way to "synthesize" this IAX PING or POKE packet it 
> shouldn't be hard to just package that into a script that handles the 
> connection establishment, sends it, and listens for a response.

Use ethereal to sniff an iax link and you'll see the pkt construction
if rather simple.





More information about the asterisk-users mailing list