SafeDispatch/SipComponent/Linx/LinxSipMessageGenerator.cs
2024-02-22 18:43:59 +02:00

24 lines
716 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Independentsoft.Sip.Methods;
using Independentsoft.Sip;
namespace SipComponent.Linx
{
class LinxSipMessageGenerator : SipMessageGenerator
{
public override Message Generate(string destinationID, string senderID, string sipServer, int sipServerPort, string text, bool groupSms = false)
{
Message sipMessage = base.Generate(destinationID, senderID, sipServer, sipServerPort, text, groupSms);
sipMessage.ContentType = "text/plain;charset=UTF-8";
sipMessage.Body = text;
return sipMessage;
}
}
}