@Override public String closeCurrentDialog() { if (isStarted) { MAPDialogSupplementary curDialog = currentDialog; if (curDialog != null) { try { curDialog.close(false); this.doRemoveDialog(); return "The current dialog has been closed"; } catch (MAPException e) { this.doRemoveDialog(); return "Exception when closing the current dialog: " + e.toString(); } } else { return "No current dialog"; } } else { return "The tester is not started"; } }
return "Exception when sending UssdBusyResponse: " + ex.toString();
@Override public String closeCurrentDialog() { if (!isStarted) return "The tester is not started"; MAPDialogMobility curDialog = currentDialog; if (curDialog != null) { try { MAPUserAbortChoice choice = new MAPUserAbortChoiceImpl(); choice.setUserSpecificReason(); curDialog.abort(choice); this.doRemoveDialog(); return "The current dialog has been closed"; } catch (MAPException e) { this.doRemoveDialog(); return "Exception when closing the current dialog: " + e.toString(); } } else { return "No current dialog"; } }
@Override public String closeCurrentDialog() { if (!isStarted) return "The tester is not started"; if (this.sender != null) return "The tester is not in a manual mode"; MAPDialogMobility curDialog = currentDialog; if (curDialog != null) { try { MAPUserAbortChoice choice = new MAPUserAbortChoiceImpl(); choice.setUserSpecificReason(); curDialog.abort(choice); this.doRemoveDialog(); return "The current dialog has been closed"; } catch (MAPException e) { this.doRemoveDialog(); return "Exception when closing the current dialog: " + e.toString(); } } else { return "No current dialog"; } }
@Override public void onSriHrByPass(CorrelationIdValue correlationIdValue) { MAPDialogSms dlg = this.getActivity(); if (dlg == null) { this.logger.severe("Home routing: can not get MAPDialog for sending SRI hrByPass Response"); return; } smscStatAggregator.updateMsgInHrSriHrByPass(); StringBuilder sb = new StringBuilder(); sb.append("Home routing: bypassing of Home routing: procedure: transaction: "); sb.append(correlationIdValue); if (this.logger.isInfoEnabled()) this.logger.info(sb.toString()); // sending original SRI response try { SendRoutingInfoForSMResponse sendRoutingInfoForSMResponse = correlationIdValue.getSendRoutingInfoForSMResponse(); this.doSendResponse(correlationIdValue, dlg, sendRoutingInfoForSMResponse.getIMSI().getData(), sendRoutingInfoForSMResponse.getLocationInfoWithLMSI()); } catch (MAPException e) { if (dlg != null) { dlg.release(); } String reason = "Home routing: MAPException when sending SRI bypassing of Home routing: " + e.toString(); this.logger.severe(reason, e); } }
@Override public String closeCurrentDialog() { if (!isStarted) return "The tester is not started"; if (this.sender != null) return "The tester is not in a manual mode"; MAPDialogSupplementary curDialog = currentDialog; if (curDialog != null) { try { MAPUserAbortChoice choice = new MAPUserAbortChoiceImpl(); choice.setUserSpecificReason(); curDialog.abort(choice); this.doRemoveDialog(); return "The current dialog has been closed"; } catch (MAPException e) { this.doRemoveDialog(); return "Exception when closing the current dialog: " + e.toString(); } } else { return "No current dialog"; } }
String reason = "Home routing: MAPException when sending SRI negative Response: " + e.toString(); this.logger.severe(reason, e);
public void onSubscriberLocationReportRequest(SubscriberLocationReportRequest subscriberLocationReportRequestIndication) { logger.debug("onSubscriberLocationReportRequest"); if (!isStarted) return; MAPDialogLsm curDialog = subscriberLocationReportRequestIndication.getMAPDialog(); String networkNodeNumberAddress = subscriberLocationReportRequestIndication.getLCSLocationInfo().getNetworkNodeNumber().getAddress(); this.testerHost.sendNotif(SOURCE_NAME, "Rcvd: SubscriberLocationReportRequest", createSLRReqData(curDialog.getLocalDialogId(),networkNodeNumberAddress), Level.INFO); MAPParameterFactory mapParameterFactory = this.mapProvider.getMAPParameterFactory(); ISDNAddressString naEsrd = mapParameterFactory.createISDNAddressString( AddressNature.getInstance(getAddressNature().intValue()), NumberingPlan.getInstance(getNumberingPlanType().intValue()), getNaESRDAddress()); try { curDialog.addSubscriberLocationReportResponse(subscriberLocationReportRequestIndication.getInvokeId(), naEsrd, null, null); logger.debug("set addSubscriberLocationReportResponse"); curDialog.send(); logger.debug("addSubscriberLocationReportResponse sent"); this.testerHost.sendNotif(SOURCE_NAME, "Sent: SubscriberLocationReportResponse", createSLRResData(curDialog.getLocalDialogId(),getNaESRDAddress() ), Level.INFO); } catch (MAPException e) { logger.debug("Failed building response "+e.toString()); } }
private void sendSRI(String destinationAddress, int ton, int npi, MAPApplicationContext mapApplicationContext, CorrelationIdValue correlationIdValue) { // Send out SRI MAPDialogSms mapDialogSms = null; try { // 1. Create Dialog first and add the SRI request to it mapDialogSms = this.setupRoutingInfoForSMRequestIndication(destinationAddress, ton, npi, mapApplicationContext, correlationIdValue.getNetworkId()); // 2. Create the ACI and attach this SBB ActivityContextInterface sriDialogACI = this.mapAcif.getActivityContextInterface(mapDialogSms); sriDialogACI.attach(this.sbbContext.getSbbLocalObject()); // 3. Finally send the request mapDialogSms.send(); } catch (MAPException e) { if (mapDialogSms != null) { mapDialogSms.release(); } String reason = "Home routing: HrSriClientSbb: MAPException when sending SRI from sendSRI(): " + e.toString(); this.logger.severe(reason, e); this.returnSriFailure(correlationIdValue, null, reason); } }
logger.debug("Failed building response "+e.toString());
return "Exception "+e.toString();
logger.debug("Failed building response "+e.toString());
return "Exception when sending UnstructuredSSResponse: " + ex.toString();
return "Exception "+e.toString();
return "Exception "+e.toString();
return "Exception when sending CheckImeiRequest: " + ex.toString();
this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking addProcessUnstructuredSSResponse() : " + e.getMessage(), e, Level.ERROR); return "Exception when sending ProcessUnstructuredSSResponse: " + e.toString();
return "Exception when sending AlertServiceCentreRequest: " + ex.toString();
this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking addUnstructuredSSRequest() : " + e.getMessage(), e, Level.ERROR); return "Exception when sending UnstructuredSSRequest: " + e.toString();
return "Exception when sending AtiRequest: " + ex.toString();