powered by Jive Software

How to receive Media Proxy IQ packet?

hello,

i would like to use media proxy(smack2.2.1+JRE1.4+eclipse),so i send this xml:

to openfire, i dont know how to receive media proxy iq packet,who can help me?my code:

public static void main(String[] args){
ConnectionConfiguration config = new ConnectionConfiguration(“192.168.61.155”, 5222,“rd-test-1”);

    XMPPConnection con = new XMPPConnection(config);
    try {
      
        ProviderManager.addIQProvider("rtpbridge", "[http://www.jivesoftware.com/protocol/rtpbridge](http://www.jivesoftware.com/protocol/rtpbridge)",new MediaProxyGetIQProvider());
        AndFilter af=new AndFilter();
        af.addFilter(new PacketTypeFilter(IQ.class));
        con.addPacketListener(new PacketListener(){

            public void processPacket(Packet arg0) {
                // TODO Auto-generated method stub
                System.out.println(arg0.toXML());
            }}, af);
        con.login("a", "a","acb");
       
     
    } catch (XMPPException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
   
    QuerySPARQLIQ spRequest=new QuerySPARQLIQ();
   
    spRequest.setTo("rtpbridge.rd-test-1");
    spRequest.setType(IQ.Type.GET);
    String sid=String.valueOf(Math.random());
    spRequest.setSid(sid);
   
    con.sendPacket(spRequest);
   
    //**How to receive Media Proxy IQ packet?**
   
    con.close();
   
}

openfire debug log:

2009.07.14 17:28:59 Should NOT close connection, using HTTP/1.1
2009.07.14 17:28:59 Releasing connection back to connection manager.
2009.07.14 17:29:19 NIOConnection: startTLS: using c2s
2009.07.14 17:29:25 017128 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017129 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017129 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 017130 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 AuthorizationManager: Trying Default Mapping.map(a)
2009.07.14 17:29:25 DefaultAuthorizationMapping: No realm found
2009.07.14 17:29:25 AuthorizationManager: Trying Default Policy.authorize(a , a)
2009.07.14 17:29:25 DefaultAuthorizationPolicy: Checking authenID realm
2009.07.14 17:29:25 017130 -000003 (01/05/00) - Connection #185 tested: OK
2009.07.14 17:29:25 017131 -000003 (01/05/00) - Connection #185 tested: OK
2009.07.14 17:29:25 017131 -000003 (01/05/00) - Connection #186 tested: OK
2009.07.14 17:29:25 017132 -000003 (01/05/00) - Connection #186 tested: OK
2009.07.14 17:29:25 017132 -000003 (01/05/00) - Connection #187 tested: OK
2009.07.14 17:29:25 017133 -000003 (01/05/00) - Connection #187 tested: OK
2009.07.14 17:29:25 017133 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017134 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017134 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 017135 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 017135 -000003 (01/05/00) - Connection #185 tested: OK
2009.07.14 17:29:25 017136 -000003 (01/05/00) - Connection #185 tested: OK
2009.07.14 17:29:25 017136 -000003 (01/05/00) - Connection #186 tested: OK
2009.07.14 17:29:25 017137 -000003 (01/05/00) - Connection #186 tested: OK
2009.07.14 17:29:25 017137 -000003 (01/05/00) - Connection #187 tested: OK
2009.07.14 17:29:25 017138 -000003 (01/05/00) - Connection #187 tested: OK
2009.07.14 17:29:25 017138 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017139 -000003 (01/05/00) - Connection #183 tested: OK
2009.07.14 17:29:25 017139 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 017140 -000003 (01/05/00) - Connection #184 tested: OK
2009.07.14 17:29:25 MediaProxySession: Session Created at: A 11224 : B 17310
2009.07.14 17:29:25 MediaProxyService: 0.26904545712331296-a@rd-test-1/acb
2009.07.14 17:29:25 MediaProxyService: RETURNED:

MediaProxyGetIQProvider.java and QuerySPARQLIQ.java send xml:





I want to receive this xml:

*

*

how can i get it?

thx~

I get it~