Browse Source

added kazoo-kamailio reset-restart

4.0
karl anderson 9 years ago
parent
commit
ff92c50723
1 changed files with 22 additions and 1 deletions
  1. +22
    -1
      system/sbin/kazoo-kamailio

+ 22
- 1
system/sbin/kazoo-kamailio View File

@ -64,6 +64,24 @@ restart() {
start
}
reset-restart() {
cd /etc/kazoo/kamailio/dbtext/
stop
head -n1 active_watchers > active_watchers.tmp
mv -f active_watchers.tmp active_watchers
head -n1 watchers > watchers.tmp
mv -f watchers.tmp watchers
head -n1 presentity > presentity.tmp
mv -f presentity.tmp presentity
chown kamailio:daemon *
start
}
status() {
kamctl fifo ds_list
RETVAL=$?
@ -110,6 +128,9 @@ case "$1" in
restart)
restart
;;
reset-restart)
reset-restart
;;
status)
status
;;
@ -117,7 +138,7 @@ case "$1" in
check_config
;;
*)
echo $"Usage: $0 {prepare|start|background|stop|restart|status|check|pid}"
echo $"Usage: $0 {prepare|start|background|stop|restart|reset-restart|status|check|pid}"
esac
exit ${RETVAL}

Loading…
Cancel
Save