[asterisk-users] Asterisk & Jabber : WARNING: res_jabber.c aji_recv_loop: JABBER: socket read error

jonas kellens jonas.kellens at telenet.be
Mon Jul 6 08:27:54 CDT 2009


I have installed gnutls and gnutls-devel from RedHat repositories
[root at asterisk asterisk]# yum install gnutls gnutls-devel

I have installed iksemel with gnutls support :
[root at asterisk asterisk]# cd /usr/src/iksemel-1.3/
[root at asterisk asterisk]#  ./configure --with-gnutls --prefix=/usr
[root at asterisk asterisk]# make
[root at asterisk asterisk]# make check
[root at asterisk asterisk]# make install
[root at asterisk asterisk]# ls -l /usr/lib | grep iksemel
-rw-r--r--  1 root root   184210 2009-07-06 14:52 libiksemel.a
-rwxr-xr-x  1 root root      816 2009-07-06 14:52 libiksemel.la
lrwxrwxrwx  1 root root       19 2009-07-06 14:52 libiksemel.so ->
libiksemel.so.3.1.0
lrwxrwxrwx  1 root root       19 2009-07-06 14:52 libiksemel.so.3 ->
libiksemel.so.3.1.0
-rwxr-xr-x  1 root root   138938 2009-07-06 14:52 libiksemel.so.3.1.0

Then compiled Asterisk again :
[root at asterisk asterisk]# cd /usr/src/asterisk-1.4.25.1/
[root at asterisk asterisk]# make clean
[root at asterisk asterisk]# ./configure 
[root at asterisk asterisk]# make menuconfig
[root at asterisk asterisk]# make
[root at asterisk asterisk]# make install

Then edited jabber.conf :
[general]
debug=yes                               ;;Turn on debugging by default.
autoprune=no                            ;;Auto remove users from buddy
list.
autoregister=yes                        ;;Auto register users from buddy
list. 

[asterisk]                              ;;label
type=component                          ;;Client or Component connection
serverhost=192.168.2.5                  ;;Route to server for example
talk.google.com
username=asterisk at 192.168.2.5           ;;Username with optional roster.
secret=XXXXXX                      ;;Password
port=5222                               ;;Port to use defaults to 5222
usetls=yes                              ;;Use tls or not
;usesasl=yes                            ;;Use sasl or not
statusmessage="I am Asterisk"           ;;Have custom status message for
Asterisk.
;timeout=100                            ;;Timeout on the message stack.

Then start Asterisk :
[root at asterisk asterisk]# /usr/sbin/asterisk -c

And this is the error concerning jabber when wanting to connect to my
OpenFire-server:
[Jul  6 15:15:36] JABBER: reconnecting.
[Jul  6 15:15:36] 
JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:component:accept' to='asterisk at 192.168.2.5' version='1.0'>
[Jul  6 15:15:36] 
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>
[Jul  6 15:15:36] 
JABBER: asterisk OUTGOING:
<handshake>2313234e99edf2891db7901990cf854e8e5639c3</handshake>
[Jul  6 15:15:36] 
JABBER: asterisk INCOMING: </stream:stream>
[Jul  6 15:15:40] WARNING[23732]: res_jabber.c:1573 aji_recv_loop:
JABBER: socket read error
[Jul  6 15:15:40] JABBER: reconnecting.
[Jul  6 15:15:40] 
JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:component:accept' to='asterisk at 192.168.2.5' version='1.0'>
[Jul  6 15:15:40] 
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>
[Jul  6 15:15:40] 
JABBER: asterisk OUTGOING:
<handshake>cccff622b0bafbf9db1e22034292e62610d93f48</handshake>
[Jul  6 15:15:40] 
JABBER: asterisk INCOMING: </stream:stream>

I don't know why connecting my Asterisk to my OpenFire (192.168.2.5)
fails...

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090706/4673a2f8/attachment.htm 


More information about the asterisk-users mailing list