Asterisk.Sdk
1.15.3
dotnet add package Asterisk.Sdk --version 1.15.3
NuGet\Install-Package Asterisk.Sdk -Version 1.15.3
<PackageReference Include="Asterisk.Sdk" Version="1.15.3" />
<PackageVersion Include="Asterisk.Sdk" Version="1.15.3" />
<PackageReference Include="Asterisk.Sdk" />
paket add Asterisk.Sdk --version 1.15.3
#r "nuget: Asterisk.Sdk, 1.15.3"
#:package Asterisk.Sdk@1.15.3
#addin nuget:?package=Asterisk.Sdk&version=1.15.3
#tool nuget:?package=Asterisk.Sdk&version=1.15.3
Asterisk.Sdk
Core abstractions for the Asterisk.Sdk ecosystem — shared interfaces, base types, telemetry catalogs, and source-generator attributes consumed by every other package in the family. Native AOT, zero reflection, MIT licensed.
What it does
This package is referenced (transitively) by every other Asterisk.Sdk.* package. Most consumers do not install it directly — they install Asterisk.Sdk.Hosting or one of the protocol-specific packages (Asterisk.Sdk.Ami, Asterisk.Sdk.Ari, Asterisk.Sdk.Agi) and pick this one up automatically. Install it explicitly only when building a custom package that needs the abstractions without the protocol implementations.
Public surface
- AMI core types —
IAmiConnection,IAmiConnectionFactory,ManagerAction,ManagerEvent,ManagerResponse,IEventListenerand the protocol-defined enums consumed by source generators inAsterisk.Sdk.Ami. - AGI / ARI base types — protocol-shared enums and base records mirrored across
Asterisk.Sdk.AgiandAsterisk.Sdk.Ari. AsteriskSemanticConventions— public static catalog of 60 const strings across 14 nested classes (Resource,Channel,Bridge,Calls,Dialplan,Sip,Media,Queues,Agent,VoiceAi,Events,Tenant,Event,Node). Use these asActivity.SetTag(...)keys instead of hard-coded strings so dashboards survive SDK version bumps. Pinned by 14+ unit tests.AsteriskTelemetry— runtime-discoverable lists of everyActivitySourceName(9) andMeterName(15) shipped by the SDK family. Plug intoOpenTelemetrywith one call:tracerBuilder.AddSource([.. AsteriskTelemetry.ActivitySourceNames]).- Source-generator attributes —
[ManagerActionAttribute],[ManagerEventAttribute],[JsonSerializable(typeof(...))]markers that drive the four Roslyn source generators inAsterisk.Sdk.Ami.SourceGenerators. Replace runtime reflection entirely.
Install
dotnet add package Asterisk.Sdk
Most consumers will instead want:
dotnet add package Asterisk.Sdk.Hosting # meta-package: Sdk + Ami + Agi + Ari + Live + Activities + Sessions + Config + DI
OpenTelemetry one-liner
using Asterisk.Sdk; // AsteriskTelemetry
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;
builder.Services.AddOpenTelemetry()
.WithTracing(t => t.AddSource([.. AsteriskTelemetry.ActivitySourceNames]).AddOtlpExporter())
.WithMetrics(m => m.AddMeter([.. AsteriskTelemetry.MeterNames]).AddOtlpExporter());
For the batteries-included variant (Console + OTLP + Prometheus exporters wired automatically):
dotnet add package Asterisk.Sdk.OpenTelemetry
builder.Services.AddAsteriskOpenTelemetry().WithAllSources();
Native AOT
Zero runtime reflection. All serialization paths use Roslyn source generators (ActionSerializerGenerator, EventDeserializerGenerator, EventRegistryGenerator, ResponseDeserializerGenerator). Trim-safe (<IsTrimmable>true</IsTrimmable>); 0 trim warnings across the package family. See ADR-0001 and ADR-0003 for design rationale.
License
MIT. Part of the Asterisk.Sdk project.
| 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Asterisk.Sdk:
| Package | Downloads |
|---|---|
|
Asterisk.Sdk.Ami
Asterisk Manager Interface (AMI) client - actions, events, responses and protocol handling |
|
|
Asterisk.Sdk.Live
Live API - real-time domain objects for channels, queues, agents and conferences |
|
|
Asterisk.Sdk.Ari
Asterisk REST Interface (ARI) client - HTTP + WebSocket for Stasis applications |
|
|
Asterisk.Sdk.Sessions
Session Engine - call session correlation, state machines, and domain events |
|
|
Asterisk.Sdk.Agi
FastAGI and AsyncAGI server - AGI commands, script execution and mapping strategies |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.15.3 | 241 | 5/3/2026 | |
| 1.15.2 | 205 | 4/27/2026 | |
| 1.15.1 | 224 | 4/26/2026 | |
| 1.15.0 | 251 | 4/20/2026 | |
| 1.14.0 | 197 | 4/20/2026 | |
| 1.13.0 | 194 | 4/20/2026 | |
| 1.12.0 | 187 | 4/19/2026 | |
| 1.11.1 | 197 | 4/19/2026 | |
| 1.11.0 | 194 | 4/19/2026 | |
| 1.10.2 | 193 | 4/18/2026 | |
| 1.10.1 | 171 | 4/18/2026 | |
| 1.10.0 | 195 | 4/18/2026 | |
| 1.9.0 | 179 | 4/17/2026 | |
| 1.8.1 | 167 | 4/16/2026 | |
| 1.8.0 | 197 | 4/13/2026 | |
| 1.7.0 | 179 | 4/13/2026 | |
| 1.6.0 | 179 | 4/13/2026 | |
| 1.5.5 | 221 | 4/9/2026 | |
| 1.5.3 | 1,171 | 3/30/2026 | |
| 1.5.2 | 208 | 3/30/2026 |