Existing commands:
-- command 'start|stop|restart'
restart ............................ restart Kamailio
start .............................. start Kamailio
stop ............................... stop Kamailio
-- command 'acl' - manage access control lists (acl)
acl show [
acl grant
acl revoke
-- command 'lcr' - manage least cost routes (lcr)
* IP addresses must be entered in dotted quad format e.g. 1.2.3.4 *
*
* e.g. transport '2' is identical to transport 'tcp'. *
* scheme: 1=sip, 2=sips; transport: 1=udp, 2=tcp, 3=tls *
* Examples: lcr addgw level3 1.2.3.4 5080 sip tcp 1 *
* lcr addroute +1 '' 1 1 *
lcr show .....................................................................
............. show routes, gateways and groups
lcr reload ...................................................................
............. reload lcr gateways
lcr addgw
............... add a gateway with flags, tag and strip ............
................(flags, tag, and strip are optional arguments) .....
lcr rmgw
............... delete a gateway
lcr addroute
.............. add a route ( use '' to match anything in
lcr rmroute
.............. delete a route
-- command 'cr' - manage carrierroute tables
cr show ....................................................... show tables
cr reload ..................................................... reload tables
cr dump ....................................................... show in memory tables
cr addrt
cr rmrt
cr addcarrier
(prob, strip, rewrite_prefix, rewrite_suffix,...................
flags, mask and comment are optional arguments) ...............
cr rmcarrier
-- command 'rpid' - manage Remote-Party-ID (RPID)
rpid add
rpid rm
rpid show
-- command 'add|passwd|rm' - manage subscribers
add
passwd
rm
-- command 'add|dump|reload|rm|show' - manage trusted
trusted show ...................... show db content
trusted dump ...................... show cache content
trusted reload .................... reload db table into cache
trusted add
....................... add a new entry
....................... (from_pattern and tag are optional arguments)
trusted rm
-- command 'dispatcher' - manage dispatcher
* Examples: dispatcher addgw 1 sip:1.2.3.1:5050 1 'outbound gateway'
* dispatcher addgw 2 sip:1.2.3.4:5050 3 ''
* dispatcher rmgw 4
dispatcher show ..................... show dispatcher gateways
dispatcher reload ................... reload dispatcher gateways
dispatcher dump ..................... show in memory dispatcher gateways
dispatcher addgw
.......................... add gateway
dispatcher rmgw
-- command 'db' - database operations
db exec
db roexec
db run
db rorun
$id variable
db show ..................... display table content
-- command 'speeddial' - manage speed dials (short numbers)
speeddial show
speeddial list
speeddial add
........................... add a speedial (*)
speeddial rm
speeddial help ...................... help message
-
-
-
-
-- command 'avp' - manage AVPs
avp list [-T table] [-u
[-a attribute] [-v value] [-t type] ... list AVPs
avp add [-T table]
avp rm [-T table] [-u
[-a attribute] [-v value] [-t type] ... remove AVP (*)
avp help .................................. help message
- -T - table name
- -u - SIP id or unique id
- -a - AVP name
- -v - AVP value
- -t - AVP name and type (0 (str:str), 1 (str:int),
2 (int:str), 3 (int:int))
-
-
-- command 'alias_db' - manage database aliases
alias_db show
alias_db list
alias_db add
alias_db rm
alias_db help ...................... help message
-
-
-- command 'domain' - manage local domains
domain reload ....................... reload domains from disk
domain show ......................... show current domains in memory
domain showdb ....................... show domains in the database
domain add
domain rm
沒有留言:
張貼留言