Skip to content

IPv6: signalling and media, dual stack (26.3.1) - #12

Merged
HSMM merged 12 commits into
mainfrom
feature/11-ipv6
Nov 9, 2026
Merged

HSMM merged 12 commits into
mainfrom
feature/11-ipv6

Conversation

@HSMM

@HSMM HSMM commented Nov 9, 2026

Copy link
Copy Markdown
Owner

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 IP6 and 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 by build-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.sh finds 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 EngineIPv6Tests on [::1] with in-process SIP stubs: register, outgoing and incoming calls with IN IP6 SDP, 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.

@HSMM
HSMM merged commit ede73e1 into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPv6 support: signalling and media (dual-stack)

1 participant