Your own PBX: connecting the AI secretary over SIP

If your office already has a PBX, the secretary can answer the calls nobody picked up. The PBX forwards such calls to our server over SIP. You don't need to buy a number from us — you pay only for the secretary's minutes.
What you need
- Access to your PBX settings (or the person who maintains it).
- Connection details from the app or the cabinet: server, port, login and password.
In the OnePhone app
- Open "AI secretary", tap the menu button and choose "Connect your own PBX".
- Tap "Create access". The server, port, login and password appear.

- Save the password — it is shown only once. If you lose it, tap "Create a new password".
- Enter the "Call-back number" — we call it when you tap "Take the call".
- Pass the details to whoever sets up the PBX.
In the web cabinet
- Open "AI secretary" → "Connect your own PBX".

- Click "Create access" and copy the server, port, login and password.
- Enter the call-back number and click "Save number".
What to set up in the PBX
- Create a SIP trunk with registration: server, port, login and password from the step above.
- Add a rule: forward unanswered calls to number 500 through this trunk (or to the SIP address shown on the screen).
- Pass the caller's number in the P-Asserted-Identity header — most PBXs do this by themselves.
- Call the office number and don't answer: the secretary should pick up.
Examples: in Asterisk and FreePBX — a pjsip trunk and an outbound route to 500 through it; in 3CX — "Generic SIP Trunk" and the rule "No answer → external number 500 via the trunk". In cloud PBXs choose forwarding to a SIP address in the "not answered" scenario.
Good to know
- Such conversations are marked "via PBX" in the log, and we don't charge for the connection.
- "Take the call" for a PBX call works as a call-back: we call the number you specified and connect you with the client. This outgoing call is charged as a regular one.
- To disconnect, tap "Disconnect the PBX" — the login and password stop working.

