../../sbin/kamctl 3.1.0 Existing commands: -- command 'start|stop|restart' restart ............................ restart Kamailio start .............................. start Kamailio stop ............................... stop Kamailio -- command 'acl' - manage access control lists (acl) acl show [<username>] .............. show user membership acl grant <username> <group> ....... grant user membership (*) acl revoke <username> [<group>] .... grant user membership(s) (*) -- command 'lcr' - manage least cost routes (lcr) lcr show_gws....... show database gateways lcr show_routes.... show database routes lcr dump_gws....... show in memory gateways lcr dump_routes.... show in memory routes lcr reload ........ reload lcr gateways and routes lcr eval_weights .. evaluates probability for given GW's weights -- command 'cr' - manage carrierroute tables cr show ....................................................... show tables cr reload ..................................................... reload tables cr dump ....................................................... show in memory tables cr addcn <carrier id> <carrier name> .......................... add a carrier name cr rmcn <carrier id> ......................................... rm a carrier name cr adddn <domain id> <domain name> ............................ add a domain name cr rmdn <domain id> .......................................... rm a domain name cr addcarrier <carrier> <scan_prefix> <domain> <rewrite_host> ................ <prob> <strip> <rewrite_prefix> <rewrite_suffix> ............... <flags> <mask> <comment> .........................add a carrier (prob, strip, rewrite_prefix, rewrite_suffix,................... flags, mask and comment are optional arguments) ............... cr rmcarrier <carrier> <scan_prefix> <domain> ................ rm a carrier -- command 'rpid' - manage Remote-Party-ID (RPID) rpid add <username> <rpid> ......... add rpid for a user (*) rpid rm <username> ................. set rpid to NULL for a user (*) rpid show <username> ............... show rpid of a user -- command 'add|passwd|rm' - manage subscribers add <username> <password> .......... add a new subscriber (*) passwd <username> <passwd> ......... change user's password (*) rm <username> ...................... delete a user (*) -- 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 <src_ip> <proto> <from_pattern> <tag> ....................... add a new entry ....................... (from_pattern and tag are optional arguments) trusted rm <src_ip> ............... remove all entres for the given src_ip -- 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 <setid> <destination> <flags> <description> .......................... add gateway dispatcher rmgw <id> ................ delete gateway -- command 'db' - database operations db exec <query> ..................... execute SQL query db roexec <roquery> ................. execute read-only SQL query db run <id> ......................... execute SQL query from $id variable db rorun <id> ....................... execute read-only SQL query from $id variable db show <table> ..................... display table content -- command 'speeddial' - manage speed dials (short numbers) speeddial show <speeddial-id> ....... show speeddial details speeddial list <sip-id> ............. list speeddial for uri speeddial add <sip-id> <sd-id> <new-uri> [<desc>] ... ........................... add a speedial (*) speeddial rm <sip-id> <sd-id> ....... remove a speeddial (*) speeddial help ...................... help message - <speeddial-id>, <sd-id> must be an AoR (username@domain) - <sip-id> must be an AoR (username@domain) - <new-uri> must be a SIP AoR (sip:username@domain) - <desc> a description for speeddial -- command 'avp' - manage AVPs avp list [-T table] [-u <sip-id|uuid>] [-a attribute] [-v value] [-t type] ... list AVPs avp add [-T table] <sip-id|uuid> <attribute> <type> <value> ............ add AVP (*) avp rm [-T table] [-u <sip-id|uuid>] [-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)) - <sip-id> must be an AoR (username@domain) - <uuid> must be a string but not AoR -- command 'alias_db' - manage database aliases alias_db show <alias> .............. show alias details alias_db list <sip-id> ............. list aliases for uri alias_db add <alias> <sip-id> ...... add an alias (*) alias_db rm <alias> ................ remove an alias (*) alias_db help ...................... help message - <alias> must be an AoR (username@domain)" - <sip-id> must be an AoR (username@domain)" -- 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> ................. add the domain to the database domain rm <domain> .................. delete the domain from the database -- command 'cisco_restart' - restart CISCO phone (NOTIFY) cisco_restart <uri> ................ restart phone configured for <uri> -- command 'online' - dump online users from memory online ............................. display online users -- command 'monitor' - show internal status monitor ............................ show server's internal status -- command 'ping' - ping a SIP URI (OPTIONS) ping <uri> ......................... ping <uri> with SIP OPTIONS -- command 'ul|alias' - manage user location or aliases ul show [<username>]................ show in-RAM online users ul show --brief..................... show in-RAM online users in short format ul rm <username> [<contact URI>].... delete user's usrloc entries ul add <username> <uri> ............ introduce a permanent usrloc entry ul add <username> <uri> <expires> .. introduce a temporary usrloc entry -- command 'fifo' fifo ............................... send raw FIFO command -- command 'cisco_restart' - restart CISCO phone (NOTIFY) cisco_restart <uri> ................ restart phone configured for <uri> -- command 'online' - dump online users from memory online ............................. display online users -- command 'monitor' - show internal status monitor ............................ show server's internal status -- command 'ping' - ping a SIP URI (OPTIONS) ping <uri> ......................... ping <uri> with SIP OPTIONS -- command 'ul|alias' - manage user location or aliases ul show [<username>]................ show in-RAM online users ul show --brief..................... show in-RAM online users in short format ul rm <username> [<contact URI>].... delete user's usrloc entries ul add <username> <uri> ............ introduce a permanent usrloc entry ul add <username> <uri> <expires> .. introduce a temporary usrloc entry
-----Original Message-----
From: sr-users-bounces@lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Juha Heinanen
Sent: Friday, June 03, 2011 3:50 PM
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing
List
Subject: [SR-Users] Questino about dialplan module
Gary Chen writes:
> I am testing out dialplan module. Every time when I
issue 'kamctl
> dialplan show', it shows what is in the database
even if I have not
> yet issue "kamctl dialplan reload' after I
changed data in database. I
> thought that dialplan is stored in the memory and
you have to issue
> the reload before you can see the change. Why the '
kamctl dialplan
> show' display the data directly from mysql database?
Does that mean
> that dialplan data is not stored in the memory?
there is no mi function to show dialplan rules in
memory. i have no
idea, what 'show' does.
please read readme of dialplan module before
asking questions about the module.
-- juha
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users