Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a nagios setup which ensures that SIP is responsive on my Asterisk server, that's straight forward.

My question is, what kind of possibilities are there that the Asterisk server can actually terminate properly with the termination provider? As in produce a test call and ensure that something on the other end picks up?

I realize this is a multi-part and very difficult problem. Without expensive equipment, it's almost impossible to tell what medium is on the other end of termination point.

Just curious what you SIP/Asterisk guys are doing to monitor for this to know when there is an outage besides your users calling you to tell you that's the case?

share|improve this question

2 Answers 2

up vote 7 down vote accepted
+50

I have come across the same problem and it's not just limited to asterisk. In the end we came up with something that worked well for us. We called it a SIP Loopback.

Basically we signed up for an ALT sip provider (flowroute.com) and setup a script that calls out via primary SIP provider to the phone number setup with our ALT provider three times an hour. The incoming phone call would check CALLERID and then if was from primary phone number post to nagios a succes message. If no succes messages were posted to nagios at least once ever hour it would alarm. You would need to write the scripts yourself as I no longer have access to them myself but it should not be hard.

share|improve this answer
    
We expanded on this once at a CLEC at which I worked by passing in-band DTMF back and forth to test the integrity of bidirectional audio -- SendDTMF(). –  Alex Balashov Dec 14 '09 at 18:45
    
I have also successfully employed essentially the same technique. The downsides are, that you have to be very careful with balancing outage time before you notice a problem, and extra load on your server and you can get false alerts if your ALT sip provider messes up somehow. –  Catherine MacInnes Dec 17 '09 at 22:24
    
Good idea to also test the audiopath using DTMF... but test your setup to see if the DTMF is sent as inband audio. Otherwise you are still testing the SIP path and not the audiopath. –  Koos van den Hout Oct 25 '10 at 9:41

You can use online service from www.sipnms.com to send sip messages and if there is a difference in the message received it will alarm you using email or snmp. you can define message scripts with sip options or invites.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.