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
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
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" ;;