Skip to content

Commit 9fa03b2

Browse files
authored
Updated nuget packages for softphone example. (#1186)
1 parent ee35c09 commit 9fa03b2

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

examples/Softphone/SIPSorcery.SoftPhone.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
5+
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
<AssemblyName>softphone</AssemblyName>
@@ -15,12 +15,12 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
18-
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
18+
<PackageReference Include="Serilog.Sinks.Debug" Version="3.0.0" />
1919
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.1-dev-10370" />
20-
<PackageReference Include="SIPSorcery" Version="6.1.1-pre" />
21-
<PackageReference Include="SIPSorceryMedia.Encoders" Version="0.0.12-pre" />
22-
<PackageReference Include="SIPSorceryMedia.Windows" Version="6.0.4" />
23-
<PackageReference Include="System.Drawing.Common" Version="8.0.1" />
20+
<PackageReference Include="SIPSorcery" Version="8.0.0" />
21+
<PackageReference Include="SIPSorceryMedia.Encoders" Version="0.0.13" />
22+
<PackageReference Include="SIPSorceryMedia.Windows" Version="6.0.5" />
23+
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
2424
<PackageReference Include="System.Drawing.Primitives" Version="4.3.0" />
2525
</ItemGroup>
2626

examples/Softphone/Signalling/SIPClient.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ public void Shutdown()
291291
/// <summary>
292292
/// Creates the media session to use with the SIP call.
293293
/// </summary>
294-
/// <param name="audioSrcOpts">The audio source options to set when the call is first
295-
/// answered. These options can be adjusted afterwards to do things like put play
296-
/// on hold music etc.</param>
297294
/// <returns>A new media session object.</returns>
298295
private VoIPMediaSession CreateMediaSession()
299296
{
@@ -304,8 +301,9 @@ private VoIPMediaSession CreateMediaSession()
304301
{
305302
AudioSink = windowsAudioEndPoint,
306303
AudioSource = windowsAudioEndPoint,
307-
VideoSink = windowsVideoEndPoint,
308-
VideoSource = windowsVideoEndPoint,
304+
// TODO: Not working for calls to sip:[email protected]. AC 29 Sep 2024.
305+
//VideoSink = windowsVideoEndPoint,
306+
//VideoSource = windowsVideoEndPoint,
309307
};
310308

311309
// Fallback video source if a Windows webcam cannot be accessed.
@@ -365,7 +363,7 @@ private void CallFinished(SIPDialogue dialogue)
365363
/// <summary>
366364
/// An incoming call was cancelled by the caller.
367365
/// </summary>
368-
private void IncomingCallCancelled(ISIPServerUserAgent uas)
366+
private void IncomingCallCancelled(ISIPServerUserAgent uas, SIPRequest cancelRequest)
369367
{
370368
//SetText(m_signallingStatus, "incoming call cancelled for: " + uas.CallDestination + ".");
371369
CallFinished(null);

examples/Softphone/Softphone.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<Button x:Name="m_transferButton" Click="BlindTransferButton_Click" Margin="4,0,0,0" HorizontalAlignment="Left" Width="64" Visibility="Collapsed">
5252
<TextBlock TextAlignment="Center">Blind<LineBreak/>Transfer</TextBlock>
5353
</Button>
54-
<TextBox FontSize="16" Margin="4,0,4,0" x:Name="m_uriEntryTextBox" HorizontalAlignment="Right" TextWrapping="NoWrap" Text="sip:[email protected]" HorizontalContentAlignment="Stretch" MinWidth="200" VerticalContentAlignment="Center"/>
54+
<TextBox FontSize="16" Margin="4,0,4,0" x:Name="m_uriEntryTextBox" HorizontalAlignment="Right" TextWrapping="NoWrap" Text="sip:[email protected]" HorizontalContentAlignment="Stretch" MinWidth="200" VerticalContentAlignment="Center"/>
5555
<Button x:Name="m_cancelButton" Content="Cancel" Click="CancelButton_Click" HorizontalAlignment="Right" Width="64" Margin="0,0,4,0" Visibility="Collapsed"/>
5656
<Button x:Name="m_byeButton" Content="Bye" Click="ByeButton_Click" HorizontalAlignment="Right" Width="64" Margin="0,0,4,0" Visibility="Collapsed"/>
5757
<Button HorizontalAlignment="Right" x:Name="m_callButton" Width="64" Content="Call" Click="CallButton_Click" Margin="0,0,4,0" />

0 commit comments

Comments
 (0)