powered by Jive Software

Media proxy


#1

hi,

I want test the openfire media proxy by the following java code:

public void testtransmit() {
ConnectionConfiguration coo = new ConnectionConfiguration(
server, 5222);
final XMPPConnection con = new XMPPConnection(coo);
XMPPConnection con1 = new XMPPConnection(coo);
try {
con.connect();
con.login(user0, pass0);
con1.connect();
con1.login(user1, pass1);
if (con.isConnected() && con1.isConnected()) {
BridgedTransportManager btm0 = new BridgedTransportManager(con);
final BridgedResolver br=new BridgedResolver(con);
BridgedResolver br1=new BridgedResolver(con1);
BridgedTransportManager btm1 = new BridgedTransportManager(con1);
final JingleManager jm0 = new JingleManager(con, br);
final JingleManager jm1 = new JingleManager(con1, br1);
jm0.addCreationListener(btm0);
jm1.addCreationListener(btm1);
JingleMediaManager jmm = new JmfMediaManager();

    JingleMediaManager jmm1 = new JmfMediaManager();
    jm0.setMediaManager(jmm);
    jm1.setMediaManager(jmm1);
    jm0.addJingleSessionRequestListener(new JingleSessionRequestListener() {

public void sessionRequested(final JingleSessionRequest request) {

try {

incoming = request.accept(setupPayloads());

          incoming.start(request);
        }
        catch (Exception exe) {
          System.out.println(exe);
        }
      }
    });

outgoing = jm1.createOutgoingJingleSession(
“user0@servername/Smack”,this.setupPayloads());

    outgoing.start();
  }
}
catch (XMPPException ex) {
  System.out.println("Exception "+ex);
}

}

but, it generated this exception:

Service listing
No RTP Bridge service available:
at org.jivesoftware.smackx.jingle.nat.BridgedResolver.initialize(BridgedResolver.j ava:103)
at org.jivesoftware.smackx.jingle.nat.TransportResolver.initializeAndWait(Transpor tResolver.java:384)
at org.jivesoftware.smackx.jingle.nat.JingleTransportManager.getResolver(JingleTra nsportManager.java:62)
at org.jivesoftware.smackx.jingle.OutgoingJingleSession.(OutgoingJingleSessi on.java:116)
at org.jivesoftware.smackx.jingle.OutgoingJingleSession.(OutgoingJingleSessi on.java:143)
at org.jivesoftware.smackx.jingle.JingleManager.createOutgoingJingleSession(Jingle Manager.java:617)
at vopenfire.transmit.testtransmit(transmit.java:76)
at vopenfire.transmit.main(transmit.java:103)
Exception in thread “main” java.lang.NullPointerException
at org.jivesoftware.smackx.jingle.OutgoingJingleSession.(OutgoingJingleSessi on.java:124)
at org.jivesoftware.smackx.jingle.OutgoingJingleSession.(OutgoingJingleSessi on.java:143)
at org.jivesoftware.smackx.jingle.JingleManager.createOutgoingJingleSession(Jingle Manager.java:617)
at vopenfire.transmit.testtransmit(transmit.java:76)
at vopenfire.transmit.main(transmit.java:103)

plz,I need a help


#2

Any progress on this? We seem to stumble upon the same issue.

Is this a server configuration thing?

In the openfire admin we have enabled MediaService, but when features are requested; we cannot see any “rtpbridge” whatsoever…

