Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
acd206 #1
Member since Jun 2011 · 5 posts · Location: Dhaka, Bangladesh
Group memberships: Members
Show profile · Link to this post
Subject: Way to implement Agent Protocol.
Hi,

I need to implement Agent Protocol that is mention in (http://xmpp.org/extensions/xep-0142.html). Please provide me a guide line that help me to do that. I am using openfire server and agsXMPP as a client.

Regards
Animesh Chandra Dey
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please study the custom packet document which is included in the agsXMPP download. There is explained how you add your own packets, and this is exactly what you need when implementing new XEPs.

Alex
Avatar
acd206 #3
Member since Jun 2011 · 5 posts · Location: Dhaka, Bangladesh
Group memberships: Members
Show profile · Link to this post
Hi,

Would you please describe little more
This post was edited 3 times, last on 2011-08-03, 23:04 by acd206.
Avatar
acd206 #4
Member since Jun 2011 · 5 posts · Location: Dhaka, Bangladesh
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I findout that one of the plugin of Openfire server has implemented the protocol (xep-0142) named Fastpath. I need to know, is there any plugin on agsXmpp to communicate with Fastpath??

Regards

Animesh Chandra Dey
Avatar
Alex #5
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no there is no plugin. You have to write the classes on your own.

Alex
Avatar
acd206 #6
Member since Jun 2011 · 5 posts · Location: Dhaka, Bangladesh
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I need your help to implement this. Openfire send those reply to client. Would you please give me some guideline to implement that from step 2. How can I make the custom package from step 2?

  1. 1.
  2. <message to="client01@n2/Miranda" from="helpdesk@workgroup.n2">
  3.     <body>Your current position in the queue is 1</body>
  4. </message>
  5. ­
  6. 2.
  7. <message from="ixm1y511@conference.n2" to="client01@n2/Miranda">
  8.     <workgroup xmlns="http://jabber.org/protocol/workgroup" jid="helpdesk@workgroup.n2" />
  9.     <session xmlns="http://jivesoftware.com/protocol/workgroup" id="ixm1y511" />
  10.     <x xmlns="http://jabber.org/protocol/muc#user">
  11.         <invite from="helpdesk@workgroup.n2">
  12.             <reason>Please join me for a chat.</reason>
  13.         </invite>
  14.     </x>
  15.     <x xmlns="jabber:x:conference" jid="ixm1y511@conference.n2" />
  16. </message>
  17.  
  18. ­3.
  19. <message to="client01@n2/Miranda" from="helpdesk@workgroup.n2">
  20.     <body>An invitation to start a chat with an agent has been sent</body>
  21. </message>
  22. ­
  23. 4.
  24. <presence to="ixm1y511@conference.n2/client01">
  25.     <priority>0</priority>
  26.     <x xmlns="http://jabber.org/protocol/muc" />
  27.     <c xmlns="http://jabber.org/protocol/caps" node="http://miranda-im.org/caps" ver="0.9.26.0" ext="pmuc-v1 mood activity mir_notes" />
  28.     <x xmlns="vcard-temp:x:update">
  29.         <photo />
  30.     </x>
  31.     <status>Yep, I'm here.</status>
  32. </presence>
  33. ­
  34. 5.
  35. <presence id="b8rRA-145" to="client01@n2/Miranda" from="ixm1y511@conference.n2/helpdesk01">
  36.     <x xmlns="http://jabber.org/protocol/muc#user">
  37.         <item affiliation="none" role="participant" />
  38.     </x>
  39. </presence>
  40. ­
  41. 6.
  42. <presence to="client01@n2/Miranda" from="ixm1y511@conference.n2/client01">
  43.     <priority>0</priority>
  44.     <c xmlns="http://jabber.org/protocol/caps" node="http://miranda-im.org/caps" ver="0.9.26.0" ext="pmuc-v1 mood activity mir_notes" />
  45.     <x xmlns="vcard-temp:x:update">
  46.         <photo />
  47.     </x>
  48.     <status>Yep, I'm here.</status>
  49.     <x xmlns="http://jabber.org/protocol/muc#user">
  50.         <item affiliation="none" role="participant" />
  51.     </x>
  52. </presence>
  53. ­
  54. 7.
  55. <message to="ixm1y511@conference.n2" type="groupchat">
  56.     <body>ani</body>
  57. </message>
  58. ­
  59. 8.
  60. <message to="client01@n2/Miranda" type="groupchat" from="ixm1y511@conference.n2/client01">
  61.     <body>ani</body>
  62. </message>
  63. ­
  64. 9.
  65. <message id="b8rRA-147" to="client01@n2/Miranda" type="groupchat" from="ixm1y511@conference.n2/helpdesk01">
  66.     <body>yes</body>
  67.     <x xmlns="jabber:x:event">
  68.         <offline />
  69.         <delivered />
  70.         <displayed />
  71.         <composing />
  72.     </x>
  73. </message>

Regards

Animesh Chandra Dey
This post was edited 2 times, last on 2018-05-02, 11:32 by Alex.
Avatar
Alex #7
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Have you studied the custom packet example document with comes with agsXMPP? There is all info you need for creating classes for you packets above.

Alex
Avatar
acd206 #8
Member since Jun 2011 · 5 posts · Location: Dhaka, Bangladesh
Group memberships: Members
Show profile · Link to this post
Hi Alex,
I did the following code to identify that the message is come from workgroup or not (Step 2).

  1. private void XmppCon_OnMessage(object sender, Message msg)
  2. {
  3.     if (msg.InnerXml != null && msg.InnerXml.Contains("http://jivesoftware.com/protocol/workgroup"))
  4.     {
  5.         if (msg.InnerXml.Contains(agsXMPP.Uri.X_CONFERENCE))
  6.         {
  7.             this.Helpdesk(msg);
  8.         }
  9.     }
  10. }

I dont know, this is the best way or not. Please suggest me if there is any better way to do that.

Regards

Animesh
This post was edited on 2012-01-31, 21:06 by Alex.
Avatar
Alex #9
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by acd206:
I dont know, this is the best way or not.

no its not. Have you ever looked at the document I pointed you? I have attached it now to this thread.

Alex
The author has attached one file to this post:
creating_own_packet_types.pdf 161.2 kBytes
You have no permission to open this file.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS