Below are the raw inputs.
1. UserA Sends the below message to UserB
<message to='
[email protected]' type='chat' xmlns='jabber:client'><body>dd</body></message>
2. UserB is able to recieve the message body and show out put as "dd".
3. Again UserA sends the below message to UserB
<message to='
[email protected]' type='chat' xmlns='jabber:client'><body>ssss</body></message>
4.But this time UserB does not recieve any thing.
I did some change to send you the actual rawinput.
******Below is raw input which UserA([email protected]/5180c0a5) sends to UserB ([email protected])*****************
<stream:features>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>
DIGEST-MD5
</mechanism>
<mechanism>
PLAIN
</mechanism>
<mechanism>
ANONYMOUS
</mechanism>
<mechanism>
CRAM-MD5
</mechanism>
</mechanisms>
<compression xmlns='http://jabber.org/features/compress'>
<method>
zlib
</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</stream:features>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
mechanism='DIGEST-MD5'/>
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cmVhbG09IndlYjA2LnByb3ZpZGVudC5ubCIsbm9uY2U9Ii8rV3 doMzlkdHdZWWdUOXZWN2VzcE5sbkJJVWw2QXJ0ZUZIQ3I4a2Ii LHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bW Q1LXNlc3M=
</challenge>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
dXNlcm5hbWU9InN1ZGhhbnN1IixyZWFsbT0id2ViMDYucHJvdm lkZW50Lm5sIixub25jZT0iLytXd2gzOWR0d1lZZ1Q5dlY3ZXNw TmxuQklVbDZBcnRlRkhDcjhrYiIsY25vbmNlPSI4MjM1MWYwMj NlMzczYjRlMmMyZGE4MzI3NWQ5NGYzMiIsbmM9IjAwMDAwMDAx Iixxb3A9ImF1dGgiLGRpZ2VzdC11cmk9InhtcHAvd2ViMDYucH JvdmlkZW50Lm5sIixyZXNwb25zZT0iYzBkZTU1MThlZjU5MGVk MDFlOWE4NzQwMGMzZDZjOTIiLGNoYXJzZXQ9InV0Zi04Ig==
</response>
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cnNwYXV0aD1jNGJiOWRlYjRjYzdjM2JmNjU0NzI0MWE2Y2M4M2 Q4NQ==
</success>
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>
zlib
</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</stream:features>
<iq type='set'
id='_bind_auth_2'
xmlns='jabber:client'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
</iq>
<iq xmlns='jabber:client'
type='result'
id='_bind_auth_2'
to='web06.provident.nl/5180c0a5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>
[email protected]/5180c0a5
</jid>
</bind>
</iq>
<iq type='set'
id='_session_auth_2'
xmlns='jabber:client'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
<iq xmlns='jabber:client'
type='result'
id='_session_auth_2'
to='
[email protected]/5180c0a5'/>
<presence xmlns='jabber:client'/>
<presence xmlns='jabber:client'
from='
[email protected]/cf69898'
to='
[email protected]'/>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
ss
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
ff
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
gg
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
gh
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
1
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
2
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
3
</body>
</message>
<message to='
[email protected]'
type='chat'
xmlns='jabber:client'>
<body>
4
</body>
</message>
******Below is raw input which UserB ([email protected]) recieves*****************
<stream:features>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>
DIGEST-MD5
</mechanism>
<mechanism>
PLAIN
</mechanism>
<mechanism>
ANONYMOUS
</mechanism>
<mechanism>
CRAM-MD5
</mechanism>
</mechanisms>
<compression xmlns='http://jabber.org/features/compress'>
<method>
zlib
</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</stream:features>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
mechanism='DIGEST-MD5'/>
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cmVhbG09IndlYjA2LnByb3ZpZGVudC5ubCIsbm9uY2U9IlhidT UxaEwxZndxNWRsQlB3OHdGOU13VmQ3L2VjQk1yUVpSU0QvOUIi LHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bW Q1LXNlc3M=
</challenge>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
dXNlcm5hbWU9ImpvaGFuIixyZWFsbT0id2ViMDYucHJvdmlkZW 50Lm5sIixub25jZT0iWGJ1NTFoTDFmd3E1ZGxCUHc4d0Y5TXdW ZDcvZWNCTXJRWlJTRC85QiIsY25vbmNlPSJhNmRiMTNmNDM4Nj E1NjFkOTQwMjIwMjc5YWRiOTQ1YSIsbmM9IjAwMDAwMDAxIixx b3A9ImF1dGgiLGRpZ2VzdC11cmk9InhtcHAvd2ViMDYucHJvdm lkZW50Lm5sIixyZXNwb25zZT0iNTEyZjEyYjBhOGIxNGUyZGY4 YzgyNTFkMzU4YWUwMjIiLGNoYXJzZXQ9InV0Zi04Ig==
</response>
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
cnNwYXV0aD0yNDNmYTdiZjI2ODJhYTc0OGFmZmViYTBhYjBjMj dhOA==
</success>
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>
zlib
</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</stream:features>
<iq type='set'
id='_bind_auth_2'
xmlns='jabber:client'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
</iq>
<iq xmlns='jabber:client'
type='result'
id='_bind_auth_2'
to='web06.provident.nl/cf69898'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>
[email protected]/cf69898
</jid>
</bind>
</iq>
<iq type='set'
id='_session_auth_2'
xmlns='jabber:client'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
<iq xmlns='jabber:client'
type='result'
id='_session_auth_2'
to='
[email protected]/cf69898'/>
<presence xmlns='jabber:client'/>
<presence xmlns='jabber:client'
from='
[email protected]/5180c0a5'
to='
[email protected]/cf69898'/>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
ss
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
ff
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
gg
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
gh
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
1
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
2
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
3
</body>
</message>
<message xmlns='jabber:client'
to='
[email protected]'
type='chat'
from='
[email protected]/5180c0a5'>
<body>
4
</body>
</message>
By executing the CH4 i am getting this output and it seems that the message packets are not lost and received properly. But I am not able understand why the below is not working.
var full_jid = $(message).attr('from');
alert(full_jid);
var uname = Strophe.getNodeFromJid(full_jid);
var body1 = $(message).find('body');
Please help me in this case as it is very urgent to me.