protected void ReplyISms(HeContext heContext, string message) { SmsEncoder enc = new SmsEncoder(MTMsg.Encoding); int len = enc.GetCorrectMessageSize(message, _smsmaxlength); if (len != message.Length) { message = message.Remove(len, message.Length - len); } if (len > 160) { MTMsg.Pid = -1; } MTMsg.MaximumParts = 1; MTMsg.Message = message; AppUtils.DoOnMobileTerminatedMessage(heContext, ref MTMsg); SMSInterface.QueueOutboundSMS(MTMsg); }
protected void SendSms(HeContext heContext, string message, string largeAccount, string msisdn, int count) { SmsEncoder enc = new SmsEncoder(MTMsg.Encoding); int len = enc.GetCorrectMessageSize(message, _smsmaxlength); if (len != message.Length) { message = message.Remove(len, message.Length - len); } if (len > 160) { MTMsg.Pid = -1; } MTMsg.LargeAccount = largeAccount; MTMsg.MaximumParts = count; MTMsg.Message = message; MTMsg.MSISDN = msisdn; AppUtils.DoOnMobileTerminatedMessage(heContext, ref MTMsg); SMSInterface.QueueOutboundSMS(MTMsg); }