code: private MgcpConnection createRemoteConnection(int callId, ConnectionMode mode, MgcpEndpoint endpoint, CrcxContext context) throws MgcpConnectionException {
          // Create connection
          MgcpConnection connection = endpoint.createConnection(callId, false);
          // TODO set call agent
          String localDescription = connection.halfOpen(context.getLocalConnectionOptions());
          context.setLocalDescription(localDescription);
          connection.setMode(mode);
          return connection;
      }
docs: Creates a new Remote Connection.
  
  <p>
  The connection will be half-open and a Local Connection Description is generated.
  </p>
  
  @param callId The call identifies which indicates to which session the connection belongs to.
  @param mode The connection mode.
  @param endpoint The endpoint where the connection will be registered to.
  
  @return The new connection
  @throws MgcpConnectionException If connection could not be half opened.