I have created a persistent MUC
room using the ejabberd API
"create_room_with_opts"
. I am now adding a user to the room by subscribing the user to the room using "subscribe_room
" API with folowwing req
and response
.
Req:
{
"user": "vishesh@dub/dummy",
"nick": "vish",
"room": "roomdub@conference.dub",
"nodes": "urn:xmpp:mucsub:nodes:messages,urn:xmpp:mucsub:nodes:affiliations,urn:xmpp:mucsub:nodes:subject,urn:xmpp:mucsub:nodes:presence"
}
Res:
[
"urn:xmpp:mucsub:nodes:messages",
"urn:xmpp:mucsub:nodes:affiliations",
"urn:xmpp:mucsub:nodes:subject",
"urn:xmpp:mucsub:nodes:presence"
]
But when I list the number of occupants it lists as 0. I used "get_room_occupants_number" API which had following req and res.
Request:
{
"name": "roomdub",
"service": "conference.dub"
}
Response:
{
"occupants": 0
}
I am unable to understand why I don't see the user I added? Did I miss any step?