Ejemplo n.º 1
0
        public static void sendSMS(string Msisdn, string message)
        {
            CQueueWrapper smsSender = new CQueueWrapper("CUSTOM_CAMP_BUILDEROUTQ");
            CSMSCapsule   sms       = new CSMSCapsule(Msisdn, "", false, CSMSCapsule.MessageTypes.DEFAULT, 1, 5, 7, 5, CUtility.GetNetworkID(Msisdn), false, CUtility.ToHex(message), false);

            smsSender.Send(sms);
            smsSender = null;
            sms       = null;
        }
Ejemplo n.º 2
0
        public static void sendSMS(int campaignId, string recipient, string message)
        {
            CQueueWrapper smsSender = new CQueueWrapper("smsSterkinekorQ");
            CSMSCapsule   sms       = new CSMSCapsule(recipient, "", false, CSMSCapsule.MessageTypes.DEFAULT, 1, 5, 7, 5, CUtility.GetNetworkID(recipient), false, CUtility.ToHex(message), false);

            smsSender.Send(sms);
            smsSender = null;
            sms       = null;

            Transaction.InsertSMS(campaignId, recipient, message);
        }
Ejemplo n.º 3
0
        private void SendMessage(int serviceID, int subscriptionID, string mobilenumber, int mobileNetworkID, string extraDigits, string destinationNumber, string message)
        {
            int transactionID = AddMessageTransaction(serviceID, subscriptionID, mobilenumber, mobileNetworkID, extraDigits, destinationNumber, message);

            CSMSCapsule capsule = new CSMSCapsule(mobilenumber, "", true, CSMSCapsule.MessageTypes.DEFAULT, 1, 5, 7, 5, mobileNetworkID, false, CUtility.ToHex(message), false);

            if (destinationNumber != null && destinationNumber != "")
            {
                capsule.SetParameter("DESTINATIONADDRESS", destinationNumber, true);
            }

            if (extraDigits != null && extraDigits != "")
            {
                capsule.SetParameter("EXTRADIGITS", extraDigits, true);
            }

            capsule.SetParameter("SUB_MESSAGETRANSACTIONID", transactionID.ToString(), true);

            SendQueue.Send(capsule);
            capsule = null;
        }