Verbara.Sdk.Ami 2.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Verbara.Sdk.Ami --version 2.10.0
                    
NuGet\Install-Package Verbara.Sdk.Ami -Version 2.10.0
                    
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="Verbara.Sdk.Ami" Version="2.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verbara.Sdk.Ami" Version="2.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Verbara.Sdk.Ami" />
                    
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 Verbara.Sdk.Ami --version 2.10.0
                    
#r "nuget: Verbara.Sdk.Ami, 2.10.0"
                    
#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 Verbara.Sdk.Ami@2.10.0
                    
#: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=Verbara.Sdk.Ami&version=2.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Verbara.Sdk.Ami&version=2.10.0
                    
Install as a Cake Tool

Verbara.Sdk.Ami

Asterisk Manager Interface (AMI) client for .NET 10 with Native AOT support.

Features

  • Full AMI protocol implementation (120 actions, 228 events, 14 response types)
  • Zero-copy TCP parsing via System.IO.Pipelines
  • Async event pump with configurable backpressure (EventPumpCapacity)
  • MD5 challenge-response authentication
  • Automatic reconnection with exponential backoff
  • Source-generated serialization (no runtime reflection)
  • System.Diagnostics.Metrics for observability

Quick Start

services.AddVerbara(options =>
{
    options.Ami.Hostname = "pbx.example.com";
    options.Ami.Username = "admin";
    options.Ami.Password = "secret";
});
// Send an action
var response = await connection.SendActionAsync(new StatusAction());

// Subscribe to events
connection.Subscribe(Observer.Create<ManagerEvent>(evt =>
{
    Console.WriteLine($"Event: {evt.EventType}");
}));

Sending an action the SDK does not type

RawAction sends any AMI action by its name and fields through the same connection, for example a DAHDI* action or LoggerRotate:

// Written as: Action: DAHDIDNDon, the connection's ActionID, DAHDIChannel: 1
var response = await connection.SendActionAsync(new RawAction("DAHDIDNDon").Add("DAHDIChannel", "1"));

// A listing action: the sequence ends at its ...Complete event, which it does not yield
await foreach (var peer in connection.SendEventGeneratingActionAsync(new RawAction("IAXpeers")))
    Console.WriteLine(peer.RawFields?["ObjectName"]);

Fields are written in the order added, and a repeated key is written each time. The name must be ASCII letters and digits; a key ASCII letters, digits, -, _, ( or ), and not Action or ActionID; a value holds no CR or LF. Each is checked where the action is built and throws ArgumentException, which never includes the value. The answer is read by the action's name: the response type of the typed action of that name when there is one, otherwise a ManagerResponse whose RawFields hold every header. A name Asterisk does not register is answered by Asterisk with Response: Error.

The connection refuses a ManagerAction subclass of your own with ArgumentException naming its type, before any byte is written; send it as a RawAction instead. The connection's Trace log writes every sent field with its value, raw actions included, so keep Trace off where a field carries a secret.

Documentation

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 (5)

Showing the top 5 NuGet packages that depend on Verbara.Sdk.Ami:

Package Downloads
Verbara.Sdk.Live

Live API - real-time domain objects for channels, queues, agents and conferences

Verbara.Sdk.Agi

FastAGI and AsyncAGI server - AGI commands, script execution and mapping strategies

Verbara.Sdk.Sessions

Session Engine - call session correlation, state machines, and domain events

Verbara.Sdk.Activities

Activities - high-level telephony operations: Dial, Hold, Transfer, Park, Bridge, Conference

Verbara.Sdk.Hosting

Verbara.Sdk.Hosting - DI extensions and meta-package referencing all Verbara Sdk sub-packages

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.10.1 2,316 11/17/2026
2.10.0 375 11/16/2026
2.9.0 2,979 10/29/2026
2.8.0 3,087 10/9/2026
2.7.0 815 10/3/2026
2.6.1 557 9/30/2026
2.6.0 801 9/24/2026
2.5.3 721 9/13/2026
2.5.2 324 9/13/2026
2.5.1 351 9/12/2026
2.5.0 446 8/25/2026
2.4.0 2,309 7/27/2026
2.3.2 749 7/20/2026
2.3.1 380 7/14/2026
2.3.0 538 7/6/2026
2.2.1 1,137 5/23/2026
2.2.0 234 5/20/2026
2.1.2 241 5/8/2026
2.1.1 202 5/7/2026
2.1.0 3,496 5/7/2026
Loading failed