<query xmlns="[http://jabber.org/protocol/disco#info](http://jabber.org/protocol/disco#info)">
    <feature var="[http://jabber.org/protocol/pubsub#manage-subscriptions](http://jabber.org/protocol/pubsub#manage-subscriptions)"/>

    <feature var="[http://jabber.org/protocol/pubsub#modify-affiliations](http://jabber.org/protocol/pubsub#modify-affiliations)"/>

    <feature var="[http://jabber.org/protocol/pubsub#retrieve-default](http://jabber.org/protocol/pubsub#retrieve-default)"/>

    <feature var="[http://jabber.org/protocol/pubsub#collections](http://jabber.org/protocol/pubsub#collections)"/>
    <feature var="[http://jabber.org/protocol/disco#items](http://jabber.org/protocol/disco#items)"/>
    <feature var="[http://jabber.org/protocol/pubsub#publish](http://jabber.org/protocol/pubsub#publish)"/>
    <feature var="[http://jabber.org/protocol/pubsub#subscribe](http://jabber.org/protocol/pubsub#subscribe)"/>

    <feature var="[http://jabber.org/protocol/pubsub#retract-items](http://jabber.org/protocol/pubsub#retract-items)"/>

    <feature var="[http://jabber.org/protocol/offline](http://jabber.org/protocol/offline)"/>

    <feature var="[http://jabber.org/protocol/pubsub#meta-data](http://jabber.org/protocol/pubsub#meta-data)"/>
    <feature var="[http://jabber.org/protocol/pubsub#retrieve-subscriptions](http://jabber.org/protocol/pubsub#retrieve-subscriptions)"/>

    <feature var="[http://jabber.org/protocol/pubsub#default_access_model_open](http://jabber.org/protocol/pubsub#default_access_model_open)"/>
    <feature var="[http://jabber.org/protocol/pubsub#config-node](http://jabber.org/protocol/pubsub#config-node)"/>

    <feature var="[http://jabber.org/protocol/address](http://jabber.org/protocol/address)"/>

    <feature var="[http://jabber.org/protocol/pubsub#publisher-affiliation](http://jabber.org/protocol/pubsub#publisher-affiliation)"/>

    <feature var="[http://jabber.org/protocol/pubsub#item-ids](http://jabber.org/protocol/pubsub#item-ids)"/>

    <feature var="[http://jabber.org/protocol/pubsub#instant-nodes](http://jabber.org/protocol/pubsub#instant-nodes)"/>

    <feature var="[http://jabber.org/protocol/commands](http://jabber.org/protocol/commands)"/>

    <feature var="[http://jabber.org/protocol/pubsub#multi-subscribe](http://jabber.org/protocol/pubsub#multi-subscribe)"/>

    <feature var="[http://jabber.org/protocol/pubsub#outcast-affiliation](http://jabber.org/protocol/pubsub#outcast-affiliation)"/>

    <feature var="[http://jabber.org/protocol/pubsub#get-pending](http://jabber.org/protocol/pubsub#get-pending)"/>
    <feature var="[http://jabber.org/protocol/pubsub#subscription-options](http://jabber.org/protocol/pubsub#subscription-options)"/>
    <feature var="[http://jabber.org/protocol/pubsub#create-and-configure](http://jabber.org/protocol/pubsub#create-and-configure)"/>
    <feature var="[http://jabber.org/protocol/pubsub#retrieve-items](http://jabber.org/protocol/pubsub#retrieve-items)"/>
    <feature var="[http://jabber.org/protocol/pubsub#create-nodes](http://jabber.org/protocol/pubsub#create-nodes)"/>

    <feature var="[http://jabber.org/protocol/pubsub#persistent-items](http://jabber.org/protocol/pubsub#persistent-items)"/>
    <feature var="[http://jabber.org/protocol/pubsub#presence-notifications](http://jabber.org/protocol/pubsub#presence-notifications)"/>

    <feature var="[http://jabber.org/protocol/pubsub](http://jabber.org/protocol/pubsub)"/>

    <feature var="[http://jabber.org/protocol/pubsub#retrieve-affiliations](http://jabber.org/protocol/pubsub#retrieve-affiliations)"/>

    <feature var="[http://jabber.org/protocol/pubsub#delete-nodes](http://jabber.org/protocol/pubsub#delete-nodes)"/>

    <feature var="[http://jabber.org/protocol/pubsub#purge-nodes](http://jabber.org/protocol/pubsub#purge-nodes)"/>

    <feature var="[http://jabber.org/protocol/disco#info](http://jabber.org/protocol/disco#info)"/>

    <feature var="[http://jabber.org/protocol/rsm](http://jabber.org/protocol/rsm)"/>

I can confirm the Media Proxy is enabled: using the “Echo test Port @ 10020” by using ‘nc’ at the linux command line.

I