[asterisk-users] Asterisk crashing when trying to start a Jabber session with ejabberd

Phil Reynolds phil-asterisk at tinsleyviaduct.com
Sun Nov 11 06:35:01 CST 2012


On Sat, 10 Nov 2012 18:08:58 +0000
Phil Reynolds <phil-asterisk at tinsleyviaduct.com> wrote:

> I have tried today to change my Jabber server from OpenFire to
> ejabberd. Unfortunately I have not been able to get Asterisk logged in
> to Jabber since. If SASL is not enabled, then ejabberd rejects the
> connection as it does not support non-SASL authentication. However, if
> SASL is enabled, Asterisk crashes when it logs in.

This is what appears in CLI when the crash occurs:

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='firthpark.tinsleyviaduct.com' version='1.0'>

JABBER: asterisk INCOMING: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2662035953' from='firthpark.tinsleyviaduct.com' version='1.0' xml:lang='en'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='TQ2JFyRoSa70h2G1bpgjzuXb2sU='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

JABBER: asterisk OUTGOING: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>

JABBER: asterisk INCOMING: <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='firthpark.tinsleyviaduct.com' version='1.0'>

JABBER: asterisk INCOMING: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1069044991' from='firthpark.tinsleyviaduct.com' version='1.0' xml:lang='en'>

JABBER: asterisk INCOMING: <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='TQ2JFyRoSa70h2G1bpgjzuXb2sU='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

JABBER: asterisk OUTGOING: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFzdGVyaXNrAGNsaWQvaW0=</auth>

JABBER: asterisk INCOMING: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='firthpark.tinsleyviaduct.com' version='1.0'>

JABBER: asterisk INCOMING: <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3920780923' from='firthpark.tinsleyviaduct.com' version='1.0' xml:lang='en'>

JABBER: asterisk INCOMING: <stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='TQ2JFyRoSa70h2G1bpgjzuXb2sU='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

JABBER: asterisk OUTGOING: <iq type='set' id='aaaaa'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>asterisk</resource></bind></iq>

JABBER: asterisk OUTGOING: <iq type='set' id='auth'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

JABBER: asterisk INCOMING: <iq id='aaaaa' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>asterisk at firthpark.tinsleyviaduct.com/asterisk</jid></bind></iq>

JABBER: asterisk OUTGOING: <presence from='asterisk at firthpark.tinsleyviaduct.com/asterisk'><status>asterisk running</status><priority>0</priority><c node='http://www.asterisk.org/xmpp/client/caps' ver='asterisk-xmpp' ext='voice-v1' xmlns='http://jabber.org/protocol/caps'/></presence>

JABBER: asterisk OUTGOING: <iq type='get' id='roster'><query xmlns='jabber:iq:roster'/></iq>

JABBER: asterisk INCOMING: <iq type='result' id='auth'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

JABBER: asterisk INCOMING: <iq from='firthpark.tinsleyviaduct.com' to='asterisk at firthpark.tinsleyviaduct.com/asterisk' id='1072575207' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='http://www.asterisk.org/xmpp/client/caps#asterisk-xmpp'/></iq>

JABBER: asterisk OUTGOING: <iq from='asterisk at firthpark.tinsleyviaduct.com/asterisk' to='firthpark.tinsleyviaduct.com' type='result' id='1072575207'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='client' type='pc' name='asterisk'/><feature var='http://www.google.com/xmpp/protocol/voice/v1'/><feature var='http://jabber.org/protocol/disco#info'/></query></iq>




-- 
Phil Reynolds
mail: phil-asterisk at tinsleyviaduct.com
Web: http://phil.tinsleyviaduct.com/



More information about the asterisk-users mailing list