# # $Id$ # # control tool for maintaining Kamailio # #=================================================================== [ "${IMPCTLBASE}" = "yes" ] && return export IMPCTLBASE="yes" ##### ----------------------------------------------- ##### ### common variables and functions for CTL engines # # period in which stats are reprinted if [ -z "$WATCH_PERIOD" ] ; then WATCH_PERIOD=2 fi # ##### ------------------------------------------------ ##### ### usage functions # usage_cisco_restart() { echo mecho " -- command 'cisco_restart' - restart CISCO phone (NOTIFY)" echo cat < ................ restart phone configured for EOF } USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_cisco_restart" usage_online() { echo mecho " -- command 'online' - dump online users from memory" echo cat < ......................... ping with SIP OPTIONS EOF } USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ping" usage_usrloc() { echo mecho " -- command 'ul|alias' - manage user location or aliases" echo cat <]................... show in-RAM online users ul show --brief........................ show in-RAM online users in short format ul rm []....... delete user's usrloc entries ul add ............... introduce a permanent usrloc entry ul add ..... introduce a temporary usrloc entry ul add .. introduce a temporary usrloc entry EOF } USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_usrloc" usage_ctlcommon() { echo mecho " -- command 'ps' - print details about running processes" echo cat <