Verbara.Sdk.Config
2.1.2
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 Verbara.Sdk.Config --version 2.1.2
NuGet\Install-Package Verbara.Sdk.Config -Version 2.1.2
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.Config" Version="2.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verbara.Sdk.Config" Version="2.1.2" />
<PackageReference Include="Verbara.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 Verbara.Sdk.Config --version 2.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Verbara.Sdk.Config, 2.1.2"
#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.Config@2.1.2
#: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.Config&version=2.1.2
#tool nuget:?package=Verbara.Sdk.Config&version=2.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Verbara.Sdk.Config
Parsers for Asterisk .conf configuration files — reads sections, variables, comments, includes, and template inheritance.
Installation
dotnet add package Verbara.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
- Verbara.Sdk (>= 2.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Verbara.Sdk.Config:
| 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.