public CallIdentifier getUniqueCallIdentifier() { return new CallIdentifier(Long.toHexString((long)callIdentifierCounter.incrementAndGet() - (long)Integer.MIN_VALUE)); }
byte[] callBytes=response.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
byte[] callBytes=response.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
public CallIdentifier getUniqueCallIdentifier() { return new CallIdentifier(Long.toHexString((long)callIdentifierCounter.incrementAndGet() - (long)Integer.MIN_VALUE)); }
array[totalLength++]=StringFunctions.HIGH_C_BYTE; array[totalLength++]=StringFunctions.COLON_BYTE; byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
public CallIdentifier getUniqueCallIdentifier() { long current = -1; boolean b = true; while (b) { current = callIdentifierCounter.get(); if (current == Long.MAX_VALUE) { b = !callIdentifierCounter.compareAndSet(current, 1); } else { b = !callIdentifierCounter.compareAndSet(current, current + 1); } } return new CallIdentifier(Long.toHexString(current)); }
array[totalLength++]=StringFunctions.HIGH_C_BYTE; array[totalLength++]=StringFunctions.COLON_BYTE; byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
/** * Receive notification of the header of a message. Parser will call * this method to report about header reading. * * @param header * the header from the message. */ public void header(String header) throws ParseException { command = new CreateConnection(source != null ? source : stack, new CallIdentifier("0"), endpoint, ConnectionMode.Inactive); command.setTransactionHandle(remoteTID); }
byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
public MediaSessionImpl(MsControlFactoryImpl factory) throws MsControlException { super(null, factory.getDriver(), null); this.factory = factory; //generate callID = new CallIdentifier(genCallID()); }
byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
public MediaSessionImpl(MsControlFactoryImpl factory) throws MsControlException { super(null, factory.getDriver(), null); this.factory = factory; //generate callID = new CallIdentifier(genCallID()); }
public void onCallCreated(CustomEvent evt, ActivityContextInterface aci) { logger.info("Custom Event received Endpoint = " + evt.getEndpointID() + " Connection Id " + evt.getConnectionID().toString() + "Call Id = " + evt.getCallID().toString()); this.setEndpointIdentifier(evt.getEndpointID()); this.setConnectionIdentifier(evt.getConnectionID()); this.setCallIdentifier(evt.getCallID()); try { } catch (Exception e) { logger.severe("Error while receiving the Custom Event ", e); } }
/** * Receive notification of the header of a message. Parser will call * this method to report about header reading. * * @param header * the header from the message. */ public void header(String header) throws ParseException { command = new ModifyConnection(source != null ? source : stack, new CallIdentifier("00"), endpoint, new ConnectionIdentifier("00")); command.setTransactionHandle(remoteTID); }
public void onCallTerminated(CustomEvent evt, ActivityContextInterface aci) { logger.info("Conference Terminated " + this.getEndpointIdentifier() + " Connection Id " + this.getConnectionIdentifier().toString() + " callId = " + this.getCallIdentifier().toString()); EndpointIdentifier endpointID = this.getEndpointIdentifier(); ConnectionIdentifier connectionID=this.getConnectionIdentifier(); DeleteConnection deleteConnection = new DeleteConnection(this, this.getCallIdentifier(), endpointID,connectionID); deleteConnection.setTransactionHandle(this.mgcpProvider.getUniqueTransactionHandler()); mgcpProvider.sendMgcpEvents(new JainMgcpEvent[] { deleteConnection }); }
public JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException { command = new CreateConnection(source != null ? source : stack, new CallIdentifier("0"), endpoint,ConnectionMode.Inactive); command.setTransactionHandle(remoteTID); try { (new CommandContentHandle()).parse(data,message); } catch (Exception e) { throw new ParseException(e.getMessage(), -1); } NotifiedEntity notifiedEntity = command.getNotifiedEntity(); if (command.getNotifiedEntity() != null) this.stack.provider.setNotifiedEntity(notifiedEntity); return command; }
byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
public JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException { command = new CreateConnection(source != null ? source : stack, new CallIdentifier("0"), endpoint,ConnectionMode.Inactive); command.setTransactionHandle(remoteTID); try { (new CommandContentHandle()).parse(data,message); } catch (Exception e) { throw new ParseException(e.getMessage(), -1); } NotifiedEntity notifiedEntity = command.getNotifiedEntity(); if (command.getNotifiedEntity() != null) this.stack.provider.setNotifiedEntity(notifiedEntity); return command; }
byte[] callBytes=evt.getCallIdentifier().toString().getBytes(); System.arraycopy(callBytes, 0, array,totalLength, callBytes.length); totalLength+=callBytes.length;
@Override public void execute(final Object message) throws Exception { final String sessionId = Integer.toString(session.id()); final CallIdentifier callId = new CallIdentifier(sessionId); final DeleteConnection dlcx = new DeleteConnection(source, callId, endpointId, connId); gateway.tell(dlcx, source); // Make sure we don't wait for a response indefinitely. getContext().setReceiveTimeout(Duration.create(timeout, TimeUnit.MILLISECONDS)); } }