Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit ef95823

Browse files
committed
Get started SIP demo working.
1 parent df38190 commit ef95823

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

examples/GetStarted/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ static void Main()
9191
var builder = WebApplication.CreateBuilder();
9292

9393
Log.Logger = new LoggerConfiguration()
94-
.MinimumLevel.Debug()
95-
//.MinimumLevel.Verbose()
94+
//.MinimumLevel.Debug()
95+
.MinimumLevel.Verbose()
9696
.Enrich.FromLogContext()
9797
.WriteTo.Console()
9898
.CreateLogger();
@@ -176,8 +176,8 @@ private static async Task StartSIPCall(string openAIProjectID)
176176
sipTransport.EnableTraceLogs();
177177

178178
var userAgent = new SIPUserAgent(sipTransport, null);
179-
var winAudio = new WindowsAudioEndPoint(new AudioEncoder());
180-
winAudio.RestrictFormats(x => x.Codec == AudioCodecsEnum.PCMU);
179+
var winAudio = new WindowsAudioEndPoint(new AudioEncoder(includeOpus: true));
180+
//winAudio.RestrictFormats(x => x.Codec == AudioCodecsEnum.OPUS); // No joy as of 5 Sep 2025. PCM only.
181181
var voipMediaSession = new VoIPMediaSession(winAudio.ToMediaEndPoints());
182182
voipMediaSession.AcceptRtpFromAny = true;
183183

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"profiles": {
3+
"GetStarted": {
4+
"commandName": "Project",
5+
"launchBrowser": true,
6+
"environmentVariables": {
7+
"ASPNETCORE_ENVIRONMENT": "Development"
8+
},
9+
"applicationUrl": "https://localhost:53742;http://localhost:53744"
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)