Verbara.Sdk.Ari 2.2.1

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

Verbara.Sdk.Ari

Asterisk REST Interface (ARI) client for .NET 10 with Native AOT support.

Features

  • REST client for all 8 ARI resources (Channels, Bridges, Playbacks, Recordings, Endpoints, Applications, Sounds, DeviceStates)
  • WebSocket event streaming with 46 event types
  • AOT-safe JSON serialization via System.Text.Json source generation
  • Automatic reconnection with exponential backoff
  • AudioSocket server for real-time audio streaming
  • System.Diagnostics.Metrics for observability

Quick Start

var client = new AriClient(Options.Create(new AriClientOptions
{
    BaseUrl = "http://pbx.example.com:8088",
    Username = "admin",
    Password = "secret",
    Application = "myapp"
}), logger);

await client.ConnectAsync();

// Subscribe to events
client.Subscribe(Observer.Create<AriEvent>(evt =>
{
    if (evt is StasisStartEvent start)
        Console.WriteLine($"Channel entered Stasis: {start.Channel?.Name}");
}));

// REST operations
var channels = await client.Channels.ListAsync();
var bridge = await client.Bridges.CreateAsync("mixing", "mybridge");
await client.Bridges.AddChannelAsync(bridge.Id!, channels[0].Id!);

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

Showing the top 2 NuGet packages that depend on Verbara.Sdk.Ari:

Package Downloads
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 Asterisk SDK sub-packages

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 213 5/23/2026
2.2.0 143 5/20/2026
2.1.2 141 5/8/2026
2.1.1 120 5/7/2026
2.1.0 750 5/7/2026
2.0.0 135 5/6/2026