Table of Contents

Jingle bots, offering Asterisk services to Psi+

Вступление

Данная страница содержит информацию по работе с сервисом Asterisk в Psi+.

Подробности

Для того, чтобы использовать Asterisk с Psi+, необходимо использовать сервис Asterisk (Jingle branch) с некоторыми патчами. (This patches on the Psi side are not necessary anymore.)

Публичные Jingle-боты

Ниже представлен список известных на данный момент jingle-ботов:

JID Описание Работает с (проверено)
[email protected] Простой тест echo Psi, Psi+, Pidgin, Google Talk, QIP, Nokia N900, SIP
[email protected] A conference room to talk about Psi+ (psi+ and [email protected] work too) Psi, Psi+, Pidgin, Google Talk, QIP, Nokia N900, SIP
[email protected] A SIP bridge to the Tell Me service (hint, say Black Jack from the main menu) Psi, Psi+, Pidgin, Google Talk, QIP, Nokia N900
[email protected] A test bot by Collabora with several tests including an echo and a video test Psi, Psi+

Инструкция по использованию

To use one of the bots listed above:

The contact should pick up the call and offer the noted service.

Настройка Asterisk для использования с Psi+

svn -r 281181 co http://svn.digium.com/svn/asterisk/team/phsultan/jingle-support/
wget http://haar.student.utwente.nl/~julius/patches/asterisk-jingle-hacks-20100430.patch.txt
wget "https://issues.asterisk.org/file_download.php?file_id=25936&type=bug" -O patch-jingle_speex-1.diff
cd jingle-support
patch -p1 < ../asterisk-jingle-hacks-20100430.patch.txt
patch -p0 < ../patch-jingle_speex-1.diff
./configure
make menuselect
make
make install
make samples
[echo]]
type=client
serverhost=localhost
[email protected]/asterisk
secret=<password>
port=5222
usetls=no
usesasl=no
statusmessage=voice: echo test

Note that in the above case, Asterisk is running on the same server as the XMPP daemon.

Make sure speex is allowed, the two lines below should work

disallow=all
allow=speex

Take note of the context or change it to something like public

context=public

* Edit /etc/asterisk/extensions.conf:

Edit or create a new context and set your dialing rules:

This is the example for an echo test:

exten => [email protected],1,Playback(demo-echotest) ; Let them know what's going on
exten => [email protected],n,Echo                    ; Do the echo test
exten => [email protected],n,Playback(demo-echodone) ; Let them know it's over
exten => [email protected],n,Goto(s,6)               ; Start over

You can also set up a SIP bridge:

exten => [email protected],1,Dial(SIP/[email protected])

Изветсные проблемы