Repository navigation
IPv6: signalling and media, dual stack (26.3.1) - #12
Merged
Merged
Conversation
…the server address
…rop the old binding
…ve dropped sessions
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.
Closes #11
IPv6 dual stack: every SIP transport (UDP, TCP, TLS verifying and non-verifying) gets an IPv6 twin on the same port, and each account is bound to the transport of its family. Account editor › Advanced has a new setting, IP protocol: Auto (default), IPv4 only, IPv6 only. In Auto an IP address picks its own protocol and a host name follows the order macOS returns; when the server does not answer at all, the account falls back to the other protocol and stays there until the next network change. A setting that contradicts the server address is refused in the editor and in the engine.
Media follows the account: an IPv6 account offers
c=IN IP6and sends RTP over IPv6. IPv6 accounts use no STUN. ICE gathers IPv6 candidates with a PJSIP patch (scripts/pjsip-patches/0001-ipv6-ice-bind-any.patch, applied bybuild-pjsip.sh; pjsua 2.17 binds its IPv6 ICE socket to "0", which macOS cannot bind). The patch is part of the CI cache key, so this run builds PJSIP again.Moves between IPv4 and IPv6 are done by one reconciler (
Engine+Families.swift): triggers only record the family an account wants, and the move happens when no network-change round runs, the account has no call and no REGISTER is in flight. A move removes the old registration first, waits for the answer, rebinds, and registers again. IPv6 address changes start a round only for accounts that use IPv6, so IPv4 calls are not disturbed.Also:
scripts/test.shfinds the Testing framework with newer Command Line Tools; ADR 0014, ENGINE.md, GLOSSARY, SCREENS, ROADMAP and both READMEs; version 26.3.1.Tests: 395 in 31 suites pass locally (40 new in
EngineIPv6Testson[::1]with in-process SIP stubs: register, outgoing and incoming calls withIN IP6SDP, ICE over IPv6, the per-account setting, fallback and moves).Not verified on a real network: a real IPv6 PBX over UDP, TCP and TLS; the fallback to IPv4 on a real timeout behind an IPv6 firewall; SRV targets with AAAA records only; Asterisk and Kamailio after a move between protocols; temporary IPv6 address rotation and network changes during a call; an ICE pair between two hosts with global IPv6 addresses. Presence subscriptions of other phones stay on the old protocol after a move until they expire.
Out of scope: NAT64 and 464XLAT, STUN and TURN over IPv6, link-local servers.