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);
}
}
Aggregations