Noah Engelberth
2012-Aug-21 19:51 UTC
[asterisk-users] Asterisk 11 - XMPP and JabberSend()
I'm trying to get my Asterisk 11 test box set up with XMPP, having troubles
with JabberSend().
My jabber.conf file is as follows:
[general]
debug=no
autoprune=no
[testaccount]
type=client
serverhost=my.jabber.server
username=myaccount at my.jabber.server
secret=mypassword
port=jabberport
usetls=yes
usesasl=yes
xmpp show connections gives the following output from the console:
testasterisk11*CLI> xmpp show connections
Jabber Users and their status:
[testaccount] asterisk at jabber.metalink.net - Connected
----
Number of clients: 1
xmpp show buddies lists out the users that are being auto-added to the
"buddy list" from the XMPP server. I try to have a test extension
send a message, and get this output (and the call fails with a
"Declined" message on the calling phone).
-- Executing [20005 at metalink:2]
JabberSend("SIP/649EF376CA25-0000000c", "testaccount,user at
my.jabber.server,Test") in new stack
[Aug 21 15:42:54] WARNING[20469][C-0000000c]: res_xmpp.c:1752 xmpp_send_exec:
JabberSend requires arguments (account,jid,message)
I've tried putting in the full username and the [testaccount] for the first
argument to JabberSend. I've tried just the username as well as the full
user at my.jabber.server<mailto:user at my.jabber.server> in the jid
argument. I've tried multi-word and single word messages. I've tried
encapsulating each argument in quotes. With XMPP debug on, I can see presence
messages being received "XMPP received from 'test account'",
but no XMPP debug output occurs when I try to place my test call to send the
XMPP message.
Kinda going cross-eyed from looking at this - is there anything else I should
try or anything wrong in my configuration?
Thank you,
Noah Engelberth
MetaLINK Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120821/82865192/attachment.htm>
----- Original Message -----> > > > > I?m trying to get my Asterisk 11 test box set up with XMPP, having > troubles with JabberSend().Hola! The underlying issue here (finger didn't hit shift to turn 2 into @) has been fixed in Asterisk 11 as of revision 371518. You can grab that specific fix from subversion, grab Asterisk 11 from subversion, or wait for the next beta. It's a minor change. Sorry for the inconvenience! Cheers, -- Joshua Colp Digium, Inc. | Senior Bacon Inspector 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org