Verbara.Sdk.Activities
2.2.1
dotnet add package Verbara.Sdk.Activities --version 2.2.1
NuGet\Install-Package Verbara.Sdk.Activities -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.Activities" 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.Activities" Version="2.2.1" />
<PackageReference Include="Verbara.Sdk.Activities" />
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.Activities --version 2.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Verbara.Sdk.Activities, 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.Activities@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.Activities&version=2.2.1
#tool nuget:?package=Verbara.Sdk.Activities&version=2.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Verbara.Sdk.Activities
High-level call activity abstractions for Asterisk AGI — async state-machine-driven operations for common telephony workflows.
Installation
dotnet add package Verbara.Sdk.Activities
Quick Start
// Inside a FastAGI script handler
["dial-out.agi"] = async channel =>
{
await channel.AnswerAsync();
var dial = new DialActivity(channel)
{
Target = new EndPoint("SIP/1001"),
Timeout = TimeSpan.FromSeconds(30)
};
await dial.StartAsync();
Console.WriteLine($"Dial result: {dial.DialStatus}"); // ANSWER, BUSY, NOANSWER, etc.
if (dial.Status == ActivityStatus.Completed)
{
var hold = new HoldActivity(channel) { MusicOnHoldClass = "default" };
await hold.StartAsync();
}
await channel.HangupAsync();
}
Features
DialActivity— originate outbound call; exposesDialStatus(ANSWER, BUSY, NOANSWER, CANCEL, CONGESTION)HoldActivity— put a channel on music-on-hold with configurable classBridgeActivity— bridge the current channel to a target channel by nameHangupActivity,PlayMessageActivity,QueueActivity,ParkActivity,BlindTransferActivity,MeetmeActivity,VoicemailActivity,ExternalMediaActivityIActivity— common interface:StartAsync(),CancelAsync(),Status,StatusChanges(IObservable<ActivityStatus>)- Native AOT compatible
Documentation
See the main README for full 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Verbara.Sdk (>= 2.2.1)
- Verbara.Sdk.Agi (>= 2.2.1)
- Verbara.Sdk.Ami (>= 2.2.1)
- Verbara.Sdk.Ari (>= 2.2.1)
- Verbara.Sdk.Live (>= 2.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Verbara.Sdk.Activities:
| Package | Downloads |
|---|---|
|
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.