Skip to content
eisenzopfPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

215 Commits

Folders and files

Repository files navigation

Bridgefu — Connect anything.

Bridgefu

Connect anything.

Bridgefu is a Rust media gateway that terminates two call legs and bridges audio, DTMF, and explicitly allowed context between them. It is built on rvoip and is designed to connect voice AI, SIP, WebRTC, provider call control, and contact-center systems without making either side understand the other.

Watch the 51-second Bridgefu explainer

Watch the explainer (MP4) · English captions

The first product-qualified deployment target is a Vapi SIP transfer into Amazon Connect with a correlated agent screen pop:

flowchart LR
    V["Vapi assistant"] -->|"SIP transfer + opaque correlation ID"| B["Bridgefu"]
    B -->|"WebRTC audio + contact attribute"| C["Amazon Connect"]
    L["AWS Lambda"] --> D["DynamoDB context"]
    C --> L
    L --> A["Agent screen pop"]
Loading

Deploy Vapi transfers to Amazon Connect

The customer CloudFormation template, AMI build, Lambdas, Vapi provisioning, and full live qualification harness live in the dedicated bridgefu-vapi-awsconnect repository. That is the canonical place to deploy and operate this integration.

This repository owns the Bridgefu runtime and its built-in declarative recipe contract. The deployment repository pins an immutable Bridgefu commit and builds the customer AMIs from it.

SIP security modes

  • sips_srtp — TLS signaling and SDES-SRTP are required. This is the secure default.
  • sips_optional_srtp — TLS signaling is required; Bridgefu negotiates SRTP when the peer offers it and accepts RTP/AVP otherwise. Use this deliberately for peers such as the currently observed Vapi transfer path that do not offer SRTP in SDP.
  • sip_rtp — clear SIP and RTP. This is an explicit diagnostic compatibility posture, not the production default.

Managed SIPS recipes use one-use attachment URIs. Explicit external recipes can use a trusted-source fixed URI with configurable context headers. Both advertise a DNS sips: Contact; Bridgefu does not silently downgrade signaling from TLS.

For complete configurable Vapi → Amazon Connect setups, see the SIP-header and optional correlation-ID examples.

For networks that block direct Connect media, use the Connect TURN setup and restricted-egress test. Bridgefu 0.9.3 uses published rvoip 0.5.1 crates and supports Connect's UDP relay with ice_servers: [].

Try SIP ↔ WebRTC locally

With Rust 1.95+, a C/C++ toolchain, and protobuf installed, run this one line from the repository root:

cargo run --locked --example native-sip-webrtc -- --settings examples/sip-to-webrtc/settings.example.json

It makes a real encrypted SIP → WebRTC call, verifies audio both ways, prints PASS, and stops all demo endpoints. No cloud account or credentials are needed. The first build can take several minutes. Change settings or try the reverse direction:

Each guide includes a one-command demo, editable endpoint configuration, and step-by-step setup. The eight-case end-to-end matrix checks both codecs, both hangup directions, audio, and cleanup.

Tested recipes and how to repeat them

Choose a recipe below for step-by-step setup. The test guides explain the prerequisites, commands, expected results, and cleanup; the reports record what actually passed.

Recipe or scenario What was tested Repeat the test Recorded results
Vapi → Connect: SIP headers Live calls with exact header-to-contact attribute mapping and audio both ways; Connect UDP relay with auto and join_ack, direct media blocked, and ice_servers: []. Live environment setup → restricted-egress steps November 25 live results · JSON
Vapi → Connect: optional correlation ID Live context storage and Lambda lookup, exact attributes, two-way audio, missing/expired lookup-token checks, and auto relay with direct media blocked and ice_servers: []. Live environment setup → correlation-ID relay test November 25 live results
Connect TURN negative control Disabling the relay makes the call fail with actual firewall rejects and no relay allocation. This checks that the successful calls depended on TURN. Three-case TURN test November 25 live results
SIP → WebRTC Local real-protocol calls with PCMU/PCMA, audio both ways, caller/destination hangup, and cleanup. One-command demo and eight-case matrix 0.9.3 release results · historical November 23 matrix
WebRTC → SIP The reverse direction in the same local matrix, with both codecs and both hangup directions. One-command demo and eight-case matrix 0.9.3 release results · historical November 23 matrix

The November 25 live tests ran merged main 85527e2, before the 0.9.2 version-only runtime metadata bump. The 0.9.2 release report records the exact source, dependency pin, cleanup audit, and release checks. The native matrix's checked-in report is historical 0.9.1 evidence; CI reruns that matrix and retains fresh results with each CI run.

The Connect tests restrict Connect UDP media sockets, while leaving SIP and HTTPS/WSS control available. They qualify UDP TURN, not whole-host egress allowlisting or TURN over TCP/TLS. The native examples use automated local WebRTC peers; they do not qualify a browser, public NAT, or your carrier. See 0.9.3 registry release checks for the dependency switch and qualification scope for older evidence and limits.

Local development

Bridgefu 0.9.3 pins every rvoip component to published 0.5.1 crates from crates.io. Cargo.lock records exact package checksums, and CI rejects Git or local-path dependencies. No sibling checkout is needed. See Connect TURN setup and validation.

cargo test --locked
cargo clippy --locked --all-targets -- -D warnings

Inspect the embedded, credential-free recipe catalog with:

cargo run -- recipe available
cargo run -- recipe show builtin:vapi-amazon-connect-screen-pop@1
cargo run -- recipe validate builtin:vapi-amazon-connect-screen-pop@1 \
  --values recipes/vapi-amazon-connect-screen-pop/values.example.yaml

Low-level configuration remains available for custom integrations. Start with the product overview, architecture, configuration schema, and security model.

Bridgefu is MIT licensed. See CONTRIBUTING.md for development and security-reporting expectations.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages