@Override public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) { if (logger.isDebugEnabled()) { logger.debug(String.format("Rx UnstructuredSSRequestIndication. USSD String=%s ", unstrReqInd.getUSSDString())); } MAPDialogSupplementary mapDialog = unstrReqInd.getMAPDialog(); try { CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0f); USSDString ussdString = this.mapProvider.getMAPParameterFactory().createUSSDString("1", null, null); AddressString msisdn = this.mapProvider.getMAPParameterFactory().createAddressString( AddressNature.international_number, NumberingPlan.ISDN, "31628838002"); mapDialog.addUnstructuredSSResponse(unstrReqInd.getInvokeId(), ussdDataCodingScheme, ussdString); mapDialog.send(); } catch (MAPException e) { logger.error(String.format("Error while sending UnstructuredSSResponse for Dialog=%d", mapDialog.getLocalDialogId())); } }
@Override public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) { if (logger.isDebugEnabled()) { logger.debug(String.format("Rx UnstructuredSSRequestIndication. USSD String=%s ", unstrReqInd.getUSSDString())); } MAPDialogSupplementary mapDialog = unstrReqInd.getMAPDialog(); try { CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0f); USSDString ussdString = this.mapProvider.getMAPParameterFactory().createUSSDString("1", null, null); AddressString msisdn = this.mapProvider.getMAPParameterFactory().createAddressString( AddressNature.international_number, NumberingPlan.ISDN, "31628838002"); mapDialog.addUnstructuredSSResponse(unstrReqInd.getInvokeId(), ussdDataCodingScheme, ussdString); mapDialog.send(); } catch (MAPException e) { logger.error(String.format("Error while sending UnstructuredSSResponse for Dialog=%d", mapDialog.getLocalDialogId())); } }
@Override public void onUnstructuredSSResponse(UnstructuredSSResponse unstrResInd) { if (logger.isDebugEnabled()) { logger.debug(String.format("onUnstructuredSSResponseIndication for DialogId=%d", unstrResInd.getMAPDialog() .getLocalDialogId())); } try { USSDString ussdStrObj = this.mapProvider.getMAPParameterFactory().createUSSDString("Your balance is 500"); CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0F); MAPDialogSupplementary dialog = unstrResInd.getMAPDialog(); AddressString msisdn = this.mapProvider.getMAPParameterFactory().createAddressString( AddressNature.international_number, NumberingPlan.ISDN, "31628838002"); dialog.addProcessUnstructuredSSResponse(((Long) dialog.getUserObject()).longValue(), ussdDataCodingScheme, ussdStrObj); dialog.close(false); } catch (MAPException e) { logger.error("Error while sending UnstructuredSSRequest ", e); } }
long invokeId = procUnstrReqInd.getInvokeId(); USSDString ussdStrObj = this.mapProvider.getMAPParameterFactory().createUSSDString( "USSD String : Hello World <CR> 1. Balance <CR> 2. Texts Remaining"); CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0F);
public void onDialogDelimiter(DialogDelimiter evt, ActivityContextInterface aci) { this.logger.info("Rx : onDialogDelimiter " + evt); MAPDialogSupplementary dialog = (MAPDialogSupplementary) evt.getMAPDialog(); try { USSDString ussdString = mapParameterFactory.createUSSDString("USSD response from TestSBB"); CBSDataCodingScheme cbsDataCodingScheme = new CBSDataCodingSchemeImpl(0x0f); dialog.addProcessUnstructuredSSResponse(this.getProcessUnstructuredSSRequestInvokeId(), cbsDataCodingScheme, ussdString); dialog.close(false); this.logger.info("Sent a response back"); } catch (Exception e) { logger.severe("Exception while trying to send MAP ErrorMessage", e); } }
USSDString ussdString = this.mapProvider.getMAPParameterFactory().createUSSDString("*125*+31628839999#", null, null);
USSDString ussdString = this.mapProvider.getMAPParameterFactory().createUSSDString("*125*+31628839999#", null, null);
if (msg != null && !msg.equals("")) { try { ussdString = mapProvider.getMAPParameterFactory().createUSSDString(msg, new CBSDataCodingSchemeImpl(this.testerHost.getConfigurationData().getTestUssdClientConfigurationData().getDataCodingScheme()), null); } catch (MAPException e) {
mapParameterFactory.createUSSDString(getCodeWordUSSDString()));
ussdString = mapProvider.getMAPParameterFactory().createUSSDString( msg, new CBSDataCodingSchemeImpl(this.testerHost.getConfigurationData().getTestUssdServerConfigurationData()
ussdString = mapProvider.getMAPParameterFactory().createUSSDString( msg, new CBSDataCodingSchemeImpl(this.testerHost.getConfigurationData().getTestUssdServerConfigurationData()
ussdString = mapProvider.getMAPParameterFactory().createUSSDString( msg, new CBSDataCodingSchemeImpl(this.testerHost.getConfigurationData().getTestUssdServerConfigurationData()
USSDString ussdString = null; try { ussdString = mapProvider.getMAPParameterFactory().createUSSDString( msg, new CBSDataCodingSchemeImpl(this.testerHost.getConfigurationData().getTestUssdClientConfigurationData()