<!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]# ./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-- 1 root root 184210 2009-07-06 14:52 libiksemel.a</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">-rwxr-xr-x 1 root root 816 2009-07-06 14:52 libiksemel.la</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">lrwxrwxrwx 1 root root 19 2009-07-06 14:52 libiksemel.so -> libiksemel.so.3.1.0</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">lrwxrwxrwx 1 root root 19 2009-07-06 14:52 libiksemel.so.3 -> libiksemel.so.3.1.0</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">-rwxr-xr-x 1 root root 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 ;;Turn on debugging by default.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">autoprune=no ;;Auto remove users from buddy list.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">autoregister=yes ;;Auto register users from buddy list. </FONT></FONT><BR>
<BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[asterisk] ;;label</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">type=component ;;Client or Component connection</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">serverhost=192.168.2.5 ;;Route to server for example talk.google.com</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">username=asterisk@192.168.2.5 ;;Username with optional roster.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">secret=XXXXXX ;;Password</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">port=5222 ;;Port to use defaults to 5222</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">usetls=yes ;;Use tls or not</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">;usesasl=yes ;;Use sasl or not</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">statusmessage="I am Asterisk" ;;Have custom status message for Asterisk.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">;timeout=100 ;;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 6 15:15:36] JABBER: reconnecting.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:component:accept' to='asterisk@192.168.2.5' version='1.0'></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: <?xml version='1.0' encoding='UTF-8'?><stream:stream from="openfire.jocan.local" id="7pI2f" xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"><stream:error xmlns:stream="http://etherx.jabber.org/streams"><bad-namespace-prefix xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: <handshake>2313234e99edf2891db7901990cf854e8e5639c3</handshake></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:36] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: </stream:stream></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 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 6 15:15:40] JABBER: reconnecting.</FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:component:accept' to='asterisk@192.168.2.5' version='1.0'></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: <?xml version='1.0' encoding='UTF-8'?><stream:stream from="openfire.jocan.local" id="3oygw" xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"><stream:error xmlns:stream="http://etherx.jabber.org/streams"><bad-namespace-prefix xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk OUTGOING: <handshake>cccff622b0bafbf9db1e22034292e62610d93f48</handshake></FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">[Jul 6 15:15:40] </FONT></FONT><BR>
<FONT COLOR="#0000ff"><FONT SIZE="2">JABBER: asterisk INCOMING: </stream:stream></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>