how to create muc chat persistent room.

789 views
Skip to first unread message

Shaik Ameshbabu

unread,
Apr 15, 2013, 9:23:40 AM4/15/13
to str...@googlegroups.com
Hi jack,

i want to create persistent room for muc chat, for that i am sending below presence for creating persistent room it works fine,

here my problem is the created room is shown in the public room list.

please help me.

var d = $pres({"from":"ame...@chat.domain.com","to":"myr...@conference.chat.domain.com"}).c("x",{xmlns:Strophe.NS.MUC});
connection.send(d.tree());

Jack Moffitt

unread,
Apr 15, 2013, 11:18:25 AM4/15/13
to strophe
You should consult the documentation on your XMPP server. This doesn't
appear to be related to Strophe itself.

jack.
> --
> You received this message because you are subscribed to the Google Groups
> "Strophe" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to strophe+u...@googlegroups.com.
> To post to this group, send email to str...@googlegroups.com.
> Visit this group at http://groups.google.com/group/strophe?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Chirag Rajpal

unread,
Dec 18, 2014, 6:56:42 AM12/18/14
to str...@googlegroups.com
Hi Jack,

Please tell me how to create the muc group, and how do a user can join that group i've tried many times but it is showing me this error.

<body xmlns="http://jabber.org/protocol/httpbind">
<iq id="1939:sendIQ" xmlns="jabber:client" from="globalroom@biprosprod" to="admin@biprosprod/21478534201418903149951003" type="error">
<x xmlns="jabber:x:data" type="submit"></x>
</query>
<error code="503" type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></service-unavailable>
</error>
</iq>
</body>

Here is my javascript code :

connection.muc.init(connection);

            var roomName = "globalroom@biprosprod";
           
            var presence = $pres({
                to: roomName
            }).c('x', { 'xmlns': 'http://jabber.org/protocol/muc' });
            console.log(presence.tree());
            connection.send(presence.tree());


            connection.muc.createInstantRoom(roomName,
                function (status) {
                    console.log("Succesfully created ChatRoom", status);
                },
                function (status) {
                    console.log("Error creating ChatRoom", status);
                }
            );

Please post your suggestions

Thanks.

Reply all
Reply to author
Forward
0 new messages