About ICETransportManger Establish a connection

hi.

I try to use the ICETransportManager behind a NAT connection, my code is as follows:

jm.setJingleServiceEnabled();

ICETransportManager icemt0 = new ICETransportManager(conn, “stun.xten.net”, 3478);

List mediaManagers = new ArrayList();

mediaManagers.add(new JmfMediaManager(icemt0));

jm = new JingleManager(conn, mediaManagers);

jm.addCreationListener(icemt0);

jm.addJingleSessionRequestListener(new JingleSessionRequestListener() {

@Override

public void sessionRequested(JingleSessionRequest request) {

incoming = request.accpet();

incoming.startIncoming();

});

}

In the same network is working properly, but when the machine A and machine B is located behind a NAT, can not always establish a connection, and then automatically disconnect

log:

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #0

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #0

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #1

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #1

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #2

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #2

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #3

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #3

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #4

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #4

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #5

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #5

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #6

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #6

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #7

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #7

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #8

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #8

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #9

[RMCLIENT] ERROR org.jivesoftware.smackx.jingle.nat.ICECandidate - ICE Candidate retry #9

This problem has been trapped However, I more than a week