@Override public JainMgcpResponseEvent getProvisionalResponse() { DeleteConnectionResponse provisionalResponse = null; if (!sent) { provisionalResponse = new DeleteConnectionResponse(source != null ? source : stack, ReturnCode.Transaction_Being_Executed); provisionalResponse.setTransactionHandle(commandEvent.getTransactionHandle()); } return provisionalResponse; }
@Override public JainMgcpResponseEvent getProvisionalResponse() { DeleteConnectionResponse provisionalResponse = null; if (!sent) { provisionalResponse = new DeleteConnectionResponse(source != null ? source : stack,ReturnCode.Transaction_Being_Executed); provisionalResponse.setTransactionHandle(commandEvent.getTransactionHandle()); } return provisionalResponse; }
@Override public JainMgcpResponseEvent getProvisionalResponse() { DeleteConnectionResponse provisionalResponse = null; if (!sent) { provisionalResponse = new DeleteConnectionResponse(source != null ? source : stack,ReturnCode.Transaction_Being_Executed); provisionalResponse.setTransactionHandle(commandEvent.getTransactionHandle()); } return provisionalResponse; }
/** * 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 { String[] tokens = utils.splitStringBySpace(header); int tid = Integer.parseInt(tokens[1]); response = new DeleteConnectionResponse(source != null ? source : stack, utils.decodeReturnCode(Integer .parseInt(tokens[0]))); response.setTransactionHandle(tid); }
public JainMgcpResponseEvent decodeResponse(byte[] data,SplitDetails[] msg,Integer txID,ReturnCode returnCode) throws ParseException { response = new DeleteConnectionResponse(source != null ? source : stack, returnCode); response.setTransactionHandle(txID); try { (new ResponseContentHandle()).parse(data,msg); } catch (Exception e) { logger.error("Decode of DLCX Response failed", e); } return response; }
public JainMgcpResponseEvent decodeResponse(byte[] data,SplitDetails[] msg,Integer txID,ReturnCode returnCode) throws ParseException { response = new DeleteConnectionResponse(source != null ? source : stack, returnCode); response.setTransactionHandle(txID); try { (new ResponseContentHandle()).parse(data,msg); } catch (Exception e) { logger.error("Decode of DLCX Response failed", e); } return response; }
private void deleteConnection(final Object message, final ActorRef sender) { final ActorRef self = self(); final DeleteConnection dlcx = (DeleteConnection) message; System.out.println(dlcx.toString()); final ReturnCode code = ReturnCode.Transaction_Executed_Normally; final DeleteConnectionResponse response = new DeleteConnectionResponse(self, code); final int transaction = dlcx.getTransactionHandle(); response.setTransactionHandle(transaction); System.out.println(response.toString()); sender.tell(response, self); }
final DeleteConnectionResponse response = new DeleteConnectionResponse(self, code); final int transaction = dlcx.getTransactionHandle(); response.setTransactionHandle(transaction); System.out.println(response.toString()); sender.tell(response, self);