Greetings.
I got two extensions on my asterisk that autenticates from outside our
network, via internet. Is there a way to monitor, in certain time periods,
if they are available (online) and send some sort of notification if they
don't?
There are two extensions to monitor, they belong to the
2013/1/8 Luis H. Forchesatto luisforchesa...@gmail.com
Greetings.
I got two extensions on my asterisk that autenticates from outside our
network, via internet. Is there a way to monitor, in certain time periods,
if they are available (online) and send some sort of notification if they
Top and bottom post in the same email... don't open again the thread :-)
#!/bin/bash
res=`sudo /usr/sbin/asterisk -rx 'sip show peer $1' | grep Status | cut
-d\: -f 2 | cut -d\ -f 2`
if [ $res == OK ]
then
echo OK is registered
exit 0
else
echo WARNING peer not registered
exit 1
2013/1/8 Luis