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