use of org.mobicents.protocols.ss7.map.api.service.sms.MWStatus in project smscgateway by RestComm.
the class HrSriServerSbb method doSendResponse.
private void doSendResponse(CorrelationIdValue correlationIdValue, MAPDialogSms dlg, String imsiValue, LocationInfoWithLMSI li) throws MAPException {
long invokeId = this.getInvokeId();
IMSI imsi = this.mapParameterFactory.createIMSI(imsiValue);
MWStatus mwStatus = correlationIdValue.getMwStatus();
Boolean mwdSet = null;
if (dlg.getApplicationContext().getApplicationContextVersion() == MAPApplicationContextVersion.version1) {
if (mwStatus != null) {
if (mwStatus.getMnrfSet())
mwdSet = true;
mwStatus = null;
}
}
dlg.addSendRoutingInfoForSMResponse(invokeId, imsi, li, null, mwdSet, null);
InformServiceCentreRequest isc = correlationIdValue.getInformServiceCentreRequest();
if (mwStatus != null && isc != null) {
dlg.addInformServiceCentreRequest(isc.getStoredMSISDN(), isc.getMwStatus(), null, isc.getAbsentSubscriberDiagnosticSM(), isc.getAdditionalAbsentSubscriberDiagnosticSM());
}
dlg.close(false);
}
Aggregations