<!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>
I have installed gnutls and gnutls-devel from RedHat repositories<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# yum install gnutls gnutls-devel</FONT></FONT><BR>
<BR>
I have installed iksemel with gnutls support :<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# cd /usr/src/iksemel-1.3/</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]#&nbsp; ./configure --with-gnutls --prefix=/usr</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make check</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make install</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# ls -l /usr/lib | grep iksemel</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">-rw-r--r--&nbsp; 1 root root&nbsp;&nbsp; 184210 2009-07-06 14:52 libiksemel.a</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">-rwxr-xr-x&nbsp; 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 816 2009-07-06 14:52 libiksemel.la</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">lrwxrwxrwx&nbsp; 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 2009-07-06 14:52 libiksemel.so -&gt; libiksemel.so.3.1.0</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">lrwxrwxrwx&nbsp; 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19 2009-07-06 14:52 libiksemel.so.3 -&gt; libiksemel.so.3.1.0</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">-rwxr-xr-x&nbsp; 1 root root&nbsp;&nbsp; 138938 2009-07-06 14:52 libiksemel.so.3.1.0</FONT></FONT><BR>
<BR>
Then compiled Asterisk again :<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# cd /usr/src/asterisk-1.4.25.1/</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make clean</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# ./configure </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make menuconfig</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[root@asterisk asterisk]# make install</FONT></FONT><BR>
<BR>
Then edited jabber.conf :<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[general]</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">debug=yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Turn on debugging by default.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">autoprune=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Auto remove users from buddy list.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">autoregister=yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Auto register users from buddy list. </FONT></FONT><BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[asterisk]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;label</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">type=component&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Client or Component connection</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">serverhost=192.168.2.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Route to server for example talk.google.com</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">username=asterisk@192.168.2.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Username with optional roster.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">secret=XXXXXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Password</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">port=5222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Port to use defaults to 5222</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">usetls=yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Use tls or not</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">;usesasl=yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Use sasl or not</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">statusmessage=&quot;I am Asterisk&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Have custom status message for Asterisk.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">;timeout=100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;Timeout on the message stack.</FONT></FONT><BR>
<BR>
Then start Asterisk :<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[root@asterisk asterisk]# /usr/sbin/asterisk -c</FONT></FONT><BR>
<BR>
And this is the error concerning jabber when wanting to connect to my OpenFire-server:<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:36] JABBER: reconnecting.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: &lt;?xml version='1.0'?&gt;&lt;stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:component:accept' to='asterisk@192.168.2.5' version='1.0'&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: &lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;stream:stream from=&quot;openfire.jocan.local&quot; id=&quot;7pI2f&quot; xmlns=&quot;jabber:component:accept&quot; xmlns:stream=&quot;http://etherx.jabber.org/streams&quot; version=&quot;1.0&quot;&gt;&lt;stream:error xmlns:stream=&quot;http://etherx.jabber.org/streams&quot;&gt;&lt;bad-namespace-prefix xmlns=&quot;urn:ietf:params:xml:ns:xmpp-streams&quot;/&gt;&lt;/stream:error&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: &lt;handshake&gt;2313234e99edf2891db7901990cf854e8e5639c3&lt;/handshake&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: &lt;/stream:stream&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] WARNING[23732]: res_jabber.c:1573 aji_recv_loop: JABBER: socket read error</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] JABBER: reconnecting.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: &lt;?xml version='1.0'?&gt;&lt;stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:component:accept' to='asterisk@192.168.2.5' version='1.0'&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: &lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;stream:stream from=&quot;openfire.jocan.local&quot; id=&quot;3oygw&quot; xmlns=&quot;jabber:component:accept&quot; xmlns:stream=&quot;http://etherx.jabber.org/streams&quot; version=&quot;1.0&quot;&gt;&lt;stream:error xmlns:stream=&quot;http://etherx.jabber.org/streams&quot;&gt;&lt;bad-namespace-prefix xmlns=&quot;urn:ietf:params:xml:ns:xmpp-streams&quot;/&gt;&lt;/stream:error&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: &lt;handshake&gt;cccff622b0bafbf9db1e22034292e62610d93f48&lt;/handshake&gt;</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul&nbsp; 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: &lt;/stream:stream&gt;</FONT></FONT><BR>
<BR>
I don't know why connecting my Asterisk to my OpenFire (192.168.2.5) fails...<BR>
<BR>
Jonas.
</BODY>
</HTML>