I have an Asterisk 1.4.2 server with 3 different SIP providers and Asterisk for Skype gateway installed. Periodically the SIP providers go offline for some reason, or the Skype connection fails. When this happens, I lose my SIP registration to the provider. Unfortunately I don't know this has happened until someone eventually contacts me to say, "I tried to call you but it didn't work". This, of course, sends the wrong message to the caller and I have no way to determine if I'm using a reliable SIP provider or not as I have no statistical log of their uptime. What I'm trying to find is how others monitor the uptime status of any external SIP providers or gateways that they use. Are there tools or add-ons available for this that will email me when a SIP registration goes offline? Any suggestions for this would be greatly appreciated. Thanks Myles -- ======================Myles Wakeham Director of Engineering Tech Solutions USA, Inc. Scottsdale, Arizona USA http://www.techsolusa.com Phone +1-480-451-7440
Administrator TOOTAI
2010-Jan-01 14:25 UTC
[asterisk-users] Monitoring SIP & Skype connections
Myles Wakeham a ?crit :> [...] Are there tools or > add-ons available for this that will email me when a SIP registration > goes offline? > > Any suggestions for this would be greatly appreciated. > >Hi Myles, first, best wishes to the list for this new 2010 year. To answer your question, you can run a cron job each x minutes -supposing that you qualify your provider- launching a script like #!/bin/bash isOffLine=`/usr/sbin/asterisk -rx 'sip show peers'| grep <MySIPProvider> | grep OK` if [ $isOffLine = "" ]; then # start what you want, for instance do a sip reload fi exit 0 -- Daniel