protected void registerSipConnector ( Connector connector ) { try { ObjectName objectName = createSipConnectorObjectName ( connector , getName ( ) , "SipConnector" ) ; Registry . getRegistry ( null , null ) . registerComponent ( connector , objectName , null ) ; //TODO connector.setController(objectName); } catch ( Exception e ) { logger . error ( "Error registering connector " , e ) ; } if ( logger . isDebugEnabled ( ) ) logger . debug ( "Creating name for connector " + getObjectName ( ) ) ; }
Register the sip connector under a different name than HTTP Connector and we add the transport to avoid clashing with 2 connectors having the same port and address