Verbara.Sdk.Ami
2.10.0
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
<PackageReference Include="Verbara.Sdk.Ami" Version="2.10.0" />
<PackageVersion Include="Verbara.Sdk.Ami" Version="2.10.0" />
<PackageReference Include="Verbara.Sdk.Ami" />
paket add Verbara.Sdk.Ami --version 2.10.0
#r "nuget: Verbara.Sdk.Ami, 2.10.0"
#:package Verbara.Sdk.Ami@2.10.0
#addin nuget:?package=Verbara.Sdk.Ami&version=2.10.0
#tool nuget:?package=Verbara.Sdk.Ami&version=2.10.0
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.Metricsfor 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 | 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.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- System.Reactive (>= 7.0.0)
- Verbara.Sdk (>= 2.10.0)
- Verbara.Sdk.Resilience (>= 2.10.0)
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 |