public PacketRelayEndpoint(final ActorRef gateway, final MediaSession session, final NotifiedEntity entity, final String domain, long timeout) { super(gateway, session, entity, new EndpointIdentifier("mobicents/relay/$", domain), timeout); } }
public IvrEndpoint(final ActorRef gateway, final MediaSession session, final NotifiedEntity agent, final String domain, long timeout, String endpointName) { super(gateway, session, agent, new EndpointIdentifier(endpointName==null?ivrEndpointName:endpointName, domain), timeout); this.agent = agent; }
public ConferenceEndpoint(final ActorRef gateway, final MediaSession session, final NotifiedEntity agent, final String domain, long timeout, String endpointName) { super(gateway, session, agent, new EndpointIdentifier(endpointName==null?conferenceEndpointName:endpointName, domain), timeout); } }
public BridgeEndpoint(final ActorRef gateway, final MediaSession session, final NotifiedEntity agent, final String domain, long timeout) { super(gateway, session, agent, new EndpointIdentifier(bridgeEndpointName, domain), timeout); }
public BridgeEndpoint(ActorRef gateway, MediaSession session, NotifiedEntity agent, String domain, long timeout, String endpointName) { super(gateway, session, agent, new EndpointIdentifier(endpointName==null?bridgeEndpointName:endpointName, domain), timeout); }
public static EndpointIdentifier decode(byte[] value,int offset,int length) throws ParseException { for(int i=0;i<length;i++) if(value[offset+i]==StringFunctions.AT_BYTE) return new EndpointIdentifier(new String(value,offset,i), new String(value,offset+i+1,length-i-1)); return new EndpointIdentifier(new String(value,offset,length),null); }
public static EndpointIdentifier decode(byte[] value,int offset,int length) throws ParseException { for(int i=0;i<length;i++) if(value[offset+i]==StringFunctions.AT_BYTE) return new EndpointIdentifier(new String(value,offset,i), new String(value,offset+i+1,length-i-1)); return new EndpointIdentifier(new String(value,offset,length),null); }
public MgcpPacketRelayEndpoint(final MgcpServer server) { super(); this.any = new EndpointIdentifier("mobicents/relay/$", server.getDomainName()); }
public MgcpConferenceEndpoint(final MgcpServer server) { super(); this.any = new EndpointIdentifier("mobicents/cnf/$", server.getDomainName()); }
/** * Creates EndpointIdentifier object from givent endpont's name. * * @param name * the name of the given endpoint. * @return EdnpointIdentifier object. */ public EndpointIdentifier decodeEndpointIdentifier(String name) { try { this.split(AMPERSAND, name, list); String[] s = new String[list.size()]; list.toArray(s); return new EndpointIdentifier(s[0], s[1]); } finally { list.clear(); } }
public MediaMixerImpl(MediaSessionImpl mediaSession, MediaConfigImpl config) throws MsControlException { super(mediaSession, config.getParameters()); this.config = config; //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); }
public MediaMixerImpl(MediaSessionImpl mediaSession, MediaConfigImpl config) throws MsControlException { super(mediaSession, config.getParameters()); this.config = config; //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); }
public MediaGroupImpl(MediaSessionImpl session, MediaConfigImpl config) throws MsControlException { super(session, config.getParameters()); //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); player = new PlayerImpl(this); recorder = new RecorderImpl(this); detector = new SignalDetectorImpl(this, config); }
public NetworkConnectionImpl(MediaSessionImpl session, MediaConfigImpl config) throws MsControlException { super(session, config.getParameters()); this.config = config; //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed // endpointName = new EndpointIdentifier(localName, domainName); endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); maxJoinees = 1; sdpPortManager = new SdpPortManagerImpl(this); this.init(); }
public NetworkConnectionImpl(MediaSessionImpl session, MediaConfigImpl config) throws MsControlException { super(session, config.getParameters()); this.config = config; //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed // endpointName = new EndpointIdentifier(localName, domainName); endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); maxJoinees = 1; sdpPortManager = new SdpPortManagerImpl(this); this.init(); }
public MediaGroupImpl(MediaSessionImpl session, MediaConfigImpl config) throws MsControlException { super(session, config.getParameters()); //determine endpoint local name String localName = (String)config.getValue(ENDPOINT_NAME); //domain name of the server is constructed using proprties from config String domainName = session.getDriver().getRemoteDomainName(); //finally, the endpoint identifier is constructed endpoint = new Endpoint(new EndpointIdentifier(localName, domainName)); player = new PlayerImpl(this); recorder = new RecorderImpl(this); detector = new SignalDetectorImpl(this, config); }
public MgcpIvrEndpoint(final MgcpServer server) { super(IDLE); addState(IDLE); addState(PLAY); addState(PLAY_COLLECT); addState(PLAY_RECORD); addState(STOP); addState(FAILED); server.addNotifyListener(this); this.server = server; this.any = new EndpointIdentifier("mobicents/ivr/$", server.getDomainName()); this.observers = Collections.synchronizedList(new ArrayList<MgcpIvrEndpointObserver>()); }
@Override public void execute(final Object message) throws Exception { final OpenLink request = (OpenLink) message; if(request.primaryEndpointId() != null) primaryEndpointId = new EndpointIdentifier(request.primaryEndpointId(), primaryEndpointId.getDomainName()); if(request.secondaryEndpointId() != null) secondaryEndpointId = new EndpointIdentifier(request.secondaryEndpointId(), secondaryEndpointId.getDomainName()); final String sessionId = Integer.toString(session.id()); final CallIdentifier callId = new CallIdentifier(sessionId); final CreateConnection crcx = new CreateConnection(source, callId, primaryEndpointId, request.mode()); crcx.setNotifiedEntity(agent); crcx.setSecondEndpointIdentifier(secondaryEndpointId); gateway.tell(crcx, source); // Make sure we don't wait for a response indefinitely. getContext().setReceiveTimeout(Duration.create(timeout, TimeUnit.MILLISECONDS)); } }
public void onCallTerminated(RequestEvent evt, ActivityContextInterface aci) { EndpointIdentifier endpointID = new EndpointIdentifier(this.getEndpointName(), JBOSS_BIND_ADDRESS + ":" + MGCP_PEER_PORT); DeleteConnection deleteConnection = new DeleteConnection(this, endpointID); deleteConnection.setTransactionHandle(mgcpProvider.getUniqueTransactionHandler()); mgcpProvider.sendMgcpEvents(new JainMgcpEvent[] { deleteConnection }); ServerTransaction tx = evt.getServerTransaction(); Request request = evt.getRequest(); try { Response response = messageFactory.createResponse(Response.OK, request); tx.sendResponse(response); } catch (Exception e) { logger.severe("Error while sending DLCX ", e); } }
private void sendRQNT(String mediaPath, boolean createActivity) { EndpointIdentifier endpointID = new EndpointIdentifier(this.getEndpointName(), JBOSS_BIND_ADDRESS + ":" + MGCP_PEER_PORT);