Telephony guideSIP, PSTN, routing, and call control
Cloud telephony on your own carrier

Connect numbers, route calls, and automate the right moments.

Bring your SIP provider and numbers. MediaSFU handles the real-time operating layer between PSTN callers, rooms, AI agents, IVR playback, callbacks, and human operators.

Bring your own carrier Inbound + outbound control AI-to-human handoff
Prove it in 30 secondsCall a live AI phone agent before you configure anything.
$0.0001per voice minuteTransport only — bring your own numbers and SIP provider, no markup
Inbound support

Route callers into a room, AI agent, or operator queue.

Use this when a public number should answer customer calls and escalate cleanly.

Outbound calls

Let staff, apps, or campaigns place PSTN calls.

Use this when MediaSFU needs a verified peer, caller ID, and provider trunk.

AI phone agents

Connect SIP calls to STT, LLM, TTS, and handoff.

Use this when calls should be automated but still observable and transferable.

Shortest production path

Do these in order.

  1. Pick a SIP provider and collect domain, port, transport, username, password, and DID.
  2. Allow MediaSFU gateway traffic in the provider firewall or trunk policy.
  3. Create the SIP config in MediaSFU and verify the phone number.
  4. Decide the route: room, human operator, IVR/audio playback, AI agent, or callback. An AI agent also needs AI keys, or managed AI if your plan includes it.
  5. Test inbound and outbound calls, DTMF, recording, transcripts, and fallback behavior.
Calleron a phoneSIP trunkyour providerMediaSFU roomthe live sessionWho answersagent, human, IVRInbound: a call arrives →← Outbound: you dial out
One path, both directions. The same trunk and room carry inbound and outbound calls, so setting up one sets up most of the other.
Mode: Basic keeps the path short. Detailed unlocks API fields, events, and call-control reference.

Where do you want to start?

Quick setup: the essentialsBasic
  1. Need a ready app now? Use the Calls tab on web or a platform app. Download official apps fromDownload Page.
  2. Need provider setup? FollowProvider Setup GuidesandPrerequisites.
  3. Will an AI agent answer calls?
    No: skip AI keys completely.
    Yes: in the dashboard, add speech-to-text, a language model and text-to-speech under AI Provider Keys (or use MediaSFU managed AI if your plan includes it), then turn the agent on for the number.
  4. Verify your number (its peer) so calls connect reliably both ways. To place calls as well, turn on allowOutgoing.
Full setup: every controlDeveloper
  1. Use full sections forSIP Config,Webhooks,HTTP API, andSocket Events.
  2. Will an AI agent answer calls?
    No: skip the AI keys and AI agent sections.
    Yes: add AI keys, then configure autoAgent on the SIP config.
  3. Need real-time control? Use Socket Events. Need backend control? Use HTTP API.