Connecting OpenAI to Your Phone Number
Click2Call has a built-in OpenAI connection profile: enter your Project ID and calls to your Australian number are routed to the OpenAI Realtime API. This guide covers both ends — what to set up in the OpenAI platform, and what to configure in Click2Call.
Reviewed by Royce Clark, Director · Updated
Before you start: this one needs code
OpenAI’s SIP integration is not a no-code setup. When a call arrives, OpenAI sends a realtime.call.incoming event to a webhook you host, and your code has to accept the call before any audio connects. If you want an agent you configure in a dashboard with no server of your own, ElevenLabs, Retell or Synthflow are the simpler choices — Click2Call supports those too.
Connecting OpenAI, Step by Step
Find your OpenAI Project ID
Sign in at platform.openai.com and open Settings → Project → General. The Project ID is shown there and begins with proj_.
Copy it — this is the one value Click2Call needs.
Do not enter your OpenAI API key or webhook signing secret into Click2Call. Click2Call only needs the Project ID. Keep the API key and signing secret on your own server, in a secret store or environment variables — never in browser code, prompts, source code or the portal.
Set up a webhook that accepts calls
In the OpenAI platform, open Settings → Project → Webhooks and register a public HTTPS endpoint you control, subscribed to the realtime.call.incoming event.
When someone rings your number, OpenAI sends that endpoint a realtime.call.incoming event containing a call_id. Your code accepts the call using that id, and that is also where you give the agent its model, instructions, voice, tools and transcription settings:
POST https://api.openai.com/v1/realtime/calls/{call_id}/accept
Authorization: Bearer <OPENAI_API_KEY>
Content-Type: application/json
{
"type": "realtime",
"model": "gpt-realtime-2.1",
"instructions": "You are the voice assistant for Example Company."
}Verify OpenAI’s webhook signature before trusting an event, and handle duplicate deliveries of the same event safely.
This is the step that catches people. Until your webhook accepts the call, the phone will ring and nothing will answer. OpenAI’s own Realtime API with SIP guide has the request format and sample code.
Create the profile in Click2Call
In the portal open Voice → Profiles, set Connection Type to OpenAI, and paste your Project ID into the OpenAI Project ID field.
That field is mandatory — the profile will not save without it. Click2Call then routes calls to sip:<PROJECT_ID>@sip.api.openai.com:5061;transport=tls and sets the number format to +E.164 automatically. There is no SIP URI to type.
To send every number on the account to OpenAI, edit the Default profile instead of making a new one — it applies to every line without its own profile.
Assign your number to the profile
Open Voice → Line Manager and set the Profile column for your number to the profile you just created.
The default profile applies to every line that has no profile assigned, and new numbers land on it automatically. A number left on Default will ignore everything you just configured.
Check the time zone, then test
While you are in the profile, confirm the Time Zone matches where the business operates — business hours, after-hours routing and queue schedules all read it.
Then ring the number from a mobile. Check, in order: the call reaches OpenAI, your endpoint receives realtime.call.incoming and logs the call_id, an event with a bad signature is rejected, your server’s accept request succeeds and the agent answers with the model, voice and instructions you set.
Transfer callers to a person
There are two ways to hand a caller to a human. Which one you use depends on how your call flow is built.
A. Transfer the call the agent is on
Your server asks OpenAI to transfer the active call, and OpenAI sends a SIP REFER back to Click2Call:
POST https://api.openai.com/v1/realtime/calls/{call_id}/refer
Authorization: Bearer <OPENAI_API_KEY>
Content-Type: application/json
{ "target_uri": "tel:+61755551234" }B. Start a new call back into Click2Call
If your application, PBX or SBC places a new SIP call to Click2Call, that call has to sign in as one of your lines using SIP digest authentication:
- SIP server — sip:sip.click2call.com.au:5061;transport=tls
- Username / User ID — the number exactly as Line Manager shows it, e.g. 61355551234
- Password — the password for that line, stored securely
- Caller ID and destination — can be +E.164, e.g. +61355551234
The username stays in Line Manager format. It is not converted to +E.164: authenticate as 61355551234 even when the caller ID is +61355551234. And do not use the OpenAI SIP address as your Click2Call server — the Project ID routes calls to OpenAI; the line’s username and password are for calls back to Click2Call.
Troubleshooting
The profile will not save
The OpenAI Project ID field is empty or malformed. It is mandatory, and the value should begin with proj_. Copy it from Settings → Project → General rather than typing it.
The phone rings but nothing answers
Almost always the webhook. Either it is not registered in the OpenAI project, it is not reachable from the internet, or it is receiving the event but not accepting the call. Check your endpoint logs for a realtime.call.incoming event. If none arrives, check the Project ID on the profile, that the number is on that profile, that the webhook belongs to the same OpenAI project, and that realtime.call.incoming is enabled. If the event arrives, check your handler reads the call_id and its accept request uses a valid API key.
OpenAI returns 401 on a transfer
Check the target_uri in your refer request. For a new call you start back into Click2Call, check the line’s username and password.
Click2Call rejects the sign-in on a call back to us
Check the username format first: it must be the number as Line Manager shows it, 61355551234, not +61355551234. Then check the line’s current password.
Calls go to Click2Call voicemail instead
The number is still on the Default profile rather than your OpenAI profile, so the call never leaves for OpenAI at all. Check the Profile column in Line Manager.
Calls connect but the agent has no context
Context is supplied by your code at the moment it accepts the call, not by Click2Call. Review the accept request in OpenAI’s SIP guide — that is where the session instructions belong.
Frequently Asked Questions
Do I need to write code?
Yes, for OpenAI specifically. The Click2Call side is configuration only, but OpenAI requires a webhook you host to accept each call. If you would rather not run a server, ElevenLabs, Retell and Synthflow are configured entirely in their own dashboards — see connecting an AI voice agent.
Where is my Project ID?
platform.openai.com → Settings → Project → General. It starts with proj_.
Are calls still recorded and transcribed?
Yes, provided Recording Enabled is ticked on the profile. Recording, transcription, summaries and sentiment all work as normal on the Click2Call side, stored in Australia. See AI voice tools.
Can I use my existing business number?
Yes — port it across first, then assign it to the profile. Most businesses test on a new number and move the main one once the agent behaves.
Related Guides
Still need help?
Email our Australian support team with your account number and what you’re seeing. We support the Click2Call side of this connection; questions about the other product go to its vendor.