Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
skhanna #1
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Subject: Message not received
Hi Alex,

I am sending message to room. First I join room then i send message to room after that I leave from room. But members are not receiving any message. Can you please check the log xml.

  1. Timestamp: 8/11/2016 5:50:32 AM
  2. OnSendXML: <presence to="41fc94d4-9aa9-4be9-bfb9-1dc10b2c3657@conference.eworkplace0/Connect" xmlns="jabber:client">
  3.  <x xmlns="http://jabber.org/protocol/muc">
  4.     <history maxchars="0" />
  5.  </x>
  6. </presence>
  7.  
  8. ----------------------------------------
  9. Timestamp: 8/11/2016 5:50:32 AM
  10. OnSendXML: <message type="groupchat" to="41fc94d4-9aa9-4be9-bfb9-1dc10b2c3657@conference.eworkplace0" messageid="dfd75df3-c3aa-447f-8806-546dd310d0c9" senderid="e6977c7b-37f0-4c0c-b1e2-922ba8523e95" messagetype="1" sendername="Sanjeev Khanna" sendtime="2016-08-11T12:50:31.9100000" sendertype="1" threadtype="0" xmlns="jabber:server">
  11.  <body>1234</body>
  12. </message>
  13.  
  14. ----------------------------------------
  15. Timestamp: 8/11/2016 5:50:32 AM
  16. OnSendXML: <presence to="41fc94d4-9aa9-4be9-bfb9-1dc10b2c3657@conference.eworkplace0/Connect" type="unavailable" xmlns="jabber:client" />
  17. ----------------------------------------
  18. Timestamp: 8/11/2016 5:50:32 AM
  19. OnSendXML: <presence to="e373b82c-e6ce-4013-b70b-da476c99919d@eworkplace0/MatriX" from="41fc94d4-9aa9-4be9-bfb9-1dc10b2c3657@conference.eworkplace0/Connect" type="error" xmlns="jabber:client">
  20.  <x xmlns="http://jabber.org/protocol/muc">
  21.     <history maxchars="0" />
  22.  </x>
  23.  <error code="407" type="auth">
  24.     <registration-required xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  25.  </error>
  26. </presence>
  27.  
  28. ----------------------------------------
  29. Timestamp: 8/11/2016 5:50:32 AM
  30. Title:OnSendXML: <message type="error" to="e373b82c-e6ce-4013-b70b-da476c99919d@eworkplace0/MatriX" messageid="dfd75df3-c3aa-447f-8806-546dd310d0c9" senderid="e6977c7b-37f0-4c0c-b1e2-922ba8523e95" messagetype="1" sendername="Sanjeev Khanna" sendtime="2016-08-11T12:50:31.9100000" sendertype="1" threadtype="0" from="41fc94d4-9aa9-4be9-bfb9-1dc10b2c3657@conference.eworkplace0" xmlns="jabber:client">
  31.  <body>1234</body>
  32.  <error code="406" type="modify">
  33.     <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  34.  </error>
  35. </message>


Thanks,
Sanjeev
This post was edited on 2016-08-11, 17:41 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
it looks to me like you are not waiting until you joined the room. You are just sending the message after your presence packet which is wrong.

You have to wait until you entered the room and get presence back room it. You can use the Async members for this (EnterRoomAsync).
Avatar
skhanna #3
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Thanks

I did not find EnterRoomAsync method in MUCManager class.

Sanjeev
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this is available when you use .NET 4.5 builds. If you are still on older .NET versions you have to check yourself when the room is ready for sending messages.
See here in the documentation what the flow is when you enter a room:
http://www.xmpp.org/extensions/xep-0045.html#enter

Alex
Avatar
skhanna #5
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
I am using .Net Framework 4.5.1 but this method is not available.
Avatar
skhanna #6
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Hi Alex,

One more error is logged in my log file.

OnError: The Open method cannot be called on an active stream.

What it means ?

Sanjeev
Avatar
Alex #7
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
that means that you called Open on a XmppClient instance which is already connected, or in the state of connection.

Please do not switch topics in threads. If there is a new topic then Open a new thread, and please use the forums search before you start new threads.
Avatar
skhanna #8
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
ok Alex.

I will check and create new thread for new topic.

I am using .Net Framework 4.5.1 but EnterRoomAsync method is not available. Why ?

Sanjeev
Avatar
skhanna #9
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Alex,

I found the method. I was using old Matrix binaries. Now I updated it to 2.0.

Thanks
Sanjeev
Avatar
skhanna #10
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Sorry to ask you again but it's argent.

