Asterisk.Sdk 1.15.3

Suggested Alternatives

Verbara.Sdk

dotnet add package Asterisk.Sdk --version 1.15.3
                    
NuGet\Install-Package Asterisk.Sdk -Version 1.15.3
                    
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="Asterisk.Sdk" Version="1.15.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asterisk.Sdk" Version="1.15.3" />
                    
Directory.Packages.props
<PackageReference Include="Asterisk.Sdk" />
                    
Project file
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 Asterisk.Sdk --version 1.15.3
                    
#r "nuget: Asterisk.Sdk, 1.15.3"
                    
#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 Asterisk.Sdk@1.15.3
                    
#: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=Asterisk.Sdk&version=1.15.3
                    
Install as a Cake Addin
#tool nuget:?package=Asterisk.Sdk&version=1.15.3
                    
Install as a Cake Tool

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 typesIAmiConnection, IAmiConnectionFactory, ManagerAction, ManagerEvent, ManagerResponse, IEventListener and the protocol-defined enums consumed by source generators in Asterisk.Sdk.Ami.
  • AGI / ARI base types — protocol-shared enums and base records mirrored across Asterisk.Sdk.Agi and Asterisk.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 as Activity.SetTag(...) keys instead of hard-coded strings so dashboards survive SDK version bumps. Pinned by 14+ unit tests.
  • AsteriskTelemetry — runtime-discoverable lists of every ActivitySourceName (9) and MeterName (15) shipped by the SDK family. Plug into OpenTelemetry with one call: tracerBuilder.AddSource([.. AsteriskTelemetry.ActivitySourceNames]).
  • Source-generator attributes[ManagerActionAttribute], [ManagerEventAttribute], [JsonSerializable(typeof(...))] markers that drive the four Roslyn source generators in Asterisk.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 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.

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.3 is deprecated because it is no longer maintained.
1.15.2 205 4/27/2026 1.15.2 is deprecated because it is no longer maintained.
1.15.1 224 4/26/2026 1.15.1 is deprecated because it is no longer maintained.
1.15.0 251 4/20/2026 1.15.0 is deprecated because it is no longer maintained.
1.14.0 197 4/20/2026 1.14.0 is deprecated because it is no longer maintained.
1.13.0 194 4/20/2026 1.13.0 is deprecated because it is no longer maintained.
1.12.0 187 4/19/2026 1.12.0 is deprecated because it is no longer maintained.
1.11.1 197 4/19/2026 1.11.1 is deprecated because it is no longer maintained.
1.11.0 194 4/19/2026 1.11.0 is deprecated because it is no longer maintained.
1.10.2 193 4/18/2026 1.10.2 is deprecated because it is no longer maintained.
1.10.1 171 4/18/2026 1.10.1 is deprecated because it is no longer maintained.
1.10.0 195 4/18/2026 1.10.0 is deprecated because it is no longer maintained.
1.9.0 179 4/17/2026 1.9.0 is deprecated because it is no longer maintained.
1.8.1 167 4/16/2026 1.8.1 is deprecated because it is no longer maintained.
1.8.0 197 4/13/2026 1.8.0 is deprecated because it is no longer maintained.
1.7.0 179 4/13/2026 1.7.0 is deprecated because it is no longer maintained.
1.6.0 179 4/13/2026 1.6.0 is deprecated because it is no longer maintained.
1.5.5 221 4/9/2026 1.5.5 is deprecated because it is no longer maintained.
1.5.3 1,171 3/30/2026 1.5.3 is deprecated because it is no longer maintained.
1.5.2 208 3/30/2026 1.5.2 is deprecated because it is no longer maintained.
Loading failed