<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
On Mon, 2009-07-06 at 16:18 +0100, Julian Lyndon-Smith wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#000000">I can assure you that it works, and that it works well. We use it ;)</FONT></TT><BR>
</BLOCKQUOTE>
<BR>
My jabber.conf :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[general]</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">debug=yes ;;Turn on debugging by default.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">autoprune=no ;;Auto remove users from buddy list.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">autoregister=yes ;;Auto register users from buddy list. </FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[asterisk] ;;label</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">type=client ;;Client or Component connection</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">serverhost=192.168.2.5 ;;Route to server for example talk.google.com</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">username=asterisk@192.168.2.5 ;;Username with optional roster.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">secret=XXXXXX ;;Password</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">port=5222 ;;Port to use defaults to 5222</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">usetls=yes ;;Use tls or not</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">usesasl=yes ;;Use sasl or not</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">statusmessage="I am Asterisk" ;;Have custom status message for Asterisk.</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">;timeout=100 ;;Timeout on the message stack.</FONT></FONT><BR>
<BR>
Then I get the following :<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">JABBER: asterisk INCOMING: <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="openfire.jocan.local" id="56ff9859" xml:lang="en" version="1.0"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="<A HREF="http://jabber.org/features/iq-register">http://jabber.org/features/iq-register</A>"/></stream:features></FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">JABBER: asterisk OUTGOING: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">JABBER: asterisk INCOMING: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09Im9wZW5maXJlLmpvY2FuLmxvY2FsIixub25jZT0iSngyRVZCRmlDNlI4K1hlMU5rbm9PUUNWT1VEN1pGMEpXcnRydUxjdiIscW9wPSJhdXRoIixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge></FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">JABBER: asterisk OUTGOING: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9ImFzdGVyaXNrIixyZWFsbT0ib3BlbmZpcmUuam9jYW4ubG9jYWwiLG5vbmNlPSJKeDJFVkJGaUM2UjgrWGUxTmtub09RQ1ZPVUQ3WkYwSldydHJ1TGN2Iixjbm9uY2U9IjQzZTVmYjFkNjZiMTU2OGI1MDFjNzk0ZDQ0MzMyYzFiIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwLzE5Mi4xNjguMi41IixyZXNwb25zZT1kNGUxYzQ0ZDM0OGNjNWJkN2E2MzJiNzdmZjRjZTQ0OCxjaGFyc2V0PXV0Zi04</response></FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">JABBER: asterisk INCOMING: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure></FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jul 6 20:07:57] ERROR[24565]: res_jabber.c:606 aji_act_hook: JABBER: encryption failure. possible bad password.</FONT></FONT><BR>
<BR>
I am 100% sure I have the correct password !<BR>
<BR>
I even took a very simple password without any special characters...<BR>
<BR>
Can you advise ??<BR>
<BR>
Jonas.
</BODY>
</HTML>