My SysAdmin tells me that this script is an Asterisk watchdog, not a SIP watchdog. Surely someone else out there has had a provider that loses its connection from time to time and needs to reconnect?

----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com


----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <asterisk-users@lists.digium.com>
Sent: Sunday, December 18, 2005 7:05 PM
Subject: Asterisk-Users Digest, Vol 17, Issue 109


----------------------------------------------------------------------

Message: 1
Date: Sun, 18 Dec 2005 19:22:11 +0100
From: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] SIP Watchdog
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

gate:/etc/asterisk/.sys# cat astdog.sh
#!/bin/sh
#
#
sleep 60
#
while [ 1 ] ; do
 BEZI=`ps auxx|egrep 'asterisk -p'|egrep -v 'grep'|wc -l`;
if [ "$BEZI" = "0" ]; then `killall -9 mpg123`; `asterisk -p`; fi
sleep 10
done
gate:/etc/asterisk/.sys#

---
turby

Is there anything I can set or any scripts you guys  have where
if it sees certain connections (my upstreams) are down, it attempts
to reconnect them say every minute or 5 minutes? If a provider
reloads  something, the connection some times drops and I have to do
a "sip reload" to  get it to come back.


----
Mike Hammett
Intelligent Computing  Solutions
http://www.ics-il.com







--
S pozdravem,
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]



------------------------------

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to