[asterisk-users] Asterisk and XMPP (Jabber) : testing new application JabberReceive

Philippe Sultan philippe.sultan at gmail.com
Wed Jun 11 17:11:07 CDT 2008


Friends,

a new dialplan application is now available for testing :
http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/

The corresponding feature request is located here :
http://bugs.digium.com/view.php?id=12569

What can you do with it? Well, a direct usage of this application is
to make an easy to use GoogleTalk voice gateway out of Asterisk. Here
is an example (assuming the asterisk-xmpp account is configured) :
context gtalk-in {
    s => {
        NoOp(Caller id : ${CALLERID(all)});
        Answer();
        JabberSend(asterisk-xmpp,${CALLERID(name),Please enter the
number you wish to call);
        JabberReceive(${CALLERID(name)},NEWEXTEN);
        JabberSend(asterisk-xmpp,$(CALLERID(name),(Calling ${NEWEXTEN} ...);
        Dial(SIP/${NEWEXTEN);
        Hangup();
    }
}

In this example, when Asterisk receives a GoogleTalk voice call
request from a GoogleTalk buddy, it answers the call, and asks the
buddy to enter a number over an XMPP (Jabber) chat session. Then,
Asterisk dials the extension (accessible over SIP), which results in a
GoogleTalk to SIP call.

But this application is not restricted to GoogleTalk voice calls, and
it can be used within any call context. Code snippets are available in
the corresponding feature request under the bugtracker as well as in
doc/jabber.txt.

The codebase is Asterisk's SVN trunk, which is merged to the
jabberreceive branch on a regular basis. To install it, follow these
steps :
#svn co http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/
jabberreceive
#cd jabberreceive
#./configure
#make
#make install

Note for Linux users : the Gnome IM+ToIP client Empathy (starting from
version 0.23.1) is now compatible with Asterisk, which allows users to
place voice calls over a GoogleTalk channel from their Empathy client
to Asterisk.

Please give your feedback!

Thanks i advance,

Philippe



More information about the asterisk-users mailing list