Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
skhanna #1
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Subject: Send message to multiple users without MUC
Hi Alex,

My requirement is to send same message to multiple users. I don't want to use MUC room. Can I send message to multiple users without any loop?

Thanks,
Sanjeev
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes you can do it in a loop.
Or you just can use XEP-0033: Extended Stanza Addressing when supported by your server
Avatar
skhanna #3
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Thanks Alex for quick response.

I checked that, it is supported on Oenfire. Can you please share some code in Matrix to do that?

Thanks,
Sanjeev
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the search in this forum is very powerful, see:
http://forum.ag-software.net/thread/1482-Send-Message-To-a…

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

I am able to send message but message is not receive on receiver side. Is there any other handler for incoming message? Right now I am using this handler for receive message XmppClient.OnMessage += XmppClient_OnMessage

Thanks,
Sanjeev Khanna
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No, there is no other handler than OnMessage
Avatar
skhanna #7
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Thanks Alex,

Can I add multiple To in address object? like

  1. var addresses = new Addresses();
  2. addresses.AddAddress(new Address
  3.               {
  4.                  Type = Type.to,
  5.                  Jid = "hildjj@jabber.org/Work",
  6.                  Description = "Joe Hildebrand"
  7.                });
  8.                
  9. addresses.AddAddress(new Address
  10.               {
  11.                  Type = Type.to,
  12.                  Jid = "skhanna@jabber.org/Work",
  13.                  Description = "sanjeev"
  14.                });             
  15. addresses.AddAddress(new Address
  16.         {
  17.             Type = Type.cc,
  18.             Jid = "jer@jabber.org/Home",
  19.             Description = "Jeremie Miller"
  20.         });
  21.        
  22. var msg = new Matrix.Xmpp.Client.Message();
  23. msg.Add(addresses);
  24. msg.To = "multicast.jabber.org";
  25. msg.Body = "Hello, world!";


What is the  msg.To = "multicast.jabber.org";?
Is it a  "multicast." + <DomainName> value?

Thanks,
Sanjeev Khanna
This post was edited on 2016-09-19, 23:19 by Alex.
Avatar
Alex #8
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by skhanna:
What is the  msg.To = "multicast.jabber.org";?
Is it a  "multicast." + <DomainName> value?

Those is the the Jid this server extension is running on.
Please check with your server vendor what the address on the server software your are using is.

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

Can I add multiple To in address object? like

  1. var addresses = new Addresses();
  2. addresses.AddAddress(new Address
  3. {
  4.   Type = Type.to,
  5.   Jid = "hildjj@jabber.org/Work",
  6.   Description = "Joe Hildebrand"
  7. });
  8.  
  9. addresses.AddAddress(new Address
  10. {
  11.   Type = Type.to,
  12.   Jid = "skhanna@jabber.org/Work",
  13.   Description = "sanjeev"
  14. });
Thanks,
Sanjeev Khanna
This post was edited on 2016-09-20, 21:09 by Alex.
Avatar
Alex #10
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I don't understand your question. I sent you a link to a thread with a fully working example. The code is the same you posted.

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

Sorry to again asking about Multicast service JID. I did not find this JID in openfire server. I also ask this question in openfire forum, but they did not reply. Can you help me to find the Multicast service JID on openfire server. My Server Host Name is ewp-dev54.eworkplace.com and domain name is eworkplace0. Where I can check this JID ? Should I require to install any plugin?

Thanks in Advance,
Sanjeev
Avatar
Alex #12
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry, I am not an Openfire expert, and we cannot offer Openfire support here.
I don't know if Multicast is enabled by default or requires a plugin, and what the address is.

Usually you can find out all services your server offer by service discovery. Just use a client like PSI and discover your server.
I cannot discover your server, its not setup properly for access over the internet and the server to server protocol.

Alex
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: