[ejabberd] mucsub issue

Mickaël Rémond mremond at process-one.net
Tue Sep 19 10:46:40 MSK 2017


As I said, because in XMPP messages are routed to online resources.

> On 19 Sep 2017, at 09:45, jacob jabber <ejabberd.jacob at gmail.com> wrote:
> 
> 
> 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?
> 
> 
> 
> On Tue, Sep 19, 2017 at 10:27 AM, <ejabberd-request at jabber.ru <mailto:ejabberd-request at jabber.ru>> wrote:
> Send ejabberd mailing list submissions to
>         ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.jabber.ru/mailman/listinfo/ejabberd <http://lists.jabber.ru/mailman/listinfo/ejabberd>
> or, via email, send a message with subject or body 'help' to
>         ejabberd-request at jabber.ru <mailto:ejabberd-request at jabber.ru>
> 
> You can reach the person managing the list at
>         ejabberd-owner at jabber.ru <mailto:ejabberd-owner at jabber.ru>
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ejabberd digest..."
> 
> 
> Today's Topics:
> 
>    1. mucsub issue (jacob jabber)
>    2. Re: mucsub issue (Micka?l R?mond)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 19 Sep 2017 10:09:58 +0430
> From: jacob jabber <ejabberd.jacob at gmail.com <mailto:ejabberd.jacob at gmail.com>>
> To: ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
> Subject: [ejabberd] mucsub issue
> Message-ID:
>         <CAOY1yjDpN_2O9=LYMJVcmnXpq_WfDqfbGYKczQjBVOMmaAm5EA at mail.gmail.com <mailto:LYMJVcmnXpq_WfDqfbGYKczQjBVOMmaAm5EA at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> 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/> | [{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/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user2">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user3">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user4">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user5">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user6">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
>                 {{<<"user7">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}}]},
> {subject,<<>>},
> {subject_author,<<>>},
> {subscribers,[{{jid,<<"user1">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user1">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user1">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user2">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user2">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user2">>,
>                  [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user3">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user3">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user3">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user4">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user4">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user4">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user5">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user5">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user5">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user6">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user6">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user6">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
>                {{jid,<<"user7">>,<<"example.com <http://example.com/>">>,<<>>,
>                      <<"user7">>,<<"example.com <http://example.com/>">>,<<>>},
>                 <<"user7">>,
>                 [<<"urn:xmpp:mucsub:nodes:messages">>]}]}]
> 
> please help me, thanks in advance
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170919/22765752/attachment-0001.html <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170919/22765752/attachment-0001.html>>
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 19 Sep 2017 07:56:59 +0200
> From: Micka?l R?mond <mremond at process-one.net <mailto:mremond at process-one.net>>
> To: ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
> Subject: Re: [ejabberd] mucsub issue
> Message-ID: <7416F3F1-1879-410C-8EED-7EA20C59D325 at process-one.net <mailto:7416F3F1-1879-410C-8EED-7EA20C59D325 at process-one.net>>
> Content-Type: text/plain; charset="utf-8"
> 
> 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,
> 
> --
> Micka?l R?mond
> 
> > Le 19 sept. 2017 ? 07:39, jacob jabber <ejabberd.jacob at gmail.com <mailto:ejabberd.jacob at gmail.com>> a ?crit :
> >
> > 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/> | [{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/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user2">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user3">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user4">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user5">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user6">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}},
> >                 {{<<"user7">>,<<"example.com <http://example.com/>">>,<<>>},{owner,<<>>}}]},
> > {subject,<<>>},
> > {subject_author,<<>>},
> > {subscribers,[{{jid,<<"user1">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user1">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user1">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user2">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user2">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user2">>,
> >                  [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user3">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user3">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user3">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user4">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user4">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user4">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user5">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user5">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user5">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user6">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user6">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user6">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]},
> >                {{jid,<<"user7">>,<<"example.com <http://example.com/>">>,<<>>,
> >                      <<"user7">>,<<"example.com <http://example.com/>">>,<<>>},
> >                 <<"user7">>,
> >                 [<<"urn:xmpp:mucsub:nodes:messages">>]}]}]
> > please help me, thanks in advance
> >
> > _______________________________________________
> > ejabberd mailing list
> > ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
> > http://lists.jabber.ru/mailman/listinfo/ejabberd <http://lists.jabber.ru/mailman/listinfo/ejabberd>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170919/76abf8ea/attachment.html <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170919/76abf8ea/attachment.html>>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
> http://lists.jabber.ru/mailman/listinfo/ejabberd <http://lists.jabber.ru/mailman/listinfo/ejabberd>
> 
> 
> ------------------------------
> 
> End of ejabberd Digest, Vol 170, Issue 4
> ****************************************
> 
> 
> 
> -- 
> 
> Best Regards
> _______________________________________________
> 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/11c0df5e/attachment-0001.html>


More information about the ejabberd mailing list