Rebuild PJSIP with Opus and SHA-256 digest authentication - #16
Merged
Conversation
- Build Opus 1.5.2 statically for all three slices and link it into libPJSIP.a, so preferredCodecs can use opus/48000/2 for wideband calls. - Patch sip_auth_client.c (Patches/sip-auth-client-sha256.patch) to answer algorithm=SHA-256 challenges per RFC 8760 next to MD5, backed by a self-contained SHA-256 (Patches/callwave-sha256.h) that passes every NIST KAT vector; verified standalone via Patches/test-sha256.c. - build-pjsip-xcframework.sh is resumable via PJSIP_WORK_ROOT stamp files and greps PJMEDIA_HAS_OPUS_CODEC in config_auto.h after the build. - verify-pjsip-xcframework.sh now also checks Opus and SHA-256 symbols. - Add CallWavePJSIPCapabilityTests: SHA-256 digest against a known answer (cross-checked with shasum -a 256) and pjsua codec priority for opus. - Package.swift resolves release pjsip-2.17-ios15-opus-sha256.1 with checksum f534773f4dc0e813d0e7a7e3be10a751804232721876d1bad286ab3cba0d16a4. - Licenses for Opus and the SHA-256 snippet under Vendor/ThirdPartyLicenses.
PetrShtuka
added a commit
that referenced
this pull request
Aug 12, 2026
- Build Opus 1.5.2 statically for all three slices and link it into libPJSIP.a, so preferredCodecs can use opus/48000/2 for wideband calls. - Patch sip_auth_client.c (Patches/sip-auth-client-sha256.patch) to answer algorithm=SHA-256 challenges per RFC 8760 next to MD5, backed by a self-contained SHA-256 (Patches/callwave-sha256.h) that passes every NIST KAT vector; verified standalone via Patches/test-sha256.c. - build-pjsip-xcframework.sh is resumable via PJSIP_WORK_ROOT stamp files and greps PJMEDIA_HAS_OPUS_CODEC in config_auto.h after the build. - verify-pjsip-xcframework.sh now also checks Opus and SHA-256 symbols. - Add CallWavePJSIPCapabilityTests: SHA-256 digest against a known answer (cross-checked with shasum -a 256) and pjsua codec priority for opus. - Package.swift resolves release pjsip-2.17-ios15-opus-sha256.1 with checksum f534773f4dc0e813d0e7a7e3be10a751804232721876d1bad286ab3cba0d16a4. - Licenses for Opus and the SHA-256 snippet under Vendor/ThirdPartyLicenses. Co-authored-by: PeterSthuka <pitmailcom@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что внутри
Пересборка
PJSIP.xcframework— пункты P0.1 (Opus) и P0.4 (SHA-256 digest) из плана улучшений. База —feature/p0-call-quality, потому что PR #15 ещё не вмерджен; после его мержа базу нужно переключить наmain(кнопка Edit в PR).Opus 1.5.2
libPJSIP.a.preferredCodecsтеперь может включатьopus/48000/2— широкополосный звук.PJMEDIA_HAS_OPUS_CODEC 1вconfig_auto.h, чтобы Opus молча не потерялся.SHA-256 digest authentication (RFC 8760)
Patches/sip-auth-client-sha256.patchучит no-OpenSSL веткуsip_auth_client.cотвечать на challengealgorithm=SHA-256рядом с MD5. SHA-512-256 осознанно не включён.Patches/callwave-sha256.hпроходит все NIST KAT-векторы (empty / abc / 448-bit / million-a) — проверкаPatches/test-sha256.c.Проверки
./Scripts/verify-pjsip-xcframework.sh— зелёный: архитектуры, iOS 15 floor, Apple TLS, Opus и SHA-256 символы.CallWavePJSIPCapabilityTests: эталонный digest (сверен сshasum -a 256) и регистрация кодекаopus/48000/2черезpjsua_codec_set_priority../Scripts/run-package-tests.sh— 57/57 зелёных, в том числе прогон уже против бинарника, скачанного из релизаpjsip-2.17-ios15-opus-sha256.1(checksumf534773f4dc0e813d0e7a7e3be10a751804232721876d1bad286ab3cba0d16a4).Прочее
Scripts/build-pjsip-xcframework.shстал возобновляемым (stamp-файлы вPJSIP_WORK_ROOT).Vendor/ThirdPartyLicenses/OPUS-COPYINGиCALLWAVE-SHA256-SOURCE.txt.libPJSIP.a(23 МБ XCFramework), как и раньше.Релиз с ассетом уже опубликован: https://github.com/PetrShtuka/CallWaveKit/releases/tag/pjsip-2.17-ios15-opus-sha256.1