Mike Hammett
2006-Jan-03 12:43 UTC
[Asterisk-Users] Re: Asterisk-Users Digest, Vol 17, Issue 109
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: <asterisk-users-request@lists.digium.com> 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: turby@seznam.cz > Subject: Re: [Asterisk-Users] SIP Watchdog > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users@lists.digium.com> > Message-ID: <179216695.20051218192211@seznam.cz> > 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, > turby@seznam.cz > mailto:turby@seznam.cz > > > > ------------------------------