/** * 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); }
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; }
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; }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); //generate message CreateConnection req = new CreateConnection(this, callId, endpointID, ConnectionMode.SendRecv); req.setTransactionHandle(txHandle); req.setNotifiedEntity(connection.getMediaSession().getDriver().getCallAgent()); //if SDP is present assign it to request if (connection.sdpPortManager.remoteSdp != null) { try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); req.setMode(ConnectionMode.Confrnce); } catch (Exception e) { } } //create handler for this and register it as listener connection.getMediaSession().getDriver().attach(txHandle, new CreateConnectionResponseHandler(connection)); //send request 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(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); //generate message CreateConnection req = new CreateConnection(this, callId, endpointID, ConnectionMode.SendRecv); req.setTransactionHandle(txHandle); req.setNotifiedEntity(connection.getMediaSession().getDriver().getCallAgent()); //if SDP is present assign it to request if (connection.sdpPortManager.remoteSdp != null) { try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); req.setMode(ConnectionMode.Confrnce); } catch (Exception e) { } } //create handler for this and register it as listener connection.getMediaSession().getDriver().attach(txHandle, new CreateConnectionResponseHandler(connection)); //send request connection.getMediaSession().getDriver().send(req); }
createConnection.setTransactionHandle(txID);
createConnection.setTransactionHandle(mgcpProvider.getUniqueTransactionHandler());
crcx.setTransactionHandle(txID); crcx.setNotifiedEntity(containers[0].session.getDriver().getCallAgent());
crcx.setTransactionHandle(txID); crcx.setNotifiedEntity(containers[0].session.getDriver().getCallAgent());
createConnection.setTransactionHandle(txID);
createConnection.setTransactionHandle(txID);