예제 #1
0
        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");
            }
        }
예제 #2
0
 public static string BuildSession(string sender, string receiver)
 {
     return(BuildSession(sender, receiver, SMSSettings.Get(SMSSettings.Configs.Kannel_UnifiedPrefix)));
 }
예제 #3
0
 public static string NormalizeNumber(string number)
 {
     return(NormalizeNumber(number, SMSSettings.Get(SMSSettings.Configs.Kannel_UnifiedPrefix)));
 }