- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
mgcpProvider = mgcpStack.createProvider();
mgcpProvider = mgcpStack.createProvider();
@Override public synchronized void start() throws RuntimeException { assertState(SHUTDOWN); // Initialize the call agent. callAgent = new NotifiedEntity("restcomm", localIp.getHostAddress(), localPort); // Initialize the media gateway domain name. domainName = new StringBuilder().append(remoteIp.getHostAddress()).append(":") .append(remotePort).toString(); // Start the MGCP stack. try { mgcpStack = new JainMgcpStackImpl(localIp, localPort); mgcpProvider = mgcpStack.createProvider(); mgcpProvider.addJainMgcpListener(this); } catch(final Exception exception) { throw new RuntimeException(exception); } requestListeners = new ArrayList<JainMgcpListener>(); requestListenersLock = new Object(); responseListeners = new HashMap<Integer, JainMgcpListener>(); requestId = new RangeCounter(1, Integer.MAX_VALUE); transactionId = new RangeCounter(1, Integer.MAX_VALUE); mediaSessionId = new RangeCounter(1, Integer.MAX_VALUE); mediaSessions = new HashMap<Integer, MgcpSession>(); setState(RUNNING); }
/** * @param ip * @param port * @throws UnknownHostException */ protected void bindMGCPStack(String ip, int port) throws UnknownHostException { mgcpStack = new JainMgcpStackImpl(DNSUtils.getByName(ip), port); try { mgcpProvider = mgcpStack.createProvider(); } catch (final CreateProviderException exception) { logger.error(exception, "Could not create a JAIN MGCP provider."); } }