SiddiqSoft.sip2json 2.5.8

dotnet add package SiddiqSoft.sip2json --version 2.5.8
                    
NuGet\Install-Package SiddiqSoft.sip2json -Version 2.5.8
                    
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="SiddiqSoft.sip2json" Version="2.5.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SiddiqSoft.sip2json" Version="2.5.8" />
                    
Directory.Packages.props
<PackageReference Include="SiddiqSoft.sip2json" />
                    
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 SiddiqSoft.sip2json --version 2.5.8
                    
#r "nuget: SiddiqSoft.sip2json, 2.5.8"
                    
#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 SiddiqSoft.sip2json@2.5.8
                    
#: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=SiddiqSoft.sip2json&version=2.5.8
                    
Install as a Cake Addin
#tool nuget:?package=SiddiqSoft.sip2json&version=2.5.8
                    
Install as a Cake Tool

sip2json: A Focused SIP Parser for Modern C++

Build Status NuGet Version NuGet Downloads Tests

sip2json is a header-only Modern C++23 SIP protocol parser and serializer library designed with nlohmann::json as a first-class API metaphor for seamlessly converting SIP protocol messages to/from JSON for NoSQL databases and distributed event processing.


Documentation Site

The complete documentation, API reference, architecture guides, performance benchmarks, and interactive dependency charts are hosted on our documentation site:

siddiqsoft.github.io/sip2json


Quick Example

#include <iostream>
#include "siddiqsoft/sip2json.hpp"

using namespace siddiqsoft;

void onNetworkDataReceived(std::string& tcpReadBuffer)
{
    // Asynchronously parse multiple SIP frames from buffer
    sip2json::parseAsync(
        tcpReadBuffer,
        [](sipmessage&& msg) {
            if (!msg.empty()) {
                std::cout << "Parsed " << msg.getMethod() << " Call-ID: " << msg.getCallID() << "\n";
            }
        },
        [](const sip2json_exception& ex, std::string::iterator& start, const std::string::iterator& end) {
            std::cerr << "Parser warning: " << ex.what() << "\n";
        }
    );
    // Note: sip2json::parseAsync automatically erases decoded messages from tcpReadBuffer.
}

Quick Integration

Using CPM

CPMAddPackage("gh:SiddiqSoft/sip2json#v0.0.0.0")
target_link_libraries(${PROJECT_NAME} INTERFACE sip2json::sip2json)

For full setup guides, submodules, and NuGet usage, visit the Integration Guide.


Configuration Options

sip2json provides the following CMake options when integrated into host projects:

CMake Option Default Description
sip2json_HEADERKEY_MODE_INSENSITIVE ON Enable RFC 3261 case-insensitive header key matching and normalization to canonical Pascal-Kebab-Case keys (Content-Length, Via, Call-ID, etc.) and compact form abbreviations (l, v, i, c, m, f, t, s, e).
sip2json_BUILD_TESTS OFF Build CTest unit test suite.
sip2json_BUILD_BENCHMARKS OFF Build Google Benchmark performance test suite.

Standards Compliance & Certification Test Suite

sip2json includes an automated 226-test suite featuring dedicated RFC compliance and torture test suites located in tests/compliance/:

  • RFC 3261 Core Compliance (tests/compliance/rfc3261_compliance_tests.cpp): Validates 14 standard RFC request methods, status line classes (1xx-6xx), case-insensitive header canonicalization (vIa, fRoM, cALL-id), 10 compact header abbreviations (v, f, t, i, c, l, m, s, k, e), and body framing.
  • RFC 4475 SIP Torture Tests (tests/compliance/rfc4475_torture_tests.cpp): Official IETF torture test cases including multiline header folding with LWSP (\r\n\t / \r\n ), unknown extension header preservation, multiple Via header array formatting, negative Content-Length rejection, and truncated stream buffer handling.
  • SIP Standard Certification Suite (tests/compliance/sip_certification_suite.cpp): Full end-to-end certification for RFC 3261, RFC 3262 (PRACK), RFC 6665 (Event/Subscription-State), RFC 3515 (REFER), and RFC 3903 (PUBLISH).
  • SDP RFC 4566 / 8866 / 3264 Compliance Suite (tests/compliance/sdp_compliance_tests.cpp): Complete Session Description Protocol parsing, Offer/Answer direction flags (sendrecv, sendonly, recvonly, inactive), WebRTC ICE/DTLS attributes (a=candidate, a=ice-ufrag, a=fingerprint), multiple SDP session blocks (v=0 demarcation), and UNIX \n line endings.

License

Licensed under the BSD 3-Clause License.

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SiddiqSoft.sip2json:

Repository Stars
ubisoft/Sharpmake
Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Version Downloads Last Updated
2.5.8 101 8/21/2026
2.5.7 96 8/21/2026
2.5.6 90 8/21/2026
2.5.5 99 8/19/2026
2.5.4 98 8/19/2026
2.5.3 99 8/19/2026
2.5.2 98 8/19/2026
2.5.1 99 8/19/2026
2.4.2 236 6/19/2026
2.4.1 226 5/23/2026
2.4.0 253 5/5/2026
2.3.3 254 5/4/2026
2.3.2 258 5/4/2026
2.3.1 253 5/4/2026
2.3.0 273 5/4/2026
2.2.2 276 4/29/2026
1.17.3 3,755 12/9/2024
1.17.2 637 12/9/2024
1.17.1 625 12/7/2024
1.17.0 636 11/30/2024
Loading failed

## v2.4 Release - Performance and Documentation Enhancements

### New Features
- **Constexpr Optimization**: Compile-time string constants for improved performance
- **Comprehensive Benchmarks**: 30+ benchmark tests including stress tests for large packets
- **HTML Benchmark Reports**: Professional performance analysis reports
- **Enhanced Documentation**: Complete API reference, architecture guide, and migration guide

### Improvements
- Optimized parsing with constexpr patterns
- High-frequency decode benchmarks for large packets
- Stress tests (100, 1000+ packet scenarios)
- Professional HTML and JSON benchmark reporting
- Streamlined documentation for better navigation

### Documentation
- **API Reference**: docs/API.md - Complete method documentation with examples
- **Architecture Guide**: docs/ARCHITECTURE.md - Design patterns and optimization
- **Documentation Index**: docs/INDEX.md - Quick navigation hub

For detailed release notes, visit: https://github.com/siddiqsoftware/sip2json/releases