After update matrix library to 2.0, I am getting connection close error. Can you please help me to resolve this issue. My XML log is

  1. ----------------------------------------
  2. Timestamp: 8/11/2016 2:39:29 PM
  3. Title:starting reconnect timer...
  4. ----------------------------------------
  5. Timestamp: 8/11/2016 2:39:34 PM
  6. Title:connect: XMPP connecting....
  7. ----------------------------------------
  8. Timestamp: 8/11/2016 2:39:34 PM
  9. Title:OnSendXML: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="eworkplace0" version="1.0" >
  10. ----------------------------------------
  11. Timestamp: 8/11/2016 2:39:34 PM
  12. Title:OnSendXML: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="eworkplace0" id="9r0q2d6c8n" xml:lang="en" version="1.0" >
  13. ----------------------------------------
  14. Timestamp: 8/11/2016 2:39:34 PM
  15. Title:OnSendXML: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  16.  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  17.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  18.     <mechanism>PLAIN</mechanism>
  19.     <mechanism>SCRAM-SHA-1</mechanism>
  20.     <mechanism>CRAM-MD5</mechanism>
  21.     <mechanism>DIGEST-MD5</mechanism>
  22.  </mechanisms>
  23.  <compression xmlns="http://jabber.org/features/compress">
  24.     <method>zlib</method>
  25.  </compression>
  26.  <auth xmlns="http://jabber.org/features/iq-auth" />
  27.  <register xmlns="http://jabber.org/features/iq-register" />
  28. </stream:features>
  29. ----------------------------------------
  30. Timestamp: 8/11/2016 2:39:34 PM
  31. Title:OnSendXML: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  32. ----------------------------------------
  33. Timestamp: 8/11/2016 2:39:34 PM
  34. Title:OnSendXML: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  35. ----------------------------------------
  36. Timestamp: 8/11/2016 2:39:34 PM
  37. Title:OnSendXML: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="eworkplace0" version="1.0" >
  38. ----------------------------------------
  39. Timestamp: 8/11/2016 2:39:34 PM
  40. Title:OnSendXML: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="eworkplace0" id="9r0q2d6c8n" xml:lang="en" version="1.0" >
  41. ----------------------------------------
  42. Timestamp: 8/11/2016 2:39:34 PM
  43. Title:OnSendXML: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  44.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  45.     <mechanism>PLAIN</mechanism>
  46.     <mechanism>SCRAM-SHA-1</mechanism>
  47.     <mechanism>CRAM-MD5</mechanism>
  48.     <mechanism>DIGEST-MD5</mechanism>
  49.  </mechanisms>
  50.  <compression xmlns="http://jabber.org/features/compress">
  51.     <method>zlib</method>
  52.  </compression>
  53.  <auth xmlns="http://jabber.org/features/iq-auth" />
  54.  <register xmlns="http://jabber.org/features/iq-register" />
  55. </stream:features>
  56. ----------------------------------------
  57. Timestamp: 8/11/2016 2:39:34 PM
  58. Title:OnSendXML: <auth mechanism="SCRAM-SHA-1" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">biwsbj1lMzczYjgyYy1lNmNlLTQwMTMtYjcwYi1kYTQ3NmM5OTkxOWRAZXdvcmtwbGFjZTAscj1SNjdRUTREdWRxR0IrOUVHNUg0R3ZpK0Njc1JOWDlTUQ==</auth>
  59. ----------------------------------------
  60. Timestamp: 8/11/2016 2:39:34 PM
  61. Title:OnSendXML: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj1SNjdRUTREdWRxR0IrOUVHNUg0R3ZpK0Njc1JOWDlTUTQ3ZWQ5OWVjLWI1ZGUtNDA1Ny1hYzUxLTY1NjIxYTgwN2I3OSxzPU5SV3M2MllDQ0NoVXppdVRIUW9pQlNicjZVWkM5aURtLGk9NDA5Ng==</challenge>
  62. ----------------------------------------
  63. Timestamp: 8/11/2016 2:39:34 PM
  64. Title:OnSendXML: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9UjY3UVE0RHVkcUdCKzlFRzVINEd2aStDY3NSTlg5U1E0N2VkOTllYy1iNWRlLTQwNTctYWM1MS02NTYyMWE4MDdiNzkscD0vRkxqUnZ4ajBwYlNqZXlMbVYyVjFKaEhQV3M9</response>
  65. ----------------------------------------
  66. Timestamp: 8/11/2016 2:39:34 PM
  67. Title:OnSendXML: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1ycG8zeVF3dGJ5anE2aVd2bytSVkh2em1QdmM9</success>
Thanks,
Sanjeev
This post was edited on 2016-08-12, 10:34 by Alex.
Avatar
Alex #11
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you log ends after authentication. Ì don't see why it stops. Check all the OnError handlers.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS