Как использовать SIP в xamarin forms
Пишу мессенджер, в котором хочу реализовать Sip Сall
Но я нашел только этот код. И он подходит для приложений win. Как мне это сделать в xamarin.forms
using System;
using System.Threading.Tasks;
using SIPSorcery.Media;
using SIPSorcery.SIP.App;
using SIPSorceryMedia.Windows;
namespace demo
{
class Program
{
static string DESTINATION = "[email protected]";
static async Task Main()
{
var userAgent = new SIPUserAgent();
var winAudioEndPoint = new WindowsAudioEndPoint(new AudioEncoder());
var voipMediaSession = new VoIPMediaSession(winAudioEndPoint.ToMediaEndPoints());
bool callResult = await userAgent.Call(DESTINATION, null, null, voipMediaSession);
Console.WriteLine("Press any key to exit...");
Console.ReadLine();
}
}
}