Asterisk.Sdk.Sessions
1.15.3
dotnet add package Asterisk.Sdk.Sessions --version 1.15.3
NuGet\Install-Package Asterisk.Sdk.Sessions -Version 1.15.3
<PackageReference Include="Asterisk.Sdk.Sessions" Version="1.15.3" />
<PackageVersion Include="Asterisk.Sdk.Sessions" Version="1.15.3" />
<PackageReference Include="Asterisk.Sdk.Sessions" />
paket add Asterisk.Sdk.Sessions --version 1.15.3
#r "nuget: Asterisk.Sdk.Sessions, 1.15.3"
#:package Asterisk.Sdk.Sessions@1.15.3
#addin nuget:?package=Asterisk.Sdk.Sessions&version=1.15.3
#tool nuget:?package=Asterisk.Sdk.Sessions&version=1.15.3
Asterisk.Sdk.Sessions
Session Engine for the Asterisk.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 | 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
- Asterisk.Sdk (>= 1.15.3)
- Asterisk.Sdk.Ami (>= 1.15.3)
- Asterisk.Sdk.Live (>= 1.15.3)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- System.Reactive (>= 6.1.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Asterisk.Sdk.Sessions:
| Package | Downloads |
|---|---|
|
Asterisk.Sdk.Hosting
Asterisk.Sdk.Hosting - DI extensions and meta-package referencing all Asterisk SDK sub-packages |
|
|
Asterisk.Sdk.Sessions.Redis
Asterisk.Sdk.Sessions.Redis - Redis-backed SessionStoreBase for horizontal scale-out. Ships RedisSessionStore + fluent UseRedis(...) registration for Asterisk.Sdk.Sessions. AOT-safe (source-generated JSON only). |
|
|
Asterisk.Sdk.Sessions.Postgres
Asterisk.Sdk.Sessions.Postgres - Postgres-backed SessionStoreBase for multi-instance deployments. Ships PostgresSessionStore + fluent UsePostgres(...) registration for Asterisk.Sdk.Sessions. AOT-safe (source-generated JSON only, Dapper parameterized SQL). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.15.3 | 179 | 5/3/2026 | |
| 1.15.2 | 159 | 4/27/2026 | |
| 1.15.1 | 176 | 4/26/2026 | |
| 1.15.0 | 205 | 4/20/2026 | |
| 1.14.0 | 152 | 4/20/2026 | |
| 1.13.0 | 149 | 4/20/2026 | |
| 1.12.0 | 160 | 4/19/2026 | |
| 1.11.1 | 149 | 4/19/2026 | |
| 1.11.0 | 155 | 4/19/2026 | |
| 1.10.2 | 142 | 4/18/2026 | |
| 1.10.1 | 124 | 4/18/2026 | |
| 1.10.0 | 159 | 4/18/2026 | |
| 1.9.0 | 133 | 4/17/2026 | |
| 1.8.1 | 132 | 4/16/2026 | |
| 1.8.0 | 145 | 4/13/2026 | |
| 1.7.0 | 134 | 4/13/2026 | |
| 1.6.0 | 131 | 4/13/2026 | |
| 1.5.5 | 172 | 4/9/2026 | |
| 1.5.3 | 1,120 | 3/30/2026 | |
| 1.5.2 | 151 | 3/30/2026 |