From: Norman R. <no...@ra...> - 2010-01-16 23:38:49
|
On Fri, Jan 15, 2010 at 7:18 PM, Caio Brentano <cai...@gm...>wrote: > Hi all > > I developed a little client just to send messages. It's ok to send messages > directly to users. But I need to send messages to Conferences Room too. Any > idea how can I do this? > You need to send presence to the room to enter it before sending it a message. Generally you send directed presence to room@server/Nick (where Nick is the name of your client in the room). The room will then send you presence and message history. As soon as you see yourself in the room you can send it a message. so cl.sendPresence('room@server/Nick') should work The conference rooms in my company xmpp server requires Authentication. I > didn't find anything about auth to rooms. > You will need to create a Presence stanza, set the password, and send it separately, something like this should work: p = Presence('room@server/Nick) p.setTag('x', namespace=NS_MUC).setTag('password', pass) cl.send(p) Thanks in advance! > -- > Caio Brentano > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |