[ejabberd] mucsub issue

Mickaël Rémond mremond at process-one.net
Tue Sep 19 13:56:18 MSK 2017


I think this is because you have received the message through the room when you have joined the room.
Think of it as being online in the room.

> On 19 Sep 2017, at 12:39, jacob jabber <ejabberd.jacob at gmail.com> wrote:
> 
> thanks but All of resource are online!
> when each one recourses join to g1 group another resource will not receive message from g1 group, if leave g1 group, all resource receive message from group(mucsub).
> 
> 
> Micka?l R?mond
> As I said, because in XMPP messages are routed to online resources
>  jacob jabber
> 
>   thank you for kind response,
> > user1 subscribe to g1 group, two resource(A and B) of user1 are online, when each one join to g1 group another resource will not receive message from g1 group, if leave g1 group, all resource receive message from group.
> > why when each one of resource join g1 group, another resoure that subscribe to g1 group ,don't receive message?
> 
>  Micka?l R?mond
> Hello,
> 
>   In XMPP, messages are routed to online resources. It does not think in term of devices but users. The messages is thus routed to the online resources. That behavior is defined in core specification.
>   I hope this helps,
> 
> 
> 
> jacob jabber 
> > >
> > > I use ejabberd 17.01, enables carbon_copy and uses mucsub
> > > I subscibe user1, user2 in g1' group, user1 have two resource(A and B).
> > > when user2 send message to g1 group, user1/A and user2/B receive messages, but when user1/A join to g1 group, user1/B did'nt receive message, why one of devices join to group another device (all device are subscibe) don't receive messages?
> > >
> > >
> > > muc  room :
> > > | g1 | conference.example.com <http://conference.example.com/> <http://conference.example.com/ <http://conference.example.com/>> | [{title,<<>>},
> > > {description,<<>>},
> > > {allow_change_subj,true},
> > > {allow_query_users,true},
> > > {allow_private_messages,true},
> > > {allow_private_messages_from_visitors,anyone},
> > > {allow_visitor_status,true},
> > > {allow_visitor_nickchange,true},
> > > {public,false},
> > > {public_list,false},
> > > {persistent,true},
> > > {moderated,true},
> > > {members_by_default,true},
> > > {members_only,true},
> > > {allow_user_invites,false},
> > > {password_protected,false},
> > > {captcha_protected,false},
> > > {password,<<>>},
> > > {anonymous,true},
> > > {logging,true},
> > > {max_users,500},
> > > {allow_voice_requests,true},
> > > {allow_subscription,true},
> > > {mam,true},
> > > {presence_broadcast,[]},
> > > {voice_request_min_interval,1800},
> > > {vcard,<<>>},
> > > {captcha_whitelist,[]},
> > > {affiliations,[{{<<"user1">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user2">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user3">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user4">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user5">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user6">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}},
> > >                 {{<<"user7">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},{owner,<<>>}}]},
> > > {subject,<<>>},
> > > {subject_author,<<>>},
> > > {subscribers,[{{jid,<<"user1">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user1">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user1">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user2">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user2">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user2">>,
> > >                  [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user3">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user3">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user3">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user4">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user4">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user4">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user5">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user5">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user5">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user6">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user6">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user6">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> > >                {{jid,<<"user7">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>,
> > >                      <<"user7">>,<<"example.com <http://example.com/> <http://example.com/ <http://example.com/>>">>,<<>>},
> > >                 <<"user7">>,
> > >                 [<<"urn:xmpp:mucsub:nodes:messages">>]}]}]
> > > please help me, thanks in advance
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170919/44224fba/attachment-0001.html>


More information about the ejabberd mailing list