Ledon.Sip
0.0.1
dotnet add package Ledon.Sip --version 0.0.1
NuGet\Install-Package Ledon.Sip -Version 0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ledon.Sip" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ledon.Sip" Version="0.0.1" />
<PackageReference Include="Ledon.Sip" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ledon.Sip --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ledon.Sip, 0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ledon.Sip@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ledon.Sip&version=0.0.1
#tool nuget:?package=Ledon.Sip&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ledon.Sip
SIP(RFC 3261)与 SDP(RFC 4566)协议解析——只依赖 Ledon.Protocols,零 socket 代码。
服务端与客户端是独立包:Ledon.Sip.Server / Ledon.Sip.Client(都构建在 Ledon.Sockets.* 之上)。
解析
var message = SipParser.Parse(text); // 或 SipParser.Parse(bytes)
message.Type; // Request / Response
message.Method; // INVITE / ACK / BYE / REGISTER / OPTIONS
message.RequestUri; // sip:bob@example.com
message.StatusCode; // 响应状态码(200/404/486……)
message.CallId; // 对话标识
message.From; message.To; message.Via;
message.Body; // 通常是 SDP
// 序列化回线上字节(CRLF 行尾,符合 RFC 3261)
var bytes = message.ToBytes();
SDP 解析:
var sdp = SdpParser.Parse(message.Body);
sdp.SessionName; // 会话名
sdp.Connection; // 连接信息(IN IP4 x.x.x.x)
sdp.Media[0].Media; // audio / video
sdp.Media[0].Port;
sdp.Media[0].Formats; // 编码/DTMF 事件号(0=PCMU, 101=telephone-event)
- 头字段大小写不敏感;同名多值(Via/Route)按顺序拼接;
- 构造响应:
SipResponder.Ok(request, userAgent)自动带上 Via/From/To/Call-ID/CSeq; - 自定义应答策略:实现
ISipHandler(返回null= 不应答)。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Ledon.Protocols (>= 0.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ledon.Sip:
| Package | Downloads |
|---|---|
|
Ledon.Sip.Client
Ledon SIP 客户端:基于 Socket 库的事务用户(重传/超时/响应匹配)。 |
|
|
Ledon.Sip.Server
Ledon SIP 服务端:基于 Socket 库的 SIP over UDP/TCP 监听与应答。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1 | 55 | 10/28/2026 |