[Asterisk-Users] SIP Watchdog

turby at seznam.cz turby at seznam.cz
Sun Dec 18 11:22:11 MST 2005


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 at seznam.cz
 mailto:turby at seznam.cz




More information about the asterisk-users mailing list