Exemple #1
0
 private void takeOver(SipCall that) {
   if (SC_DBG) log("takeOver");
   mConnections = that.mConnections;
   mState = that.mState;
   for (Connection c : mConnections) {
     ((SipConnection) c).changeOwner(this);
   }
 }
Exemple #2
0
    private void add(SipConnection conn) {
      if (SC_DBG) log("add:");
      SipCall call = conn.getCall();
      if (call == this) return;
      if (call != null) call.mConnections.remove(conn);

      mConnections.add(conn);
      conn.changeOwner(this);
    }