if (evt.getSecondEndpointIdentifier() != null) { s.append("Z2: ").append(evt.getSecondEndpointIdentifier()).append(NEW_LINE);
@Override protected void createConnection (final Object message, final ActorRef sender) { final jain.protocol.ip.mgcp.message.CreateConnection crcx = (jain.protocol.ip.mgcp.message.CreateConnection) message; if(logger.isInfoEnabled()) logger.info("createConnection: " +crcx.toString()); // check if its a conference and call link request if(crcx.getSecondEndpointIdentifier() != null && crcx.getSecondEndpointIdentifier().getLocalEndpointName() != null && crcx.getSecondEndpointIdentifier().getLocalEndpointName().contains("cnf")){ // if yes then fail this connection request if(logger.isInfoEnabled()) logger.info("got conference and call link request, will fail it! with error code Endpoint_Unknown"); StringBuilder buffer = new StringBuilder(); buffer.append(connectionIdPool.get()); ConnectionIdentifier connId = new ConnectionIdentifier(buffer.toString()); sender.tell(new CreateConnectionResponse(self(), ReturnCode.Endpoint_Unknown, connId), self()); }else { // if not then let daddy proceed with existing mocked mechanism. super.createConnection(message, sender); } } }
EndpointIdentifier secondaryEndpointId = crcx.getSecondEndpointIdentifier(); if (secondaryEndpointId != null) { buffer = new StringBuilder();
response.setSpecificEndpointIdentifier(endpointId); EndpointIdentifier secondaryEndpointId = crcx.getSecondEndpointIdentifier(); if (secondaryEndpointId != null) { buffer = new StringBuilder();
if (evt.getSecondEndpointIdentifier() != null) totalLength+=EndpointIdentifierHandler.encode(array,totalLength,evt.getSecondEndpointIdentifier());
if (evt.getSecondEndpointIdentifier() != null) totalLength+=EndpointIdentifierHandler.encode(array,totalLength,evt.getSecondEndpointIdentifier());