Re: [SR-Users] Questino about dialplan module

2011-06-06 Thread Andrew Pogrebennyk

On 03.06.2011 22:58, Gary Chen wrote:

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?


Gary, a quick look at kamctl script proves that it displays the data 
directly from the mysql database, not from memory:



#  #
### DIALPLAN management
#
dialplan() {
require_dbengine
require_ctlengine
case $1 in
show)
shift
if [ $# -gt 0 ] ; then
mecho "dialplan $1 tables"
QUERY="select * FROM $DIALPLAN_TABLE WHERE 
$DIALPLAN_DPID_COLUMN=$1 ORDER BY $DIALPLAN_PR_COLUMN ; "
else
mecho "dialplan tables"
QUERY="select * FROM $DIALPLAN_TABLE ORDER BY 
$DIALPLAN_DPID_COLUMN, $DIALPLAN_PR_COLUMN; "
fi
$DBROCMD "$QUERY"
;;


--
Sincerely,
Andrew Pogrebennyk

___
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


Re: [SR-Users] Questino about dialplan module

2011-06-03 Thread Gary Chen
.. remove an alias (*) 

alias_db help .. help message 

-  must be an AoR (username@domain)" 

-  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  . add the domain to the database 

domain rm  .. delete the domain from the database 




-- command 'cisco_restart' - restart CISCO phone (NOTIFY) 




cisco_restart   restart phone configured for  




-- 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  . ping  with SIP OPTIONS 




-- command 'ul|alias' - manage user location or aliases 




ul show [] 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 




-- command 'fifo' 




fifo ... send raw FIFO command 




-- command 'cisco_restart' - restart CISCO phone (NOTIFY) 




cisco_restart   restart phone configured for  




-- 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  . ping  with SIP OPTIONS 




-- command 'ul|alias' - manage user location or aliases 




ul show [] 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 




-Original Message- 
From: sr-users-boun...@lists.sip-router.org 
[mailto:sr-users-boun...@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 ___
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


[SR-Users] Questino about dialplan module

2011-06-03 Thread Juha Heinanen
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


[SR-Users] Questino about dialplan module

2011-06-03 Thread Gary Chen
Kamailio 3.1.2 


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? 


Gary ___
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