Search in sources :

Example 6 with MWStatus

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);
}
Also used : MWStatus(org.restcomm.protocols.ss7.map.api.service.sms.MWStatus) InformServiceCentreRequest(org.restcomm.protocols.ss7.map.api.service.sms.InformServiceCentreRequest) IMSI(org.restcomm.protocols.ss7.map.api.primitives.IMSI)

Aggregations

MWStatus (org.restcomm.protocols.ss7.map.api.service.sms.MWStatus)6 CorrelationIdValue (org.mobicents.smsc.library.CorrelationIdValue)3 InformServiceCenterContainer (org.mobicents.smsc.slee.services.smpp.server.events.InformServiceCenterContainer)3 MAPErrorMessage (org.restcomm.protocols.ss7.map.api.errors.MAPErrorMessage)2 MAPErrorMessageAbsentSubscriber (org.restcomm.protocols.ss7.map.api.errors.MAPErrorMessageAbsentSubscriber)2 Sms (org.mobicents.smsc.library.Sms)1 SmsSet (org.mobicents.smsc.library.SmsSet)1 SriResponseValue (org.mobicents.smsc.library.SriResponseValue)1 AddressString (org.restcomm.protocols.ss7.map.api.primitives.AddressString)1 IMSI (org.restcomm.protocols.ss7.map.api.primitives.IMSI)1 ISDNAddressString (org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString)1 InformServiceCentreRequest (org.restcomm.protocols.ss7.map.api.service.sms.InformServiceCentreRequest)1 MAPDialogSms (org.restcomm.protocols.ss7.map.api.service.sms.MAPDialogSms)1