use of org.mobicents.smsc.domain.NextCorrelationIdResult in project smscgateway by RestComm.
the class HrSriServerSbb method setupSriRequest.
private void setupSriRequest(ISDNAddressString msisdn, AddressString serviceCentreAddress, int networkId, SccpAddress originatorSccpAddress) {
smscStatAggregator.updateMsgInHrSriReq();
HrSriClientSbbLocalObject hrSriClientSbbLocalObject = this.getHrSriClientSbbLocalObject();
if (hrSriClientSbbLocalObject != null) {
String sca = msisdn.getAddress();
NextCorrelationIdResult correlationIDRes = homeRoutingManagement.getNextCorrelationId(sca);
if (correlationIDRes.getSmscAddress() != null && !correlationIDRes.getSmscAddress().equals(""))
this.setSmscAddressForCountryCode(correlationIDRes.getSmscAddress());
String correlationID = correlationIDRes.getCorrelationId();
CorrelationIdValue correlationIdValue = new CorrelationIdValue(correlationID, msisdn, serviceCentreAddress, networkId, originatorSccpAddress);
boolean sriBypass = smscPropertiesManagement.getHrSriBypass(networkId);
if (sriBypass) {
// bypass of SRI request to a local HLR - just sending of a response
onSriSuccess(correlationIdValue, true);
} else {
// sending SRI request to a local HLR
hrSriClientSbbLocalObject.setupSriRequest(correlationIdValue);
}
if (this.logger.isFineEnabled()) {
StringBuilder sb = new StringBuilder();
sb.append("Home routing: Created correlationId=");
sb.append(correlationID);
sb.append(" for received ServiceCentedAddress=");
sb.append(sca);
sb.append(" sriBypass: ");
sb.append(sriBypass);
this.logger.fine(sb.toString());
}
}
}
Aggregations