@SuppressWarnings("unchecked") @Override public void execute(final Object message) throws Exception { final MediaGatewayResponse<ActorRef> response = (MediaGatewayResponse<ActorRef>) message; ivr = response.get(); ivr.tell(new Observe(source), source); if (link != null && !link.isTerminated()) { if (logger.isInfoEnabled()) { logger.info( "MediaGroup :" + self().path() + " got request to create link endpoint, will stop the existing one first: " + link.path()); } gateway.tell(new DestroyLink(link), null); getContext().stop(link); } if (logger.isInfoEnabled()) { logger.info( "MediaGroup :" + self().path() + " state: " + fsm.state().toString() + " session: " + session.id() + " ivr endpoint: " + ivr.path() + " will ask to get Link"); } gateway.tell(new CreateLink(session), source); }
@SuppressWarnings("unchecked") @Override public void execute(Object message) throws Exception { final MediaGatewayResponse<ActorRef> response = (MediaGatewayResponse<ActorRef>) message; internalLink = response.get(); internalLink.tell(new Observe(source), source); internalLink.tell(new InitializeLink(internalLinkEndpoint, ivr), source); }
@SuppressWarnings("unchecked") @Override public void execute(final Object message) throws Exception { final MediaGatewayResponse<ActorRef> response = (MediaGatewayResponse<ActorRef>) message; link = response.get(); if (endpoint == null) if (logger.isInfoEnabled()) { logger.info( "MediaGroup :" + self().path() + " state: " + fsm.state().toString() + " session: " + session.id() + " link: " + link.path() + " endpoint is null will have exception"); } link.tell(new Observe(source), source); link.tell(new InitializeLink(endpoint, ivr), source); if (logger.isInfoEnabled()) { logger.info( "MediaGroup :" + self().path() + " state: " + fsm.state().toString() + " session: " + session.id() + " link: " + link.path() + " endpoint: " + endpoint.path() + " initializeLink sent, endpoint isTerminated: " + endpoint.isTerminated()); } }