freeswitchforum.com
https://freeswitchforum.com/

Тренинг FusionPBX XML Handler
https://freeswitchforum.com/viewtopic.php?f=6&t=570
Страница 1 из 1

Автор:  awsswa [ 01 ноя 2015 11:33 ]
Заголовок сообщения:  Тренинг FusionPBX XML Handler

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="xml­handler­script" value="/dp.lua"/>--­­>
<!­­--<param name="xml­handler­bindings" value="dialplan"/>--­­>

after:
<param name="xml­handler­script" value="app.lua xml_handler"/>
<param name="xml­handler­bindings" value="configuration,dialplan,directory"/>

sed -i /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml -e s:' ​<!--­­<param name="xml­handler­script" value="/dp.lua"/>­­-->​: ​<param name="xml­handler­script" value="app.lua xml_handler"/>​

sed -i /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml -e s:' ​<!--­­<param name="xml­handler­bindings" value="dialplan"/>--­­>​: ​<param name="xml­handler­bindings" 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

Страница 1 из 1 Часовой пояс: UTC + 4 часа
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/