Данная страница содержит информацию по работе с сервисом Asterisk в Psi+.
Для того, чтобы использовать Asterisk с Psi+, необходимо использовать сервис Asterisk (Jingle branch) с некоторыми патчами. (This patches on the Psi side are not necessary anymore.)
Ниже представлен список известных на данный момент jingle-ботов:
JID | Описание | Работает с (проверено) | |||
echo@haar.student.utwente.nl | Простой тест echo | Psi, Psi+, Pidgin, |
|||
psi-dev@haar.student.utwente.nl | A conference room to talk about Psi+ (psi+ and psiplus@haar.student.utwente.nl work too) | Psi, Psi+, Pidgin, |
|||
tellme@haar.student.utwente.nl | A SIP bridge to the Tell Me service (hint, say Black Jack from the main menu) | Psi, Psi+, Pidgin, |
|||
echo@test.collabora.co.uk | 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.
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 username=echo@haar.student.utwente.nl/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 => echo@haar.student.utwente.nl,1,Playback(demo-echotest) ; Let them know what's going on exten => echo@haar.student.utwente.nl,n,Echo ; Do the echo test exten => echo@haar.student.utwente.nl,n,Playback(demo-echodone) ; Let them know it's over exten => echo@haar.student.utwente.nl,n,Goto(s,6) ; Start over
You can also set up a SIP bridge:
exten => tellme@haar.student.utwente.nl,1,Dial(SIP/18005558355@proxy01.sipphone.com)