use xmppserviceconnection to send iq packets in jingle connection
This commit is contained in:
parent
c283fec0d1
commit
e11d658f5e
|
@ -192,7 +192,7 @@ public class JingleConnection implements Downloadable {
|
||||||
} else {
|
} else {
|
||||||
response = packet.generateResponse(IqPacket.TYPE.ERROR);
|
response = packet.generateResponse(IqPacket.TYPE.ERROR);
|
||||||
}
|
}
|
||||||
account.getXmppConnection().sendIqPacket(response, null);
|
mXmppConnectionService.sendIqPacket(account,response,null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(Message message) {
|
public void init(Message message) {
|
||||||
|
@ -459,11 +459,11 @@ public class JingleConnection implements Downloadable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendJinglePacket(JinglePacket packet) {
|
private void sendJinglePacket(JinglePacket packet) {
|
||||||
account.getXmppConnection().sendIqPacket(packet, responseListener);
|
mXmppConnectionService.sendIqPacket(account,packet,responseListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendJinglePacket(JinglePacket packet, OnIqPacketReceived callback) {
|
private void sendJinglePacket(JinglePacket packet, OnIqPacketReceived callback) {
|
||||||
account.getXmppConnection().sendIqPacket(packet,callback);
|
mXmppConnectionService.sendIqPacket(account,packet,callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean receiveAccept(JinglePacket packet) {
|
private boolean receiveAccept(JinglePacket packet) {
|
||||||
|
@ -556,7 +556,7 @@ public class JingleConnection implements Downloadable {
|
||||||
.setAttribute("sid", this.getSessionId());
|
.setAttribute("sid", this.getSessionId());
|
||||||
activation.query().addChild("activate")
|
activation.query().addChild("activate")
|
||||||
.setContent(this.getCounterPart().toString());
|
.setContent(this.getCounterPart().toString());
|
||||||
this.account.getXmppConnection().sendIqPacket(activation,
|
mXmppConnectionService.sendIqPacket(account,activation,
|
||||||
new OnIqPacketReceived() {
|
new OnIqPacketReceived() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue