Search in sources :

Example 1 with SendRsdsEvent

use of org.mobicents.smsc.slee.services.smpp.server.events.SendRsdsEvent in project smscgateway by RestComm.

the class MtCommonSbb method setupReportSMDeliveryStatusRequest.

protected void setupReportSMDeliveryStatusRequest(String destinationAddress, int ton, int npi, SMDeliveryOutcome sMDeliveryOutcome, String targetId, int networkId, String mtLocalSccpGt, Integer mtRemoteSccpTt) {
    RsdsSbbLocalObject rsdsSbbLocalObject = this.getRsdsSbbObject();
    if (rsdsSbbLocalObject != null) {
        ActivityContextInterface schedulerActivityContextInterface = this.getSchedulerActivityContextInterface();
        schedulerActivityContextInterface.attach(rsdsSbbLocalObject);
        SendRsdsEvent event = new SendRsdsEvent();
        event.setMsisdn(this.getCalledPartyISDNAddressString(destinationAddress, ton, npi));
        event.setServiceCentreAddress(getServiceCenterAddressString(networkId));
        event.setSMDeliveryOutcome(sMDeliveryOutcome);
        SccpAddress destinationAddr = this.convertAddressFieldToSCCPAddress(destinationAddress, ton, npi, mtRemoteSccpTt);
        event.setDestAddress(destinationAddr);
        event.setMapApplicationContext(this.getSRIMAPApplicationContext(MAPApplicationContextVersion.getInstance(this.getSriMapVersion())));
        event.setTargetId(targetId);
        event.setNetworkId(networkId);
        event.setMtLocalSccpGt(mtLocalSccpGt);
        this.fireSendRsdsEvent(event, schedulerActivityContextInterface, null);
    }
}
Also used : SccpAddress(org.restcomm.protocols.ss7.sccp.parameter.SccpAddress) ActivityContextInterface(javax.slee.ActivityContextInterface) SendRsdsEvent(org.mobicents.smsc.slee.services.smpp.server.events.SendRsdsEvent)

Aggregations

ActivityContextInterface (javax.slee.ActivityContextInterface)1 SendRsdsEvent (org.mobicents.smsc.slee.services.smpp.server.events.SendRsdsEvent)1 SccpAddress (org.restcomm.protocols.ss7.sccp.parameter.SccpAddress)1