# # control tool for maintaining Kamailio # # This file is part of Kamailio, a free SIP server. # # SPDX-License-Identifier: GPL-2.0-or-later # # Kamailio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version # # Kamailio is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # #=================================================================== [ "${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 ul dbclean [].................... remove older expired records from db table EOF } USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_usrloc" usage_ctlcommon() { echo mecho " -- command 'ps' - print details about running processes" echo cat <