Search in sources :

Example 1 with SendMtEvent

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

the class SriSbb method executeForwardSM.

private void executeForwardSM(SmsSet smsSet, LocationInfoWithLMSI locationInfoWithLMSI, String imsi, int networkId) {
    smsSet.setImsi(imsi);
    smsSet.setLocationInfoWithLMSI(locationInfoWithLMSI);
    ISDNAddressString networkNodeNumber = locationInfoWithLMSI.getNetworkNodeNumber();
    MtSbbLocalObject mtSbbLocalObject = this.getMtSbbObject();
    if (mtSbbLocalObject != null) {
        ActivityContextInterface schedulerActivityContextInterface = this.getSchedulerActivityContextInterface();
        schedulerActivityContextInterface.attach(mtSbbLocalObject);
        SendMtEvent event = new SendMtEvent();
        event.setSmsSet(smsSet);
        event.setImsiData(imsi);
        event.setLmsi(locationInfoWithLMSI.getLMSI());
        event.setNetworkNode(networkNodeNumber);
        event.setInformServiceCenterContainer(this.getInformServiceCenterContainer());
        event.setSriMapVersion(this.getSriMapVersion());
        event.setCurrentMsgNum(this.getCurrentMsgNumValue());
        event.setTimerID(this.getDeliveryTimerID());
        // event.setSendingPoolMsgCount(this.getSendingPoolMsgCountValue());
        this.fireSendMtEvent(event, schedulerActivityContextInterface, null);
    }
}
Also used : ActivityContextInterface(javax.slee.ActivityContextInterface) ISDNAddressString(org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString) SendMtEvent(org.mobicents.smsc.slee.services.smpp.server.events.SendMtEvent)

Aggregations

ActivityContextInterface (javax.slee.ActivityContextInterface)1 SendMtEvent (org.mobicents.smsc.slee.services.smpp.server.events.SendMtEvent)1 ISDNAddressString (org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString)1