freeswitchforum.com

Форум поддержки FreeSWITCH

FreeSWITCH is a registered trademark of Anthony Minessale. Official FreeSWITCH site.

Текущее время: 29 мар 2024 00:48

Часовой пояс: UTC + 4 часа




Начать новую тему Ответить на тему  [ 1 сообщение ] 
Автор Сообщение
 Заголовок сообщения: Тренинг FusionPBX XML Handler
СообщениеДобавлено: 01 ноя 2015 11:33 

Зарегистрирован: 11 авг 2015 08:59
Сообщения: 47
Откуда: Russia,Perm
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

_________________
коммерческая поддержка skype: yarick_perm


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ 1 сообщение ] 

Часовой пояс: UTC + 4 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 41


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Powered by phpBB® Forum Software © phpBB Group
Русская поддержка phpBB