Summary:ASTERISK-16859: Jabber service unable to connect to Zimbra XMPP server
Reporter:SplatNIX (uxbod)Labels:
Date Opened:2010-10-23 08:42:40Date Closed:2012-07-16 11:17:17
Versions:Frequency of
Environment:Attachments:( 0) issue18198.txt
Description:Attempting to configure the Asterisk Jabber integration with a Zimbra Version 6 XMPP server and always failing. What I see when I enable debugging, in Asterisk, is the following:

voip*CLI> jabber set debug on
Jabber Debugging Enabled.

JABBER: asterisk INCOMING: <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="domain.net" id="154c29e6" xml:lang="en" version="1.0"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>

JABBER: asterisk OUTGOING: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>

JABBER: asterisk INCOMING: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='domain.net' version='1.0'>

JABBER: asterisk INCOMING: </stream:stream>
[Oct 23 14:37:43] ERROR[26883]: res_jabber.c:1576 aji_act_hook: aji_act_hook was called with out a packet
[Oct 23 14:37:43] WARNING[26883]: res_jabber.c:1391 aji_recv: Parsing failure: Hook returned an error.
[Oct 23 14:37:43] WARNING[26883]: res_jabber.c:2742 aji_recv_loop: JABBER: Got hook event.
[Oct 23 14:37:43] WARNING[26883]: res_jabber.c:2753 aji_recv_loop: JABBER: socket read error

and from the Zimbra side:

2010-10-23 14:03:22,983 WARN  [AnonymousIoService-15] [] im - Stream error detected
java.lang.IllegalArgumentException: Illegal JID: asterisk@domain.net/d20d13a7
at org.xmpp.packet.JID.init(JID.java:401)

If I connect to the same Zimbra service using Pidgin I am prompted to accept a self signed SSL cert and then it works fine.

Any ideas ?
Comments:By: Paul Belanger (pabelanger) 2010-10-24 08:10:09

Please attach a complete debug log (see below).
We require a complete debug log to help triage the issue.

This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue:


By: Paul Belanger (pabelanger) 2010-10-27 12:40:30

Promoted to 'Acknowledge'

By: Joshua C. Colp (jcolp) 2012-07-16 11:17:17.065-0500

The newest version of Zimbra has done away with the built in XMPP server unfortunately but I have tested with Openfire (which Zimbra used) and confirmed that res_xmpp plays happy. This may have been an issue specifically with res_jabber or a configuration issue.