What it is
SmartProxy is a production-grade SIP proxy and SBC for VoIP and unified-communications infrastructure. It routes, authenticates, terminates, and media-bridges production call traffic — including WebRTC gateways, Microsoft Teams Direct Routing, call recording, and STIR/SHAKEN attestation — while managing state, billing, and observability for large, multi-carrier deployments.
Built on sipgo, it delivers RFC 3261 compliance with carrier-class routing, load balancing, and security — designed for 100,000+ concurrent calls and 500+ calls per second.
Where it fits
SmartProxy is Boyo's SmartProxy — the high-performance, on-premises infrastructure half of our product line. Sibling Boyo products (SIPREC Cloud, IVA Cloud, SmartProxy) cover managed recording, voice assistants, and SIP infrastructure respectively; SmartProxy is the SBC that ties production VoIP together.
Capabilities
The full internal reference is part of our proprietary Enterprise package; this is the public-level summary.
Core SIP
- All major methods — INVITE, ACK, BYE, CANCEL, OPTIONS, REGISTER, REFER, NOTIFY, INFO, UPDATE, PRACK, SUBSCRIBE, PUBLISH, MESSAGE
- UDP, TCP, TLS/SIPS (1.2/1.3), WebSocket (RFC 7118) + WSS
- NAT traversal — rport/received, symmetric RTP, Contact rewriting, learned public-IP binding
- Session Timers (RFC 4028), 100rel/PRACK (RFC 3262), call forking, REFER transfers, re-INVITE glare detection, 3xx redirect following with loop detection
Routing & Policy
- Database-driven inbound and outbound routing with ANI/DNIS matching, number-range catch-alls, and trunk-profile normalization
- 11 load-balancing algorithms — round-robin, weighted, priority, least-connections, sticky, consistent-hash, LCR, adaptive, random-weighted, call-ID-hash, priority groups
- Least-cost routing with time-of-day gating and holiday schedules, failover carriers, per-carrier/IP channel limits
- Call admission control with priority queueing; emergency calls bypass all limits
- NAT binding for inbound to NATed facilities; zero-DB routing via a five-layer cache
Security & Compliance
- SIP Digest Auth (407/401), JWT Bearer (HS256 / RS256 / ES256) with JWKS validation
- Per-IP and global rate limiting (sharded token bucket), IP whitelisting/blocklisting, auto-blocking after repeated failures
- TLS 1.2/1.3 with multi-domain SNI and hot-reload certificate rotation; mTLS client verification
- SRTP (AES-128 SDES-SRTP, DTLS-SRTP for WebRTC) with automatic TLS-to-SRTP media promotion
- STIR/SHAKEN multi-provider signing pool with local PASSporT signer (RFC 8224/8225), inbound verification with attestation policy, TN matching (RFC 8224 §5.2)
- Fraud detection (velocity, Wangiri, sequential dialing), E911 emergency routing with PSAP failover and dedicated audit log
Media
- Built-in Pion RTP/SRTP relay with symmetric RTP, RTCP forwarding, and NAT traversal
- RTPEngine integration (external transcoding/relay via ng control)
- Auto-bridge on inbound vs outbound crypto mismatch; per Teams/carrier media bypass
- Browser WebRTC gateway (ICE, DTLS-SRTP, WebRTC-to-SIP bridging)
- SIPREC call recording with multi-destination SRS failover and selective rules
Microsoft Teams Direct Routing
- Dedicated Teams SBC module with TLS and FQDN validation
- DNS SRV discovery with hardcoded fallback, SIP OPTIONS keepalives, source validation
- E.164 normalization (+/− handling, country-code prepend, strip-plus for PSTN)
- Media bypass, dedicated Teams metrics and CDR trunk-type tagging
Operations & Management
- 40+ page web UI (overview, routing, monitoring, integrations, signaling, subscribers, infrastructure, security, administration)
- REST API with OpenAPI 3.0 spec, Bearer token + session cookie auth, RBAC with granular permissions
smartproxyctlCLI — status, CRUD, CDR query/export, settings, health verdict, SIP OPTIONS self-test- Prometheus metrics + 2-second SSE live-metrics stream; cluster-mode aggregation
- Alerting channels — email, Slack, PagerDuty, webhooks; DB-backed rules with history
Architecture
A stateful B2BUA sitting between your SIP infrastructure and carriers, with managed media, recording, and full observability.
UAC (PBX / Teams / WebRTC) Carrier (PSTN)
| |
| INVITE / REGISTER / OPTIONS |
v v
+------------------------------------------------------------------+
| SmartProxy (Boyo SBC) |
| |
| SIP Stack (sipgo) --> Auth / Fraud --> Router --> Media |
| | | | |
| | | | RTP / SRTP
| | | | |
| v v v v
| Rate Limit Trunk Routes Admission Control
| Whitelist NAT Binding STIR/SHAKEN
| | | |
| v v v
| CDR --> DB Redis (rate limits,
| dialogs, cluster state)
| |
| Web UI | REST API (OpenAPI 3.0) | CLI | Prometheus + SSE |
+------------------------------------------------------------------+
High-level flow
- Inbound — SIP/SBC methods are received and authenticated; unauthorized sources are blocked before processing
- Routing — the router matches dispatcher, ANI/DNIS, number ranges, and time rules against the five-layer cache; NAT binding associates NATed facilities with their public IP
- Media — SDP is translated/relayed; Pion relay handles RTP/SRTP (or RTPEngine is engaged for transcoding)
- Recording & CDR — CDR records and SIPREC recording rules are evaluated per call
- Egress & Observability — calls exit via carrier trunks; metrics, traces, and alerts stream out continuously
Cluster mode
SmartProxy deploys as a cluster behind a load balancer. Redis provides shared rate limits, dialog persistence, leader election, and health/metrics sync. If a node fails, the leader drains orphaned dialogs and failover proceeds cleanly. Active-active multi-datacenter deployments carry the same state across regions with deduplication and cross-DC failover.
Quick Start
High-level orientation before you deploy the full stack. The complete, internals-level setup is part of the proprietary Enterprise package (see Docs Access).
Prerequisites
- Go 1.27+ (build from source) or the pre-built enterprise binary
- MySQL 8.0+ (configuration, CDR, and user storage)
- Redis 7+ (cluster mode, dialog persistence, rate limiting)
- Linux host with a public IP for production deployments
Build & run
# Build the proxy server and the CLI
go build -o smartproxy ./cmd/sipproxy/
go build -o smartproxyctl ./cmd/smartproxyctl/
# Run the proxy (managed by systemd in production)
./smartproxy -config /etc/smartproxy/sipproxy.yaml
Verify
# Liveness/readiness probes (no auth)
curl http://localhost:8080/healthz
curl http://localhost:8080/readyz
# System status via the CLI
./smartproxyctl status
# One-shot health verdict
./smartproxyctl smoke
# SIP OPTIONS self-test (no call setup)
./smartproxyctl siptest
The web UI is available at the proxy's HTTP address (/ui/). The REST API is available under /api/v1/ with an OpenAPI 3.0 spec at /api/v1/openapi.json.
CLI & API
SmartProxy ships a full management CLI (smartproxyctl) and a 274+ endpoint REST API alongside the web UI.
CLI highlights
smartproxyctl status/watch— live system overview and refresh loopsmartproxyctl smoke— one-shot PASS/FAIL health verdictsmartproxyctl siptest— SIP OPTIONS self-test (composable in healthchecks)smartproxyctl livecalls— sngrep-style live call displaysmartproxyctl trace— per-call SIP trace and ladder diagramsmartproxyctl pcap— on-demand PCAP capture via BPF filters
REST API highlights
Documented under /api/v1/openapi.json. Key areas:
- Routing — dispatchers, carriers, routes, number ranges, DID ranges
- Observability — CDR/analytics, call quality, live calls, traces, PCAP
- Security — IP blocklist, rate limits, 2FA, API keys, roles & permissions
- Management — users, holidays, time-of-day rules, trunk profiles, webhooks, backups, maintenance mode, cluster
# Bearer-token auth (session cookie also supported)
curl -H "Authorization: Bearer your-token" \
http://localhost:8080/api/v1/health
# OpenAPI spec for the full surface
curl http://localhost:8080/api/v1/openapi.json
Operations
Monitoring
SmartProxy exposes 48+ Prometheus metric types — call counters (total/active/answered/failed), per-method method counters, carrier CPS/ASR/ACD/latency, DB, RTP, auth, cluster, STIR/SHAKEN and CDR queue depth. A live stream is available via SSE at /api/v1/metrics/stream with a 2-second push interval.
Alerting
Alert channels — email, Slack, PagerDuty, and signed webhooks — are runtime-tunable via the API or web UI, backed by DB-persisted rules with full history.
Cluster & geo-redundancy
- Cluster mode — Redis-backed leader election, shared rate limiting, dialog persistence for HA failover, and cluster-aggregated metrics
- Multi-datacenter — active-active multi-DC routing with region affinity, CDR deduplication, and cross-DC failover metrics;
/health/geoendpoint for DNS steering - Zero-DB routing — five-layer routing cache eliminates ~80K DB queries/second at 10K CPS on the hot path
Observability
- Per-call SIP tracing with gzip-compressed persistence and historical replay
- On-demand PCAP capture with BPF filters via
smartproxyctl pcap - CDR storage with analytics and reports in the web UI
- Full admin audit log for configuration changes and administrative actions
Docs Access
The full technical documentation — the complete configuration reference, TLS and STIR/SHAKEN setup, deep API reference, cluster & geo-redundancy runbooks, backup/restore procedures, and troubleshooting playbooks — is proprietary to the Enterprise edition. It ships with every license.
Enterprise
Full documentation, included
Full docs ship with every SmartProxy Enterprise license. Contact us to unlock the complete reference.