Browse by type
A Rust SIP/TLS voice service with an opaque ZRTP relay, a Bria-compatible SDES-SRTP relay, and signed SDP / DTLS-SRTP routing.
中文 · Deployment · ZRTP setup · Signed DTLS and messaging · Security and validation
| Configuration | Endpoint requirements | Media path and encryption boundary |
|---|---|---|
[media] mode = "zrtp" |
ZRTP 1.10 and Hello hashes; mandatory encryption, ICE disabled, SAS comparison | Server forwards ZRTP / SRTP / SRTCP unchanged; endpoints hold media keys |
[media] mode = "sdes", or [media] with mode omitted |
SIP/TLS, configured Digest authentication and SDES-SRTP, such as compatible Bria versions | Server decrypts and re-encrypts audio; not end-to-end encrypted |
No [media] |
MingHe signed SDP, peer identity verification and DTLS-SRTP | SDP forwarded unchanged; endpoints connect using ICE and a separate TURN relay if needed |
The profile is selected at startup and never falls back automatically. Both endpoints must support the selected profile. Omitting [media] requires adapted clients; ordinary softphones do not automatically implement signed SDP.
Every profile requires TLS certificate verification and Digest qop=auth (SHA-256 by default; MD5 compatibility is explicit, see deployment). MESSAGE accepts only MingHe JWE ciphertext, not ordinary SIP text. A ZRTP client's native encrypted chat protocol is not automatically compatible with MingHe JWE.
For a new installation, copy the template and set the hostname or public IP, strong passwords and individual extension passwords:
mkdir -p config
cp config.template.toml config/config.toml
chmod 600 config/config.toml
# Edit configuration first. Requires Rust 1.88+.
cargo build --release --locked
./target/release/minghe -c config/config.toml
For ZRTP, enable this table and replace the example public address:
[media]
mode = "zrtp"
rtp_port_start = 20000
rtp_port_end = 20020
media_addr = "203.0.113.10"
Require ZRTP on both endpoints, disable ICE, and compare SAS after connecting. See ZRTP_EN.md for requirements and acceptance checks. Existing Bria clients use mode = "sdes"; migrate both clients before switching to ZRTP.
Compose currently references an image and has no build configuration. Build the local source first:
docker build -t facilisvelox/minghe:latest .
docker compose up -d --force-recreate
docker compose logs -f
On Linux, grant container UID 10001 read access to configuration. See deployment for UDP mappings, certificates, upgrades and published images. Source validation does not establish what is included in remote latest.
The template explicitly selects digest_algorithm = "sha256". For Bria Mobile compatibility, set digest_algorithm = "md5" inside the existing [server] table and restart; it affects all extensions. Root config.toml selects MD5 authentication without enabling a media relay. See deployment for setup.
Copy .env.example to .env for Docker. Port variables control mappings only and do not update TOML.
Supports REGISTER, INVITE, ACK, BYE, CANCEL, OPTIONS and MESSAGE with one active audio stream. Initial INVITE requires SDP. Video, offerless calls, re-INVITE and media negotiation in ACK are unsupported. ZRTP network address changes require a new call.
The default media pool supports five relay calls. See SECURITY_EN.md for other limits and security boundaries. 124 Rust tests passed, including bidirectional Bria SRTP and opaque ZRTP forwarding; no real ZRTP endpoint handshake was performed. Real audio, SAS and cross-network interoperability still require deployment acceptance.
See config.template.toml for configuration fields. Core code lives in src/sip/ and src/media/; endpoint tools live in tools/. Test commands are maintained in the security guide.
If this project helps you, consider buying me a cola.

Apache License 2.0, Copyright 2026 MingHe Contributors.
$ claude mcp add minghe \
-- python -m otcore.mcp_server <graph>