use of org.mobicents.smsc.cassandra.SmsRoutingRuleType in project smscgateway by RestComm.
the class DatabaseSmsRoutingRule method updateDbSmsRoutingRule.
@Override
public void updateDbSmsRoutingRule(String dbSmsRoutingRuleTypeStr, String address, int networkId, String clusterName) throws PersistenceException {
SmsRoutingRuleType dbSmsRoutingRuleType = SmsRoutingRuleType.valueOf(dbSmsRoutingRuleTypeStr);
DbSmsRoutingRule dbSmsRoutingRule = new DbSmsRoutingRule(dbSmsRoutingRuleType, address, networkId, clusterName);
switch(dbSmsRoutingRuleType) {
case SMPP:
dbOperations_C2.c2_updateSmppSmsRoutingRule(dbSmsRoutingRule);
break;
case SIP:
dbOperations_C2.c2_updateSipSmsRoutingRule(dbSmsRoutingRule);
break;
default:
throw new PersistenceException("Unknown DbSmsRoutingRuleType=" + dbSmsRoutingRuleType);
}
// }
}
Aggregations