Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
tambunanw #1
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Subject: Writing Jingle Proxy with Jabber Component Protocol
Dear Alex,

I'm trying to write media relay server for jingle implementation.
I found this picture related to the architecture.

[Image: http://photos1.blogger.com/blogger/3691/2922/1600/MediaProxy0.png]

One component i have to write is Jingle Proxy. Is that possible to write that with the External Component?

Or should i write it with Internal Component in OpenFire ?
We're not using built-in media relay in open fire because we need to do some stuff for data stream.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I see not much info on this picture about the XMPP architecture. So I can't answer the question if it is possible to write this proxy as an external component. If it needs to be only addressable over XMPP and has to route stanzas then yes.

The big advantage of a external component is that it will run on every XMPP server. And you can write it in any programming language, while you have to write a Openfire plugin in Java.

Alex
Avatar
tambunanw #3
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Okay,

I want to do something like this.

Jingle Client A send the Jingle Stanzas to Jingle Client B. But the component intercept that jingle stanzas and then forward it to Jingle Client B.

Is that possible to do that with External Component with MatriX ? So every Jingle Packet not sending directly to the client but have to intercepted by the Component first.
Avatar
tambunanw #4
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Here the complete architecture.

[Image: http://photos1.blogger.com/blogger/3691/2922/1600/MediaProxy1.0.png]
Avatar
Alex #5
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #3
yes this is possible. But you have to address the packet then to the component, and include the receiver Jid for the component in your packet.

Jid of component:
jingleproxy.server.com

User 1:
user1@server.com

User 2:
user2@server.com

eg:

  1. <message to="jingleproxy.server.com" from="user1@server.com" type="chat">
  2.    <receiver jid="user2@server.com" xmlns="my-custom-namespace"/>
  3.    <!--- more jingle stuff here -->
  4. </message>
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: MatriX RSS