public static void Init() { if (InboundQueueName == null) { InboundQueueName = SMSSettings.Get(SMSSettings.Configs.SMSConnector_InboundQueue); } if (OutboundQueueName == null) { OutboundQueueName = SMSSettings.Get(SMSSettings.Configs.SMSConnector_OutboundQueue); } if (InboundQueueName == null || InboundQueueName == "") { throw new Exception("Invalid value in " + SMSSettings.Configs.SMSConnector_InboundQueue); } if (OutboundQueueName == null || OutboundQueueName == "") { throw new Exception("Invalid value in " + SMSSettings.Configs.SMSConnector_OutboundQueue); } if (InboundSms == null) { InboundSms = newCounter("Inbound SMS"); } if (InboundSmsPerSec == null) { InboundSmsPerSec = newCounter("Inbound SMS/sec"); } }
public static string BuildSession(string sender, string receiver) { return(BuildSession(sender, receiver, SMSSettings.Get(SMSSettings.Configs.Kannel_UnifiedPrefix))); }
public static string NormalizeNumber(string number) { return(NormalizeNumber(number, SMSSettings.Get(SMSSettings.Configs.Kannel_UnifiedPrefix))); }