jingle: send canditate error before fallback
This commit is contained in:
parent
73d66fd703
commit
61604dedea
|
@ -122,7 +122,7 @@ public final class Config {
|
||||||
|
|
||||||
public static final int EXPIRY_INTERVAL = 30 * 60 * 1000; // 30 minutes
|
public static final int EXPIRY_INTERVAL = 30 * 60 * 1000; // 30 minutes
|
||||||
|
|
||||||
public static final String ENABLED_CIPHERS[] = {
|
public static final String[] ENABLED_CIPHERS = {
|
||||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
||||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA384",
|
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA384",
|
||||||
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256",
|
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256",
|
||||||
|
|
|
@ -1003,16 +1003,17 @@ public class JingleConnection implements Transferable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendCandidateError() {
|
private void sendCandidateError() {
|
||||||
|
Log.d(Config.LOGTAG,"sending canditate error");
|
||||||
JinglePacket packet = bootstrapPacket("transport-info");
|
JinglePacket packet = bootstrapPacket("transport-info");
|
||||||
Content content = new Content(this.contentCreator, this.contentName);
|
Content content = new Content(this.contentCreator, this.contentName);
|
||||||
content.setTransportId(this.transportId);
|
content.setTransportId(this.transportId);
|
||||||
content.socks5transport().addChild("candidate-error");
|
content.socks5transport().addChild("candidate-error");
|
||||||
packet.setContent(content);
|
packet.setContent(content);
|
||||||
this.sentCandidate = true;
|
this.sentCandidate = true;
|
||||||
|
this.sendJinglePacket(packet);
|
||||||
if (receivedCandidate && mJingleStatus == JINGLE_STATUS_ACCEPTED) {
|
if (receivedCandidate && mJingleStatus == JINGLE_STATUS_ACCEPTED) {
|
||||||
connect();
|
connect();
|
||||||
}
|
}
|
||||||
this.sendJinglePacket(packet);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getJingleStatus() {
|
public int getJingleStatus() {
|
||||||
|
|
Loading…
Reference in New Issue