Сами авторы рекомендуют использовать встроенный Mod_curl
http://marc.info/?l=freeswitch-users&m=129123075514293&w=2
Показаны сообщения с ярлыком FreeSWITCH. Показать все сообщения
Показаны сообщения с ярлыком FreeSWITCH. Показать все сообщения
пятница, 16 января 2015 г.
четверг, 25 декабря 2014 г.
FreeSWITCH: BLA, BLF, SLA
BLA stands for Bridged Line Appearance. It allows a user to receive and make calls on the line appearance of another user that appears on their phone. It also shows whether that user is on the phone or not.
SLA - Shared Line Appearance
Shared Line Appearances: SLAs allow you to place a call on hold at one set and pick it up easily at another set. SLA is also known as SCA: Shared Call Appearance. You can join an existing conversation be pressing the corresponding line button. Typically the phones will have dedicated buttons with LEDs for each of the shared lines.
BLF (busy lamp field)
BLF stands for Busy Lamp Field. It will show you if the user is on the phone or not, and allows you to use that button as a speed dial to call that user. You can not make a call on that user's line from your phone.
http://www.voip-info.org/wiki/view/Asterisk+SLA
http://lists.sip-router.org/pipermail/users/2008-August/019369.html
SLA - Shared Line Appearance
Shared Line Appearances: SLAs allow you to place a call on hold at one set and pick it up easily at another set. SLA is also known as SCA: Shared Call Appearance. You can join an existing conversation be pressing the corresponding line button. Typically the phones will have dedicated buttons with LEDs for each of the shared lines.
BLF (busy lamp field)
BLF stands for Busy Lamp Field. It will show you if the user is on the phone or not, and allows you to use that button as a speed dial to call that user. You can not make a call on that user's line from your phone.
http://lists.sip-router.org/pipermail/users/2008-August/019369.html
четверг, 18 сентября 2014 г.
FreeSWITCH: русификация
Чтобы русифицировать то же IVR меню, нужно:
1) установить mod_say_ru и активировать его в modules
2) установить русские звуки elena (например freeswitch-sounds-ru-RU-elena-all)
3) добавить в vars.xml
<X-PRE-PROCESS cmd="set" data="default_language=ru"/>
4) перезапустить freeswitch или перечитать настройки через reloadxml
1) установить mod_say_ru и активировать его в modules
2) установить русские звуки elena (например freeswitch-sounds-ru-RU-elena-all)
3) добавить в vars.xml
<X-PRE-PROCESS cmd="set" data="default_language=ru"/>
4) перезапустить freeswitch или перечитать настройки через reloadxml
понедельник, 7 июля 2014 г.
четверг, 3 июля 2014 г.
FreeSWITCH: shoutcast
Вроде бы, зачем может быть нужен shoutcast? Но он становится полезен, когда есть большая очередь, внешний источник звука может существенно разгрузить диск и freeswitch. Но надо быть осторожным с перекодированием из mp3, это требует ресурсы.
https://wiki.freeswitch.org/wiki/Mod_shout
простейший пример
Можно и писать на сервер (что-то транслировать в мир)
Пример в вики (и выше) указывает на несуществующий адрес, для теста можно взять тут
http://www.shoutcast.com/
http://radio.aol.ca/
https://wiki.freeswitch.org/wiki/Mod_shout
простейший пример
<action application="playback" data="shout://scfire-dll-aa02.stream.aol.com:80/stream/1074"/>
Можно и писать на сервер (что-то транслировать в мир)
<action application="record" data="shout://source:pass@10.10.10.10:8000/stream.mp3"/>
Пример в вики (и выше) указывает на несуществующий адрес, для теста можно взять тут
http://www.shoutcast.com/
http://radio.aol.ca/
вторник, 24 июня 2014 г.
Разбираемся с kazoo
будет дополняться, в работе
Ещё недавно было описание на http://2600hz.org/products.html, но больше нету. Есть чуть более полное описание тут
http://www.ohloh.net/p/KazooPlatform
Kazoo is a scalable, distributed, cloud-based telephony platform that allows you to build powerful telephony applications with a rich set of APIs.
Designed to handle anything from large carrier to small countries, the Kazoo infrastructure can do it all. There are no lock-ins and the software is open-source to give you complete freedom. Come join us and change the way people communicate; the VoIP revolution is here.
Services include:
- Complete redundancy and failover between data centers
- Complete replication of all data
- Use of Map/Reduce algorithms inside NoSQL databases
- Multi-master replication and caching of registrations, active channels and call lookups
- Load balancing built-in
- Event driven messaging for managing and using calls
- A complete REST interface for implementing call flow features
pdf о структуре, оно же на 2 сайтах
http://www.kamailio.org/events/2013-KamailioWorld/11-James.Aimonetti-Kazoo.pdf
http://www.scribd.com/doc/143292637/2600hz-Kazoo-Kamailio-Integration-Deck-from-Kamailio-World
Ещё недавно было описание на http://2600hz.org/products.html, но больше нету. Есть чуть более полное описание тут
http://www.ohloh.net/p/KazooPlatform
Kazoo is a scalable, distributed, cloud-based telephony platform that allows you to build powerful telephony applications with a rich set of APIs.
Designed to handle anything from large carrier to small countries, the Kazoo infrastructure can do it all. There are no lock-ins and the software is open-source to give you complete freedom. Come join us and change the way people communicate; the VoIP revolution is here.
Services include:
- Complete redundancy and failover between data centers
- Complete replication of all data
- Use of Map/Reduce algorithms inside NoSQL databases
- Multi-master replication and caching of registrations, active channels and call lookups
- Load balancing built-in
- Event driven messaging for managing and using calls
- A complete REST interface for implementing call flow features
pdf о структуре, оно же на 2 сайтах
http://www.kamailio.org/events/2013-KamailioWorld/11-James.Aimonetti-Kazoo.pdf
http://www.scribd.com/doc/143292637/2600hz-Kazoo-Kamailio-Integration-Deck-from-Kamailio-World
вторник, 3 июня 2014 г.
FreeSWITCH: ACL
https://wiki.freeswitch.org/wiki/ACL
ACL во FreeSWITCH
http://blog.2600hz.com/post/18096749028/understanding-how-fs-supports-opensips-as-a
Пример: когда надо сделать авторизацию по IP (например FS стоит за opensips/kamailio) и всё лишнее фильтруется, можно сделать так:
autoload_configs\acl.conf.xml
<list name="sip_ip_auth" default="deny">
<node type="allow" cidr="200.2.2.2/32"/>
</list>
sip_profiles/internal.xml
set auth-calls=false
и пример из dialplan/public.xml
<extension name="from_kamailio">
<condition field="network_addr" expression="^2\.1\.10\.10$" />
<condition field="destination_number" expression="^(.*)$">
<!-- <action application="info"/> -->
<action application="bridge" data="sofia/internal/$1@1.1.1.1"/>
<!-- <action application="transfer" data="$1 XML default"/> -->
</condition>
</extension>
ещё линки
https://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg00679.html
ACL во FreeSWITCH
http://blog.2600hz.com/post/18096749028/understanding-how-fs-supports-opensips-as-a
Пример: когда надо сделать авторизацию по IP (например FS стоит за opensips/kamailio) и всё лишнее фильтруется, можно сделать так:
autoload_configs\acl.conf.xml
<list name="sip_ip_auth" default="deny">
<node type="allow" cidr="200.2.2.2/32"/>
</list>
sip_profiles/internal.xml
set auth-calls=false
и пример из dialplan/public.xml
<extension name="from_kamailio">
<condition field="network_addr" expression="^2\.1\.10\.10$" />
<condition field="destination_number" expression="^(.*)$">
<!-- <action application="info"/> -->
<action application="bridge" data="sofia/internal/$1@1.1.1.1"/>
<!-- <action application="transfer" data="$1 XML default"/> -->
</condition>
</extension>
в данной схеме не будет работать multi-tenant, тут надо вместо айпи что-то типа ${to-domain} (именно такой переменной нету)
Включив action application="info" -- можно увидеть все доступные переменные, также через консоль: uuid_dump id_ноги
https://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg00679.html
пятница, 30 мая 2014 г.
четверг, 29 мая 2014 г.
FreeSWITCH: ставим в centos 6
Что это вообще? Это цифровая АТС, sip-сервер, как asterisk, не такой популярный но в ряде вещей более гибкий. А ещё он более производительный:
Битва титанов FreeSwitch vs. Asterisk — Тест производительности
Установка есть 2 методами: сборка из исходников и подключение репы.
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide
Проще и правильнее из пакетов.
src:
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide#Source_Options#Source_Options
http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide
yum:
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide#YUM_Based_Installation
http://files.freeswitch.org/yum/6/i386/
https://plone.lucidsolutions.co.nz/linux/freeswitch/install-freeswitch-on-a-centos-v6-vm
Битва титанов FreeSwitch vs. Asterisk — Тест производительности
Установка есть 2 методами: сборка из исходников и подключение репы.
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide
Проще и правильнее из пакетов.
src:
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide#Source_Options#Source_Options
http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide
yum:
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm
http://wiki.freeswitch.org/wiki/Download_%26_Installation_Guide#YUM_Based_Installation
http://files.freeswitch.org/yum/6/i386/
https://plone.lucidsolutions.co.nz/linux/freeswitch/install-freeswitch-on-a-centos-v6-vm
понедельник, 26 мая 2014 г.
FreeSWITCH: не запускается
Может быть такое, что сделали service freeswitch restart -- и больше ничего не работает, в логах пусто даже несмотря на то, что включен mod_logfile и mod_syslog. И странно, что нет опции configtest.
Проверить конфиг можно так:
То, что нет языковых каталогов хоть и ERR, но запуску не мешает, а вот незакрытый комментарий это серьёзно. Настолько, что даже в лог ничего не написать...
А что за странная строка 4424? Ответ искать в /var/log/freeswitch/freeswitch.xml.fsxml - сюда объединяются все конфиги. Править его бесполезно, но найти конкретное место и уже его искать в оригинальных конфигах можно.
Такой бы файлик еще для nginx-а...
Да, если что -- выход ... (три точки)
Проверить конфиг можно так:
# freeswitch -nf -c -u freeswitch
2014-05-26 19:30:06.166869 [INFO] switch_event.c:649 Activate Eventing Engine.
2014-05-26 19:30:06.177138 [WARNING] switch_event.c:623 Create additional event dispatch thread 0
2014-05-26 19:30:06.199407 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/de/*.xml (No such file or directory)
2014-05-26 19:30:06.204145 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/fr/*.xml (No such file or directory)
2014-05-26 19:30:06.204169 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/ru/*.xml (No such file or directory)
2014-05-26 19:30:06.204187 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/he/*.xml (No such file or directory)
2014-05-26 19:30:06.204203 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/es/es_ES.xml (No such file or directory)
2014-05-26 19:30:06.204224 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/pt/pt_BR.xml (No such file or directory)
Cannot Initialize [[error near line 4424]: unclosed <!--]
#
2014-05-26 19:30:06.166869 [INFO] switch_event.c:649 Activate Eventing Engine.
2014-05-26 19:30:06.177138 [WARNING] switch_event.c:623 Create additional event dispatch thread 0
2014-05-26 19:30:06.199407 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/de/*.xml (No such file or directory)
2014-05-26 19:30:06.204145 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/fr/*.xml (No such file or directory)
2014-05-26 19:30:06.204169 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/ru/*.xml (No such file or directory)
2014-05-26 19:30:06.204187 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/he/*.xml (No such file or directory)
2014-05-26 19:30:06.204203 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/es/es_ES.xml (No such file or directory)
2014-05-26 19:30:06.204224 [ERR] switch_xml.c:1385 Couldnt open /etc/freeswitch/lang/pt/pt_BR.xml (No such file or directory)
Cannot Initialize [[error near line 4424]: unclosed <!--]
#
То, что нет языковых каталогов хоть и ERR, но запуску не мешает, а вот незакрытый комментарий это серьёзно. Настолько, что даже в лог ничего не написать...
А что за странная строка 4424? Ответ искать в /var/log/freeswitch/freeswitch.xml.fsxml - сюда объединяются все конфиги. Править его бесполезно, но найти конкретное место и уже его искать в оригинальных конфигах можно.
Такой бы файлик еще для nginx-а...
Да, если что -- выход ... (три точки)
Подписаться на:
Сообщения (Atom)