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 ; }
Creates a new Remote Connection .