OpenAI SIP API for Voice Calls

Connect phone calls to AI voice services using SIP trunking.

16 cards · 1m 30s · tap to begin

From · · 1m 30s

OpenAI SIP API for Voice Calls

Connect phone calls to AI voice services using SIP trunking.

In brief

Connect phone calls to AI voice services using SIP trunking. OpenAI's SIP API lets businesses route phone calls through AI voice services with real-time transcription and call control. Originally reported by OpenAI Developers.

GPT-Live Realtime API

Telephony and SIP | OpenAI API

Connect incoming and outgoing phone calls to GPT-Live through a SIP trunk.

Handle inbound calls

Receive incoming-call webhook, then accept or reject the call.

Place outbound calls

Create session to dial phone number through your provider.

Use sideband connection

Attach to existing conversation for session events or commands.

Configure phone number

Use sip trunking provider like twilio to connect phone number.

SIP signaling

SIP signaling uses tls, gpt-live requires srtp for call audio.

Receive incoming call

Webhook sends live.transport.incoming event when call arrives.

Accept or reject call

Send authenticated post request to accept or reject call.

Attach backend

Connect sideband websocket after call acceptance.

Outbound call setup

Provider handles phone network connection while gpt-live carries conversation.

SIP trunk configuration

Supply transport.destination and trunk provider details.

Create session

Send post request with session configuration and transport type.

Monitor call events

Track transport.ringing, answered, failed events.

Manage active call

Send keypad tones, transfer calls, or hang up.

SIP network requirements

Allow tcp/tls traffic to sip.api.openai.com on port 5061.

Next steps

Use prompting guide, webhooks, delegation and tools.

The one thing

OpenAI's SIP API lets businesses route phone calls through AI voice services with real-time transcription and call control.

Read the original on OpenAI Developers

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on openai and related topics.