Test your phone system
Add your own phone system (PBX) as a phone server and prove the connection with a test call that speaks a six-digit code to enter in the workspace.
A phone server is your own phone system, such as a 3CX, FreePBX, Asterisk or hosted PBX, that Skysay calls over SIP. You add it once, then prove the connection with a test call: Skysay calls an extension you name, speaks a six-digit code twice once answered, and hangs up. You enter that code in the workspace within 5 minutes, and a match makes the server Verified.
Verified means the call reached a phone on that phone system and the person who answered passed the code on. Skysay does not send a number's calls to a phone server yet, so the rule Send the call to my phone server cannot be saved, verified or not.
Add your phone system
- Open Settings, select Show infrastructure settings, and go to Phone servers.
- Select Add phone server and fill in:
- IP address: the public IPv4 address of your phone system, such as
198.51.100.7. A domain name is not accepted, and a private, reserved or carrier address is refused. - Port:
5060, or a port from 1024 to 65535. - Transport: UDP or TCP. TLS is not supported.
- SIP login and Password, only if your phone system asks Skysay to log in. The password is stored sealed and never shown again; leave it empty on an edit to keep it.
- Number your phone system sees: one of your active Skysay numbers. Every call Skysay makes to this phone system shows it.
- IP address: the public IPv4 address of your phone system, such as
- Select Add phone server.
Allow Skysay's calls
Each phone server shows the addresses Skysay's calls come from, under Allow our calls. Allow them on your phone system, and route the number Skysay shows (or every caller from those addresses) to the extension you want to test.
Run the test call
- Under Ring a phone, enter the extension of a phone (3 to 20 digits), not a menu or voicemail.
- Select Test call. The workspace never shows the code.
- Skysay calls that extension through the server's own connection, showing the server's Skysay number, and rings for up to 40 seconds. Nothing is said before the call is answered.
- Answer the phone and stay on the line: Skysay says a short message with a
six-digit code twice in the workspace's language (
en,et,de,es,fr,ru,it, orar), then hangs up. - Under step 3, Answer the call and enter the code you hear, enter the six digits within 5 minutes (at most 3 wrong tries) and select Verify code. When the code matches, the server reads Verified.
If three wrong codes are entered, or 5 minutes pass without a match, the test ends and you start a new test call.
Lena adds
198.51.100.7, port5060, UDP, loginacme-inand its password, and picks+1 555 0100. She allows calls from Skysay's addresses on her phone system, enters extension204and selects Test call. The workspace reads "Ringing the extension…" and shows no code. Her desk phone rings, showing+1 555 0100. She answers and hears Skysay's message say481592twice, then the call hangs up. Under Answer the call and enter the code you hear, she enters481592and selects Verify code. The workspace reads "Acme office PBX: verified."
Right after you add a phone server, or when it was added more than a day ago and is not verified, the first test call can answer "We are preparing the connection to your phone system. Try again in a minute." Skysay's network then admits your phone system's address; try again a minute later.
One test call runs at a time per phone server, and at most three test calls run an hour per phone server and per phone system IP address.
When a test fails
| The workspace says | API status and reason | What happened | What to do |
|---|---|---|---|
| Nobody answered the call | failed · not_answered | The phone system refused the call, the extension does not exist, it was busy, or nobody answered within 40 seconds | Allow Skysay's addresses, check the extension, and try again |
| The call ended before the code was said | failed · not_played | The call was answered, but hung up before the code finished playing | Start a new test call, answer a phone, and stay on the line until the call hangs up |
| Skysay could not place the test call | failed · call_not_placed | Skysay's side failed before it dialled | Try again in a minute |
| The test call ended without a result | failed · call_not_completed | The test ran out of time without a final result from Skysay's side | Try again |
| The phone server changed during the test | failed · server_changed | You saved a change while the test was running or waiting for the code | Test it again |
| Three wrong codes were entered | failed · wrong_code | Three wrong six-digit codes were entered while the test was waiting for the code | Start a new test call |
| A newer test call replaced this one | failed · superseded | A newer test call started for this phone server while this one was waiting for its code | Use the code from the newer test call instead |
| The 5 minutes passed | expired · code_not_entered | Five minutes passed after the code was spoken without a matching code being entered | Start a new test call |
Hung up early: Lena answers extension
204, hears the start of the message, and hangs up before Skysay finishes speaking the code twice. The workspace reads "The call ended before the code was said. Try again and stay on the line."
Someone else's phone system: Max adds
198.51.100.7in his own workspace and starts a test call. The workspace shows him nothing and he hears nothing. If Acme's phone system lets the call ring a desk phone, Skysay's message says what the code is for and to hang up if they did not start the test. Nobody passes the code on to Max, so his phone server stays Not verified.
What verified does and does not prove
Verified means Skysay's test call reached a phone on that phone system, and the person who answered passed the code on to whoever entered it.
It does not prove you administer the whole phone system: an extension that forwards outside, or a voicemail box someone else can open, can pass the code on too. Someone who adds another company's phone system and starts a test is shown nothing and hears nothing, and sending keypad tones or audio to Skysay's media ports changes nothing.
What a verified phone server does today:
- Skysay sends it no calls. The rule Send the call to my phone server is refused in the workspace, the API and MCP, verified or not.
- On Numbers, a verified server is offered for that rule, and saving the rule still fails.
- Skysay's voice host keeps accepting calls from the server's address while the server is verified, not only in the window after you save it.
When a server stops being verified
A verified phone server holds for the address its test call reached and for its settings at the time. It reads Not verified again, and needs a new test call, when:
- you change its IP address, port, transport, SIP login, password or number;
- its Skysay number is released: the server then reads Pick a number until you choose another one.
Changing only its name keeps it verified.
Limits
- A phone server is reached at an IP address only. A phone system that needs its domain name in the request (some hosted systems that serve many customers on one address) is not supported yet.
- A phone server saved before IP addresses were required keeps its old text and asks for the IP address; it cannot be tested until you enter one.
- A workspace can have up to 20 phone servers.
- At most three test calls an hour to the same phone system IP address, whichever workspace or phone server record starts them, alongside one running test call at a time and three an hour per phone server.
- Each test call rings for up to 40 seconds; once the code is spoken, you have 5 minutes and at most 3 wrong tries to enter it.
Over the API and MCP
| Step | REST | MCP tool |
|---|---|---|
| Add | POST /v1/phone-servers | create_phone_server |
| List | GET /v1/phone-servers | list_phone_servers |
| Change | PATCH /v1/phone-servers/{phone_server_id} | — |
| Start a test call | POST /v1/phone-servers/{phone_server_id}/test-calls with {"extension": "204"} and optional language (en, et, de, es, fr, ru, it, or ar) | start_phone_server_test_call |
| Read the test | GET /v1/phone-servers/{phone_server_id}/test-calls/{test_call_id} | get_phone_server_test_call |
| Enter the code | POST /v1/phone-servers/{phone_server_id}/test-calls/{test_call_id}/code with {"code": "123456"} | enter_phone_server_test_call_code |
Create and change take only the server's own fields: name,
server_address, port, transport, username, password and
phone_number_id. Anything else, such as a status, is refused with 400.
The record shows password_set, never the password, and allow_calls_from,
the addresses to allow.
Starting or reading a test call never returns the code. Test status moves
from calling to awaiting_code (with tries_left and code_expires_at),
then verified, failed (with its reason), or expired
(code_not_entered). Entering the code answers with the test and the
server's verification state; a wrong code answers 400
phone_server_code_wrong with tries_left, entering too early answers 409
phone_server_test_not_ready, and entering after 5 minutes answers 409
phone_server_code_expired.
Reading needs numbers:read; adding, changing, testing and entering the code
need numbers:write. See the API reference for the
exact shapes.