Skip to content

IPv6 support: signalling and media (dual-stack) #11

Closed

Description

@HSMM

User need

Use MacroSIP with SIP servers reachable over IPv6: a PBX addressed by an IPv6 literal, a host name with only an AAAA record, or a dual-stack server on an IPv6-capable network.

Today (26.3.0)

  • PJSIP is built with IPv6 (PJ_HAS_IPV6 1), but the engine creates IPv4 transports only (UDP, TCP, TLS).
  • An account whose registrar or proxy is an IPv6 literal ([2001:db8::1]) stays bound to the IPv4 transport, cannot register and keeps retrying ("Reconnecting…").
  • A host name with only an AAAA record cannot be reached.
  • Media is IPv4 only: SDP always offers c=IN IP4, RTP sockets are IPv4.

Proposed scope (26.3.1)

  • IPv6 SIP transports next to the IPv4 ones: UDP, TCP and TLS (verifying and non-verifying).
  • Account › Advanced: IP protocol — Auto (default), IPv4 only, IPv6 only.
  • Auto: an IPv4 or IPv6 literal picks its own family; a host name with A and AAAA records follows the order the system resolver returns.
  • Media follows the signalling: a call over IPv6 offers c=IN IP6 and sends RTP over IPv6; ICE gathers IPv6 host candidates when ICE is on.
  • Incoming requests and calls over IPv6 reach the right account.
  • Network changes of IPv6 addresses (including temporary addresses) re-register and keep calls, as for IPv4.
  • The bind address setting accepts an IPv6 address.
  • Tests on loopback [::1] with in-process SIP stubs: register, outgoing and incoming call with IN IP6 SDP, the per-account setting.
  • Docs: ENGINE.md, an ADR, ROADMAP, READMEs.

Out of scope

NAT64 / 464XLAT translation for IPv4 servers on IPv6-only networks, STUN and TURN over IPv6, servers on link-local addresses (fe80::…%en0).

Verification

Loopback tests only; checks against a real IPv6 PBX and network are left to users and listed as not verified in the release notes.

Activity

  1. added
    enhancement
    on Nov 9, 2026
  2. HSMM commented on Nov 9, 2026

    @HSMM
    OwnerAuthor

    Released in 26.3.1 (PR #12). The update is in the Sparkle feed and in the Homebrew cask.

    Not verified on a real network, loopback tests with stub servers only:

    • a real IPv6 PBX over UDP, TCP and TLS;
    • the fallback to IPv4 when a firewall drops IPv6;
    • DNS SRV targets with IPv6 addresses only;
    • Asterisk and Kamailio after an account moves between protocols;
    • temporary IPv6 address rotation and network changes during a call;
    • ICE between two hosts with global IPv6 addresses.

    Known limit: after a move between IPv4 and IPv6, other phones' presence subscriptions stay on the old protocol until they expire. Reports from real IPv6 networks are welcome here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions