Asterisk.Sdk.Config
1.11.0
Suggested Alternatives
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Asterisk.Sdk.Config --version 1.11.0
NuGet\Install-Package Asterisk.Sdk.Config -Version 1.11.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="Asterisk.Sdk.Config" Version="1.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asterisk.Sdk.Config" Version="1.11.0" />
<PackageReference Include="Asterisk.Sdk.Config" />
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 Asterisk.Sdk.Config --version 1.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Asterisk.Sdk.Config, 1.11.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 Asterisk.Sdk.Config@1.11.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=Asterisk.Sdk.Config&version=1.11.0
#tool nuget:?package=Asterisk.Sdk.Config&version=1.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Asterisk.Sdk.Config
Parsers for Asterisk .conf configuration files — reads sections, variables, comments, includes, and template inheritance.
Installation
dotnet add package Asterisk.Sdk.Config
Quick Start
// Parse a .conf file from disk
ConfigFile config = ConfigFileReader.Parse("/etc/asterisk/sip.conf");
// Read a section
ConfigCategory? general = config.GetCategory("general");
if (general is not null)
{
string? port = general.Variables.GetValueOrDefault("port");
Console.WriteLine($"SIP port: {port}");
}
// Parse extensions.conf with dialplan context support
ExtensionsConfig dialplan = ExtensionsConfigFileReader.Parse("/etc/asterisk/extensions.conf");
foreach (var context in dialplan.Contexts)
Console.WriteLine($"Context: {context.Name}, {context.Extensions.Count} extensions");
Features
ConfigFileReader— general-purpose.confparser: sections[name],key = value,#include,#exec, template inheritance[section](template)ExtensionsConfigFileReader— specialized parser forextensions.confdialplan filesConfigFile/ConfigCategory/ConfigVariable— strongly-typed model with ordered variable access- Inline comment stripping (
;outside quoted values) - Native AOT compatible; no reflection
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
- Asterisk.Sdk (>= 1.11.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Asterisk.Sdk.Config:
| Package | Downloads |
|---|---|
|
Asterisk.Sdk.Hosting
Asterisk.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 | |
|---|---|---|---|
| 1.15.3 | 155 | 5/3/2026 | |
| 1.15.2 | 132 | 4/27/2026 | |
| 1.15.1 | 150 | 4/26/2026 | |
| 1.15.0 | 186 | 4/20/2026 | |
| 1.14.0 | 131 | 4/20/2026 | |
| 1.13.0 | 133 | 4/20/2026 | |
| 1.12.0 | 138 | 4/19/2026 | |
| 1.11.1 | 128 | 4/19/2026 | |
| 1.11.0 | 131 | 4/19/2026 | |
| 1.10.2 | 131 | 4/18/2026 | |
| 1.10.1 | 121 | 4/18/2026 | |
| 1.10.0 | 126 | 4/18/2026 | |
| 1.9.0 | 126 | 4/17/2026 | |
| 1.8.1 | 129 | 4/16/2026 | |
| 1.8.0 | 148 | 4/13/2026 | |
| 1.7.0 | 134 | 4/13/2026 | |
| 1.6.0 | 134 | 4/13/2026 | |
| 1.5.5 | 130 | 4/9/2026 | |
| 1.5.3 | 1,101 | 3/30/2026 | |
| 1.5.2 | 143 | 3/30/2026 |
Loading failed