Verbara.Sdk.Sessions 2.2.0

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

Verbara.Sdk.Sessions

Session Engine for the Verbara.Sdk ecosystem. Provides call session correlation, lifecycle state machines, and domain events for real-time telephony monitoring.

Features

  • CallSession - Models the full lifecycle of a call: Created, Dialing, Ringing, Queued, Connected, OnHold, Transferring, Conference, Completed, Failed, TimedOut
  • CallSessionManager - Automatic session creation and correlation by LinkedId, with 4-tier O(1) indexing
  • SessionReconciler - Orphan detection and timeout handling for abandoned sessions
  • Domain Events - Observable stream of CallStarted, CallConnected, CallQueued, CallHeld, CallEnded, CallFailed events
  • Extension Points - Abstract base classes for custom routing (CallRouterBase), agent selection (AgentSelectorBase), and persistence (SessionStoreBase)
  • SessionMetrics - System.Diagnostics.Metrics counters for sessions created, completed, failed, timed out

Quick Start

services.AddAsterisk(options => { /* AMI config */ });
services.AddAsteriskSessions(options =>
{
    options.InboundContextPatterns = ["from-external"];
    options.OutboundContextPatterns = ["from-internal"];
});

var sessionManager = app.Services.GetRequiredService<ICallSessionManager>();
sessionManager.Events.Subscribe(evt => Console.WriteLine(evt));

Custom Persistence

public class PostgresSessionStore : SessionStoreBase
{
    public override ValueTask SaveAsync(CallSession session, CancellationToken ct) { /* ... */ }
    public override ValueTask<CallSession?> GetAsync(string sessionId, CancellationToken ct) { /* ... */ }
}

services.AddSingleton<SessionStoreBase, PostgresSessionStore>();
services.AddAsteriskSessions();
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 (3)

Showing the top 3 NuGet packages that depend on Verbara.Sdk.Sessions:

Package Downloads
Verbara.Sdk.Hosting

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

Verbara.Sdk.Sessions.Postgres

Verbara.Sdk.Sessions.Postgres - Postgres-backed SessionStoreBase for multi-instance deployments. Ships PostgresSessionStore + fluent UsePostgres(...) registration for Verbara.Sdk.Sessions. AOT-safe (source-generated JSON only, raw Npgsql parameterized SQL).

Verbara.Sdk.Sessions.Redis

Verbara.Sdk.Sessions.Redis - Redis-backed SessionStoreBase for horizontal scale-out. Ships RedisSessionStore + fluent UseRedis(...) registration for Verbara.Sdk.Sessions. AOT-safe (source-generated JSON only).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 249 5/23/2026
2.2.0 148 5/20/2026
2.1.2 151 5/8/2026
2.1.1 127 5/7/2026
2.1.0 749 5/7/2026
2.0.0 132 5/6/2026