What is SIP telephony and why does a Discord bot need it
SIP is the language phone networks have spoken for the last twenty years. Discord speaks a different language. Everything that makes "calling a real phone from Discord" possible is translation between the two.
SIP in one paragraph
Session Initiation Protocol is a signalling protocol: it does not carry your voice, it arranges the conversation. One side sends INVITE, the other answers 200 OK, both agree on a codec, and then audio flows over RTP in separate packets. Hanging up is BYE. Everything else - hold, transfer, DTMF, call forwarding - is a variation of the same dialog.
Your SIP provider gives you three things: a login, a password and a server address. Together they let a client register, so the provider knows where to deliver incoming calls, and so outgoing calls are billed to your account.
Why Discord cannot just "dial"
Discord is built for low-latency group voice. It sends Opus at 48 kHz, mixes participants, adapts bitrate, and hides all network details behind its own infrastructure. A phone network expects a registered endpoint, G.711 or G.722 audio, a fixed packetisation interval, and a public reachable media port.
Two systems with opposite assumptions need a translator that is a real endpoint on both sides - not a browser tab, not a WebRTC bridge that guesses.
What the bot actually does
- Registers to your SIP provider with your credentials, so your number stays online 24/7.
- Encodes Discord audio into a telephone codec and decodes the phone side back into Discord.
- Manages dialogs: outgoing calls, incoming calls, hangup, DTMF tones, hold.
- Writes the call down: who called whom, when, how long, and where the recording is.
What you need to start
| Item | Where it comes from |
|---|---|
| SIP login / password / domain | Your SIP provider (for example a local VoIP operator) |
| A phone number (DID) | Usually included in the provider plan |
| Discord server with the bot | Install CallBot, attach it to a text channel |
| Minutes / balance | Provider tariff, paid directly to the provider |
Common failure modes
Most "it does not work" reports are one of four things: wrong credentials (a login that is actually an email), a domain that is not a SIP server, a provider that blocks the codec offered by the client, or a firewall that lets signalling through but drops RTP. Each has a distinct symptom - registration fails, calls connect but you hear nothing, or audio is one-way.
CallBot now validates credentials before registering and explains the problem in your language instead of showing a raw SIP code.