Asterisk-1.4 jabber connection failed

Hi,

I am facing issue in connecting asterisk-1.4 with internal(local) Jabber server (jabberd2).

I have configure jabber server with following settings:

  1. Host name set as IP address (as dont want to setup DNS things for testing purpose)
  2. I have configure ssl/tls as follow in c2s.xml config file (in local section)
    152.67.109.108

Now, asterisk shows follwing debug in console:

app_record.so => (Trivial Record Application)
Asterisk Ready.
*CLI>
JABBER: asterisk INCOMING:
[Sep 9 11:18:17] WARNING[25491]: res_jabber.c:1495 aji_recv_loop: JABBER: Failure in TLS.
JABBER: reconnecting.
JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream=‘http://etherx.jabber.org/streams’ xmlns=‘jabber:client’ to=‘152.67.109.108’ version=‘1.0’>
[Sep 9 11:18:17] NOTICE[25502]: chan_iax2.c:7872 __iax2_poke_noanswer: Peer ‘foo’ is now UNREACHABLE! Time: 0
JABBER: asterisk INCOMING: <?xml version='1.0'?><stream:stream xmlns:stream=‘http://etherx.jabber.org/streams’ xmlns=‘jabber:client’ from=‘152.67.109.108’ version=‘1.0’ id=‘ptlp4xzzktn969ybd06a4bato0l1d1h2v2sz0ryk’>
JABBER: asterisk OUTGOING:
JABBER: asterisk INCOMING: <stream:features xmlns:stream=‘http://etherx.jabber.org/streams’>PLAINDIGEST-MD5</stream:features>
[Sep 9 11:18:21] WARNING[25491]: res_jabber.c:1495 aji_recv_loop: JABBER: Failure in TLS.
JABBER: reconnecting.
JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream=‘http://etherx.jabber.org/streams’ xmlns=‘jabber:client’ to=‘152.67.109.108’ version=‘1.0’>
JABBER: asterisk INCOMING: <?xml version='1.0'?><stream:stream xmlns:stream=‘http://etherx.jabber.org/streams’ xmlns=‘jabber:client’ from=‘152.67.109.108’ version=‘1.0’ id=‘llurvt39takyluraucc7eta9w38xv7hgtb8p4byy’>
JABBER: asterisk OUTGOING:

Any one can help me. Is ther any configuration is wrong/missing?

regards,
Rock