Connect over SIP
A SIP trunk connects your carrier or your phone system (PBX) to Diska, so agents answer calls on an Angolan number you already own. This guide applies to any SIP-capable carrier or PBX. Calls to the number are then answered by the Inbound agent published with it.
Importing a number requires the Owner or Admin role. If you don't have a number yet, buy a DISKA number in Phone numbers: no SIP setup needed.
- Angolan numbers (+244 followed by 9 digits), for incoming calls.
- UDP or TCP transport to a public IPv4 address. TLS and SRTP are not available.
- Transfers go out through your trunk. The imported number does not send SMS.
- The test call from the Testar (Test) panel only works with DISKA numbers: validate an imported number with a real call.
Prerequisites
- The Owner or Admin role in the organization.
- Your carrier's or PBX's SIP domain: a domain or public IPv4, with a port if it is not the usual one.
- The public signalling IPs that send calls to Diska. They may differ from the registration domain.
- SIP username and password, if the carrier requires registration (REGISTER); otherwise IP authentication.
- Firewall rules on your side that let Diska's signalling and audio through (see ).
- An agent of type Inbound to answer the number.
Diska SIP addresses
Send calls to the name sip.diska.ai, on port 5080. Use the IP only in firewall rules.
| Use | Address | Port | Protocol |
|---|---|---|---|
| SIP signalling for trunks | sip.diska.ai (102.219.124.234) | 5080 | UDP or TCP |
| Audio (RTP) | 102.219.124.234 | 16384–16639 | UDP |
| SIP over TLS | Not available | — | — |
Each call is addressed to the imported number, in international format (E.164):
sip:+244923456789@sip.diska.ai:5080
This is the Origination URI the number's details show once the trunk is ready. Diska's port 5060 does not accept carrier trunks: always use 5080.
Trunk settings
| Setting | Accepted values | Recommendation |
|---|---|---|
| Transport | UDP or TCP | UDP, unless the carrier requires TCP. |
| Codecs | G.711 A-law (PCMA), G.711 μ-law (PCMU) or Opus | G.711 A-law at 20 ms, the standard on Angolan networks. G.729 and G.723 are not accepted. |
| DTMF | RFC 2833 / RFC 4733 (telephone-event, payload 101) | Accept RFC 2833 on the carrier or PBX side: Diska does not send keys as SIP INFO. |
| Authentication | IP-based (static) or SIP REGISTER with digest authentication | IP-based, if the carrier allows it: it does not depend on an active registration. |
| Network | Public IPv4 | A PBX on a private network needs a public IP or extra connectivity agreed with DISKA. |
For a stable connection:
- Declare every IP the carrier sends calls from, or the whole network (/16 to /32). Diska refuses calls from IPs you did not declare.
- If the carrier uses different addresses for audio, the firewall on your side must accept audio to and from 102.219.124.234, on UDP ports 16384–16639.
- With SIP registration, Diska registers with the carrier and keeps the registration active. Registration confirms the connection but does not prove the number is routed: always make a real call.
Import the number
- In Números (Numbers), click Número → Importar um número personalizado (Number → Import a custom number). Importar número de telefone (Import phone number) opens.
- Fill in the fields:
| Field | Required | Notes |
|---|---|---|
| Phone Provider | Yes | Custom. Twilio (em breve) (coming soon) is disabled. |
| Phone Number | Yes | Angolan number in +244 format, for example +244923456789. |
| Friendly Name | No | A name to recognise the number in the list. |
| SIP Domain | Yes | Domain or IP, with an optional port (1–65535). No sip: or http://. |
| Username / Password | Only with SIP registration | Required when you turn on SIP registration; otherwise fill them in if the carrier requires them. |
| IPs de sinalização da operadora (Carrier signalling IPs) | Yes | Public IPv4 addresses or /16 to /32 networks, one per line or comma-separated. |
| Transporte SIP (SIP transport) | Yes | UDP (default) or TCP. |
| Outbound Proxy | No | Domain or IP with port, for example proxy.carrier.ao:5060. |
| Auth Username | No | Authentication username, if different from Username. |
| Ativar registo SIP outbound (Enable outbound SIP registration) | No | Tick it if the carrier or PBX requires SIP REGISTER. |
- Click Importar (Import).
If the server has already confirmed the configuration, Número importado (Number imported) appears; if it is still applying it, Configuração guardada (Configuration saved) appears with the current status.
Import errors:
| Message | Cause |
|---|---|
| A sua organização já possui este número. (Your organization already has this number.) | The number is already in your list. |
| Este número pertence à rede DISKA. (This number belongs to the DISKA network.) | It is a DISKA number: it is bought, not imported. |
| Username e password são obrigatórios quando o registo SIP está activado. (Username and password are required when SIP registration is on.) | You turned on SIP registration without credentials. |
| Use IPs públicos da operadora ou redes IPv4 /16 a /32. (Use the carrier's public IPs or /16 to /32 IPv4 networks.) | You entered private IPs or a network that is too wide. |
| Use um domínio ou IP, sem esquema SIP/HTTP, e uma porta entre 1 e 65535. (Use a domain or IP, without a SIP/HTTP scheme, and a port between 1 and 65535.) | SIP Domain or Outbound Proxy has an invalid format. |
Track the status
The list's Estado (Status) column and the number's details (SIP trunk section) show the progress. The page refreshes by itself; the configuration usually reaches the SIP server in under a minute.
| Status in the list | SIP status in the details | What it means |
|---|---|---|
| A ativar (Activating) | Activation pending | The configuration is being applied on the SIP server. |
| Credenciais pendentes (Credentials pending) | Credentials pending | The SIP configuration is not complete, for example waiting for SIP registration. |
| Erro SIP (SIP error) | Error | The configuration failed. Read the message in the details. |
| Sem agente (No agent) / Configurado (Configured) | Configured | The trunk is ready. It still needs, or already has, an agent. |
The details also show the server's message, for example:
- Trunk configurado. Publique o agente associado e teste uma chamada de entrada com a operadora. (Trunk configured. Publish the attached agent and test an incoming call with the carrier.)
- Registo SIP confirmado. Publique o agente associado e valide uma chamada real. (SIP registration confirmed. Publish the attached agent and validate a real call.)
- A aguardar registo SIP. Verifique credenciais, domínio e acesso de rede com a operadora. (Waiting for SIP registration. Check credentials, domain and network access with the carrier.)
The SIP trunk section of the details also shows Provider, SIP Domain, Username, Password (hidden), Outbound Proxy, Auth Username, Solicitar registo SIP (Request SIP registration), the transport, the IPs de entrada (inbound IPs) and, once ready, the Origination URI.
Route the number to Diska
When the trunk is ready, copy the Origination URI from the number's details and send it to the carrier (or set it on your PBX). Calls to the number must reach that destination:
- from the IPs you declared;
- with the transport you chose;
- with the imported number as the destination (in
+244…format).
Diska only accepts a trunk call when it comes from one of the declared IPs and is for the imported number.
Put the number to work
- Assign the number to an Inbound agent under Publicação → Telefone (Publishing → Phone) — see Assign to an agent.
- Publish the agent. Only the published version answers.
- Make a real call to the number and confirm the agent answers, that audio flows both ways and that the call shows up in History.
Transfers through the trunk
On a call received through your trunk, the transfer goes out through the same trunk, with your number as the caller ID. The destination can be a phone number or a SIP URI on the trunk's domain.
For transfers to go out, the carrier or PBX must accept calls from Diska (102.219.124.234, port 5080) with the SIP registration credentials or by IP, and route them to the destination. See Phone and SIP transfers.
Encryption
Connecting over SIP uses SIP signalling over UDP or TCP and RTP audio, without encryption. TLS and SRTP are not available yet. If your policy requires encrypted calls, talk to DISKA before connecting the trunk.
Compatibility summary
| Setting | Supported | Not supported |
|---|---|---|
| Transport | UDP, TCP | TLS |
| Codecs | G.711 A-law, G.711 μ-law, Opus | G.729, G.723 |
| DTMF | RFC 2833 / RFC 4733 | SIP INFO, in-band DTMF |
| Authentication | IP-based, SIP REGISTER with digest | — |
| Network | Public IPv4 | IPv6, private IP without extra connectivity, DNS SRV-only destinations |
| Numbers | Angolan (+244) | Other countries |
| Calls | Incoming; transfers through the trunk | Agent outbound calls, SMS, the panel's test call |
Change the configuration
In the details you can only change the Nome amigável (Friendly name). To change the SIP data, delete the number (⋮ → Eliminar (Delete)), import it again with the right data and confirm the assignment on the agent.
Troubleshooting
| Symptom | Likely causes | What to do |
|---|---|---|
| The call never reaches Diska, or the carrier gets a rejection | The number is not routed to the Origination URI; the call comes from an IP you did not declare; the carrier sends to port 5060. | Confirm the routing and port 5080 with the carrier; add the missing IP and import again. |
| The call arrives but nobody answers | The number is not assigned to a published Inbound agent; the organization reached its simultaneous call limit. | Assign and publish — see Incoming calls and Simultaneous calls. |
| The status stays at Credenciais pendentes (Credentials pending) | The SIP registration was not accepted. | Check username, password, Auth Username, domain and port with the carrier. |
| The status shows Erro SIP (SIP error) | The SIP server refused the configuration. | Read the message in the details and fix the field it names. |
| The agent answers but audio is missing one way | Audio (RTP) is blocked by a firewall or NAT. | Allow UDP 16384–16639 to and from 102.219.124.234 and make sure the carrier advertises a public IP in the SDP. |
| Choppy or noisy audio | Unstable codec or network. | Use G.711 A-law at 20 ms and check packet loss on the carrier's link. |
| Keys pressed by the agent are not recognised | The destination expects DTMF as SIP INFO or in-band. | Set the destination to RFC 2833 / RFC 4733. |
| Transfers fail on an imported number | The carrier refuses the calls Diska sends through the trunk, or does not route the destination. | Ask the carrier to accept calls from 102.219.124.234 and check the destination format. |
See also Errors and end reasons to read each call's end reason in History.
FAQ
Can I connect a number from another country? No. Import only accepts Angolan numbers (+244).
Do I need SIP registration? Only if the carrier requires it. With IP authentication, declaring the signalling IPs is enough.
How many simultaneous calls does the trunk take? The limit belongs to the organization, for all numbers together. See Simultaneous calls.
Can the agent place outbound calls through my trunk? No. Outbound calls (Outbound agents, campaigns and the test call) use DISKA numbers. Only transfers go out through the trunk.
Can the same number answer with two agents? No. Each number answers with one published Inbound agent.

