use of org.restcomm.protocols.ss7.map.api.primitives.IMSI in project smscgateway by RestComm.
the class MAPListener method onSendRoutingInfoForSMRequest.
@Override
public void onSendRoutingInfoForSMRequest(SendRoutingInfoForSMRequest event) {
if (logger.isInfoEnabled()) {
logger.info("Rx : SendRoutingInfoForSMRequestIndication=" + event);
}
IMSI imsi = new IMSIImpl("410035001692061");
ISDNAddressString nnn = new ISDNAddressStringImpl(AddressNature.international_number, NumberingPlan.ISDN, "923330052001");
LocationInfoWithLMSI li = new LocationInfoWithLMSIImpl(nnn, null, null, false, null);
MAPDialogSms mapDialogSms = event.getMAPDialog();
try {
mapDialogSms.addSendRoutingInfoForSMResponse(event.getInvokeId(), imsi, li, null, null, null);
// mapDialogSms.close(false);
} catch (MAPException e) {
e.printStackTrace();
}
mapDialogSms.setUserObject(true);
}
use of org.restcomm.protocols.ss7.map.api.primitives.IMSI 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);
}
use of org.restcomm.protocols.ss7.map.api.primitives.IMSI 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);
}
}
Aggregations