On 23.01.13 04:44, Chris Oman wrote:
Yep, I get that. I was way too short in trying to explain what we are
attempting to do.
We are essentially wanting to create a bot that upon receipt of new
alerts, will create new conference rooms, post messages into the
conference rooms and then send directed invites to the appropriate
users for those alerts. From the few clients we have been seeing,
mediated invites look "off". So we wanted a contact in the user's
roster that represented our module/bot so that directed invites look
more appropriate - like they are coming from our system.
It could be that I shouldn't be writing a module but should rather be
writing a client. But from what I have read about XMPP application
development in general, that doesn't seem like the best way to go.
That's why I went the module route.
Does that bring clarification? Do you have any ideas of how I might
approach this "properly".
I'm always in favor of building a dedicated client for that, but anyway.
You can of course push Roster entries (and servers-side you have full
control over RosterManager), but nevertheless an online client needs to
accept new contacts.
Basically, this is done by sending the related stanzas from the XMPP RFC
specification. The full workflow can be seen coded in
org.apache.vysper.xmpp.modules.core.im.handler.PresenceSubscriptionHandler.handleOutboundSubscriptionRequest()
That's what I can tell you with limited time right now, if you need
more, pls. keep posting.
Are you using the MUC modules?
Bernd
Thanks again, Chris
Chris Oman Lead Developer - Interfaces EXTENSION, INC. Email:
[email protected] Office: 260-797-0200 General: 877-207-3753
www.OpenTheRedBox.com
________________________________________ From: Bernd Fondermann
[[email protected]] Sent: Tuesday, January 22, 2013 4:54 PM
To: [email protected] Subject: Re: Vysper module presence
Other users ("contacts") show up in the user's roster this way: 1.
user subscribes to the contact's presense 2. contact confirms
subscription 3. contact sends initial presence to the server 4.
server distributes presence message to all of contact's contact (e.g.
user)
Vysper modules ares just for handling special messages, that is,
extending the server's capabilities. Vysper is capable out-of-the-box
to handle presence subscriptions etc.
Bernd
On Tue, Jan 22, 2013 at 10:27 PM, Chris Oman <[email protected]>
wrote:
I am working on creating a custom module for Vysper. I would like
it to show up in a users roster and show it as available. How do I
send the initial presence message?
Thanks, Chris