[SR-Users] Questino about dialplan module
Andrew Pogrebennyk
andrew.pogrebennyk at portaone.com
Mon Jun 6 12:40:30 CEST 2011
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
More information about the sr-users
mailing list