code: private MgcpConnection createLocalConnection(int callId, MgcpEndpoint endpoint) throws MgcpConnectionException {
          MgcpConnection connection = endpoint.createConnection(callId, true);
          connection.open(null);
          return connection;
      }
docs: Creates a new Local Connection.
  
  <p>
  The connection will be fully open and connected to a secondary endpoint.<br>
  </p>
  
  @param callId The the call identifies which indicates to which session the connection belongs to.
  @param secondEndpoint The endpoint where the connection will be registered to.
  
  @return The new connection
  @throws MgcpException If connection could not be opened.