This Question is Answered

1 "correct" answer available (10 pts)
3 Replies Last post: Sep 17, 2007 12:43 PM by Bartek Krupa  
Bartek Krupa Bronze 4 posts since
Sep 13, 2007
Currently Being Moderated

Sep 13, 2007 10:00 AM

Openfire transport plugin

Hi everyone! Nice to be here (couse it's my first post).

 

I have a trivial problem that I can't solve (in fact i could cope with it, but it would take ages). I want to create a transport for Openfire that is something like command line. For example I write "help" and it gives appropriate answer. Simply: request - response. There will be huge backend with databases etc, but that's not a problem for now. A have browsed IM gateway plugin sources, but big amound of files that is don't understand (I'm very net to Java and Openfire) doesn't help me at all. The one thing I need is a snippet of code that simply works (creates a transport). The rest is for me

 

A tip: I don't wont to add a transport to my list by browsing services of my XMPP server in my client, but I want it "out of box" (every single new user gets this transport to the list automatically). If that problem has been solved before, sorry, I couldn't find it

 

Regards and thanks in advance.

Sander Bronze 146 posts since
Jun 14, 2005
Currently Being Moderated
Sep 15, 2007 8:34 AM in response to: Bartek Krupa
Re: Openfire transport plugin

 

The upcoming Coccinella 0.96.2 (19 September) will be much more convenient on this.

 

 

It works like this in the development version:

 

  1. Open the "Add Contact" dialog

  2. Select the chat system of the account you would like to add (available transports known by Coccinella via disco)

  3. If you are not yet registered to the corresponding transport, Coccinella will ask you if you want to register on this transport. You then can add your account information for the closed chat system and register.

  4. You will be logged on to this transport and contacts will be imported.

  5. If you want, you can proceed with adding a contact from this closed chat system by entering entering the contact ID of this user (Contact ID can be MSN address, ICQ number,...). Coccinella will automatically convert this to a Jabber ID like contact%20hotmail.com@msn.example.org (this ugly ID also will be hidden shown in your roster AFAIR!). You also can just close the Add Account dialog.

If you have any suggestions to improve usability of this process even more, do not hesitate to reply here or post something in the Coccinella forums (the latter is the best as the chance is practically zero I will miss your comment). Coccinella removes one of the reasons people prefer multi-protocol clients over Jabber clients in combination with transports...one reason less to contribute to/use multi-protocol clients... Hope other Jabber clients also make this easier.

Aznidin KeyContributor 508 posts since
Jul 5, 2006
Currently Being Moderated
Sep 17, 2007 11:45 AM in response to: Bartek Krupa
Re: Openfire transport plugin

Hi Bartek,

 

 

 

You may have misunderstood the meaning of a transport. Anyway, if I understand you correctly, what you need may not be a transport but some kind of bot that replies to questions. Perhaps you'd want to take a look at Botz: Internal Bot Library for Openfire. The Botz library allows you to create, register and automate user bot login. All you have to do is to program the message exchanges to your liking.

 

You might then want to create a shared group and include your new bot as a member. That way, all users logged in into your server will have the bot in their roaster... kind of a Help user bot.

 

Hope that helps.

More Like This

  • Retrieving data ...