XML Handler On demand using the Lua XML Handler (How to set it up) App > Hotdesking is requires XML Handler Backup the conf directory as an easy way to revert back to static xml files cp -R /usr/local/freeswitch/conf /usr/local/freeswitch/conf.bak
Fail2ban - turn it off until FreeSWITCH has been restarted so that you don’t get banned or add ip addresses for all customer ips to the ignore_ip_list
works good for multiple servers when database is shared between the servers Get the config from the database on demand.
advanced > xml editor >autoload_configs/lua.conf.xml uncomment the following
before: <!--<param name="xmlhandlerscript" value="/dp.lua"/>--> <!--<param name="xmlhandlerbindings" value="dialplan"/>--> after: <param name="xmlhandlerscript" value="app.lua xml_handler"/> <param name="xmlhandlerbindings" value="configuration,dialplan,directory"/> sed -i /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml -e s:' <!--<param name="xmlhandlerscript" value="/dp.lua"/>-->: <param name="xmlhandlerscript" value="app.lua xml_handler"/>
sed -i /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml -e s:' <!--<param name="xmlhandlerbindings" value="dialplan"/>-->: <param name="xmlhandlerbindings" value="configuration,dialplan,directory"/>:'
remove xml files and replace with empty.xml
dialplan rm -R /usr/local/freeswitch/conf/dialplan/* touch /usr/local/freeswitch/conf/dialplan/empty.xml
directory rm -R /usr/local/freeswitch/conf/directory/* touch /usr/local/freeswitch/conf/directory/empty.xml
sip_profiles rm -R /usr/local/freeswitch/conf/sip_profiles/* touch /usr/local/freeswitch/conf/sip_profiles/empty.xml
This tells fusionpbx to stop writing the xml files to these directories (остановить сохранение конфигурации в xml файлы) ■ advanced > default settings ■ switch > dir > dialplan > enabled > false ■ switch > dir > extensions > enabled > false ■ switch > dir > sip_profiles > enabled > false
_________________ коммерческая поддержка skype: yarick_perm
|