You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/utils/kamctl/kamctl.ser

57 lines
995 B

#
# $Id$
#
# control tool for maintaining Kamailio
#
#===================================================================
##### ----------------------------------------------- #####
### FIFO specific variables and functions
#
##### ----------------------------------------------- #####
### load CTL base
#
if [ -f "$MYLIBDIR/kamctl.ctlbase" ]; then
. "$MYLIBDIR/kamctl.ctlbase"
else
mwarn "Cannot load CTL core functions '$MYLIBDIR/kamctl.ctlbase' ..."
# exit -1
fi
#
##### ----------------------------------------------- #####
### parameters
#
#
##### ----------------------------------------------- #####
### functions
#
usage_ser() {
echo
mecho " -- command 'kamcmd'"
echo
cat <<EOF
kamcmd ............................. send command through kamcmd
EOF
}
USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ser"
ser_cmd()
{
mdbg "entering ser_cmd $*"
if [ "$#" -lt 1 ]; then
merr "kamcmd must take at least command name as parameter"
exit 1
fi
$SERCMD "$@"
}
SERCTLCMD=ser_cmd