forked from kamailio/kamailio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkamctl.ser
55 lines (44 loc) · 988 Bytes
/
kamctl.ser
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
#
# 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