mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Only relay session if the Transport is Relayed
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7031 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
f9203c0e00
commit
78c6e3438b
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ public class ICETransportManager extends JingleTransportManager implements Jingl
|
|||
// Implement a Session Listener to relay candidates after establishment
|
||||
|
||||
public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc, JingleSession jingleSession) {
|
||||
RTPBridge rtpBridge = RTPBridge.relaySession(lc.getConnection(), lc.getSessionId(), lc.getPassword(), rc, lc);
|
||||
if (lc instanceof TransportCandidate.Ice) {
|
||||
if (((TransportCandidate.Ice) lc).getType().equals("relay")) {
|
||||
RTPBridge rtpBridge = RTPBridge.relaySession(lc.getConnection(), lc.getSessionId(), lc.getPassword(), rc, lc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void sessionDeclined(String reason, JingleSession jingleSession) {
|
||||
|
|
Loading…
Reference in a new issue