/** * 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 JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException { command = new ModifyConnection(source != null ? source : stack, new CallIdentifier("00"), endpoint,new ConnectionIdentifier("00")); command.setTransactionHandle(remoteTID); try { (new CommandContentHandle()).parse(data,message); } catch (IOException e) { logger.error("Decoding of MDCX command failed", e); } NotifiedEntity notifiedEntity = command.getNotifiedEntity(); if (command.getNotifiedEntity() != null) this.stack.provider.setNotifiedEntity(notifiedEntity); return command; }
public JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException { command = new ModifyConnection(source != null ? source : stack, new CallIdentifier("00"), endpoint,new ConnectionIdentifier("00")); command.setTransactionHandle(remoteTID); try { (new CommandContentHandle()).parse(data,message); } catch (IOException e) { logger.error("Decoding of MDCX command failed", e); } NotifiedEntity notifiedEntity = command.getNotifiedEntity(); if (command.getNotifiedEntity() != null) this.stack.provider.setNotifiedEntity(notifiedEntity); return command; }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); ConnectionIdentifier connectionID = connection.getConnectionID(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); ModifyConnection req = new ModifyConnection(this, callId, endpointID, connectionID); req.setMode(ConnectionMode.Confrnce); req.setTransactionHandle(txHandle); try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); } catch (Exception e) { } //send request connection.getMediaSession().getDriver().attach(txHandle, new ModifyConnectionResponseHandler(connection)); connection.getMediaSession().getDriver().send(req); }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); ConnectionIdentifier connectionID = connection.getConnectionID(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); ModifyConnection req = new ModifyConnection(this, callId, endpointID, connectionID); req.setMode(ConnectionMode.Confrnce); req.setTransactionHandle(txHandle); try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); } catch (Exception e) { } //send request connection.getMediaSession().getDriver().attach(txHandle, new ModifyConnectionResponseHandler(connection)); connection.getMediaSession().getDriver().send(req); }
containers[0].endpoint.getIdentifier(), connections[0]); mdcx.setMode(mode0); mdcx.setTransactionHandle(txID); containers[1].endpoint.getIdentifier(), connections[1]); mdcx.setMode(mode1); mdcx.setTransactionHandle(txID);
containers[0].endpoint.getIdentifier(), connections[0]); mdcx.setMode(mode0); mdcx.setTransactionHandle(txID); containers[1].endpoint.getIdentifier(), connections[1]); mdcx.setMode(mode1); mdcx.setTransactionHandle(txID);