public void start() throws Exception { this.logger.info("Starting MapServerUssdClient ..."); this.mapProvider = this.mapStack.getMAPProvider(); this.mapProvider.addMAPDialogListener(this); this.mapProvider.getMAPServiceSupplementary().addMAPServiceListener(this); this.mapProvider.getMAPServiceSupplementary().acivate(); this.rateLimiterObj = RateLimiter.create(getMaxConcurrentDialogs()); // rate SCCP_CLIENT_ADDRESS = new SccpAddressImpl(RoutingIndicator.ROUTING_BASED_ON_DPC_AND_SSN, null, CLIENT_SPC, SSN); SCCP_SERVER_ADDRESS = new SccpAddressImpl(RoutingIndicator.ROUTING_BASED_ON_DPC_AND_SSN, null, SERVER_SPC, SSN); Thread mainThread = new Thread(new MapServerUssdClient_StartClass()); mainThread.start(); this.logger.info("Started MapServerUssdClient ..."); }
private void initMAP() throws Exception { System.out.println("initMAP"); this.mapStack = new MAPStackImpl("Test", this.sccpStack.getSccpProvider(), SSN); this.mapProvider = this.mapStack.getMAPProvider(); System.out.println("this.mapProvider = " + this.mapProvider); this.mapProvider.addMAPDialogListener(this); this.mapProvider.getMAPServiceSms().addMAPServiceListener(this); this.mapProvider.getMAPServiceSms().acivate(); this.mapStack.start(); this.mapStack.getMAPProvider().getMAPServiceSupplementary().acivate(); }
public boolean start() { this.mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapServiceLsm = mapProvider.getMAPServiceLsm(); this.mapParameterFactory = mapProvider.getMAPParameterFactory(); mapServiceLsm.acivate(); mapServiceLsm.addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); isStarted = true; return true; }
public boolean start() { this.mapProvider = this.mapMan.getMAPStack().getMAPProvider(); this.mapServiceLsm = mapProvider.getMAPServiceLsm(); this.mapParameterFactory = mapProvider.getMAPParameterFactory(); mapServiceLsm.acivate(); mapServiceLsm.addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); isStarted = true; this.countMapLcsReq = 0; this.countMapLcsResp = 0; return true; }
public boolean start() { this.countCheckImeiReq = 0; this.countCheckImeiResp = 0; this.currentRequestDef = ""; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceMobility().acivate(); mapProvider.getMAPServiceMobility().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "CHECK IMEI Client has been started", "", Level.INFO); isStarted = true; if (this.testerHost.getConfigurationData().getTestCheckImeiClientConfigurationData().getCheckImeiClientAction().intValue() == CheckImeiClientAction.VAL_AUTO_SendCheckImeiRequest) { nbConcurrentDialogs = new AtomicInteger(); this.sender = new MessageSender(); Thread thr = new Thread(this.sender); thr.start(); } return true; }
public boolean start() { MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceSupplementary().acivate(); mapProvider.getMAPServiceSupplementary().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "USSD Server has been started", "", Level.INFO); isStarted = true; return true; }
public boolean start() { this.countAtiReq = 0; this.countAtiResp = 0; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceMobility().acivate(); mapProvider.getMAPServiceMobility().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "ATI Client has been started", "", Level.INFO); isStarted = true; return true; }
public boolean start() { this.countCheckImeiReq = 0; this.countCheckImeiResp = 0; this.currentRequestDef = ""; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceMobility().acivate(); mapProvider.getMAPServiceMobility().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "CHECK IMEI Server has been started", "", Level.INFO); isStarted = true; return true; }
public boolean start() { this.countAtiReq = 0; this.countAtiResp = 0; this.countErrSent = 0; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceMobility().acivate(); mapProvider.getMAPServiceMobility().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "ATI Server has been started", "", Level.INFO); isStarted = true; return true; }
private void initMAP() throws Exception { this.mapStack = new MAPStackImpl("TestServer", this.tcapStack.getProvider()); this.mapProvider = this.mapStack.getMAPProvider(); this.mapProvider.addMAPDialogListener(this); this.mapProvider.getMAPServiceSupplementary().addMAPServiceListener(this); this.mapProvider.getMAPServiceSupplementary().acivate(); this.mapStack.start(); }
private void initMAP() throws Exception { // this.mapStack = new MAPStackImpl(this.sccpStack.getSccpProvider(), SSN); this.mapStack = new MAPStackImpl("TestClient", this.tcapStack.getProvider()); this.mapProvider = this.mapStack.getMAPProvider(); this.mapProvider.addMAPDialogListener(this); this.mapProvider.getMAPServiceSupplementary().addMAPServiceListener(this); this.mapProvider.getMAPServiceSupplementary().acivate(); this.mapStack.start(); }
public boolean start() { this.countSriReq = 0; this.countSriResp = 0; this.countMtFsmReq = 0; this.countMtFsmResp = 0; this.countMoFsmReq = 0; this.countMoFsmResp = 0; this.countIscReq = 0; this.countErrRcvd = 0; this.countErrSent = 0; this.countRsmdsReq = 0; this.countRsmdsResp = 0; this.countAscReq = 0; this.countAscResp = 0; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceSms().acivate(); mapProvider.getMAPServiceSms().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "SMS Server has been started", "", Level.INFO); isStarted = true; return true; }
public boolean start() { this.countSriReq = 0; this.countSriResp = 0; this.countMtFsmReq = 0; this.countMtFsmReqNot = 0; this.countMtFsmResp = 0; this.countMoFsmReq = 0; this.countMoFsmResp = 0; this.countIscReq = 0; this.countRsmdsReq = 0; this.countRsmdsResp = 0; this.countAscReq = 0; this.countAscResp = 0; this.countErrRcvd = 0; this.countErrSent = 0; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceSms().acivate(); mapProvider.getMAPServiceSms().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "SMS Client has been started", "", Level.INFO); isStarted = true; return true; }
public boolean start() { this.countSriReq = 0; this.countSriResp = 0; this.countErrSent = 0; this.countProcUnstReq = 0; this.countProcUnstResp = 0; this.countProcUnstReqNot = 0; this.countUnstReq = 0; this.countUnstResp = 0; this.countUnstNotifReq = 0; this.countErrSent = 0; this.countErrSent = 0; MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); mapProvider.getMAPServiceSupplementary().acivate(); mapProvider.getMAPServiceSupplementary().addMAPServiceListener(this); mapProvider.getMAPServiceSms().acivate(); mapProvider.getMAPServiceSms().addMAPServiceListener(this); mapProvider.addMAPDialogListener(this); this.testerHost.sendNotif(SOURCE_NAME, "USSD Client has been started", "", Level.INFO); isStarted = true; if (this.testerHost.getConfigurationData().getTestUssdClientConfigurationData().getUssdClientAction().intValue() == UssdClientAction.VAL_AUTO_SendProcessUnstructuredSSRequest) { nbConcurrentDialogs = new AtomicInteger(); this.sender = new MessageSender(); Thread thr = new Thread(this.sender); thr.start(); } return true; }
public void start() { // Create MAP Stack and register listener this.mapStack = new MAPStackImpl("test" ,this.sccpStack.getSccpProvider(), this.getSsn()); this.mapProvider = this.mapStack.getMAPProvider(); this.mapListener = new MAPListener(this); this.mapProvider.addMAPDialogListener(this.mapListener); this.mapProvider.getMAPServiceMobility().addMAPServiceListener(this.mapListener); this.mapProvider.getMAPServiceMobility().acivate(); try { this.mapStack.start(); this.sccpStack.getSccpProvider().registerSccpListener(1, new MSCSccpListener(mapProvider, sccpStack.getSccpProvider().getParameterFactory())); } catch (Exception e) { throw new RuntimeException("Erro starting map stack", e); } }
this.realProvider.addMAPDialogListener(this);