Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.
Beta is a preview. The Beta (2.0) platform does not have all the features
of Stable yet. For example, iMessage on Beta
supports only text and images, so tapbacks, polls, message effects, and voice
notes are only on Stable
for now. Use Stable for production agents, and confirm that Beta supports the
features you need before you buy a plan.
Call your Photon number and have your agent answer. Photon connects the phone
network to your agent over SIP; ElevenLabs runs the voice conversation.
You do not stream phone audio through the messaging HTTP endpoint.This walkthrough starts with incoming calls only. You do not need to
enable outbound calling or generate an outbound SIP password to receive your
first call.
A Photon project you can configure, with an eligible SMS number or
dedicated iMessage or WhatsApp number. Shared lines cannot take calls.
An ElevenLabs account and a voice agent you can publish.
A separate phone to call your Photon number.
Number availability, subscription requirements, and call usage can incur costs.
Review plans and billing and the purchase confirmation
before acquiring a number. If you already have an eligible number, reuse it.
1
Prepare an agent that can hold a conversation
In ElevenLabs, create an agent using its
agent quickstart.
Choose its voice, set a first message such as Hello, I’m your test agent.
What would you like to try?, and give it a small job, such as answering
questions about a fictional coffee shop.Use Preview in the agent editor. Ask a question, hear its response,
and publish the version you want callers to reach. Fix the agent here
before troubleshooting the phone connection.
2
Find your Photon number and its Voice profile
Open Voice in your Photon project. Find your number under
Lines. If it is missing, confirm it is voice-capable; a shared iMessage
assignment is not an eligible number.If there is no default profile, select Set up default, choose SIP,
and select Create profile. If your number already uses a profile, open
that profile instead.
Create the default SIP profile before adding other profiles. Dashboard preview with sample data.
The default applies to numbers without an additional profile. An
additional profile affects only numbers assigned to it. Check the number’s
assignment and the profile’s Lines count before editing: the change
affects new calls on every line using that profile.
3
Import the number into ElevenLabs
In ElevenLabs, open Deploy → Phone Numbers, select Import number,
then From SIP Trunk. Enter a label you recognize and your Photon
number in international format, including + and the country code.Configure Inbound Configuration for the calls arriving from Photon.
Use Allowed for media encryption to match Photon’s Auto setting.
If you enable inbound SIP authentication in ElevenLabs, save that
username and password: you must enter the same pair in Photon next.These are ElevenLabs inbound credentials, not a Photon API key or a
Photon outbound SIP password. Leave outbound configuration disabled for
this incoming-only test.Save the imported number, then select your published agent in its
Agent dropdown. If Branch appears, choose the version or traffic
split you intend callers to reach. A number with No agent will not
run your conversation.For the provider’s current import fields and security options, see
ElevenLabs SIP trunking.
4
Point Photon at the agent's SIP destination
Return to the Photon Voice profile used by the number. Under Inbound
calls, select Enable inbound if needed. Configure:
Setting
Value for this ElevenLabs connection
SIP address when enabling, or Destination when editing
sips:sip.rtc.elevenlabs.io:5061
Transport
TLS
SIP credentials
The inbound username and password configured in ElevenLabs, if required there. Otherwise leave them unset.
Media encryption
Auto, paired with Allowed in ElevenLabs for this initial test.
The ElevenLabs receiving destination with TLS selected. Dashboard preview; a saved address alone does not verify call delivery.
Complete Enable inbound for a new configuration. For an existing
destination, edit the field and move focus out of it to save. Confirm the
saved address and TLS remain visible. If required by the provider,
add its inbound credentials using Add or Replace beside the
credential row.TLS protects SIP signaling. Requiring encrypted audio is a separate
policy; if you require it, enable Require encrypted calls in Photon
and Required media encryption in ElevenLabs, with matching support in
both directions.
5
Call the agent from another phone
Dial your Photon number. Listen for the greeting, ask your test question,
and confirm the agent hears you and responds audibly. End the call.In Photon, check Voice → Recent calls for the attempt and its final
status. In ElevenLabs, check the conversation for the selected agent.
A saved SIP destination is not proof of a working call: verify audio in
both directions and that the call ends normally.
The voice conversation runs in the provider, but you can inspect its Photon
routing with any published API client. Complete
project setup with platforms:read, copy the
Profile id from this Voice profile, and set:
Save the example as voice.ts, voice.py, src/main.rs, or main.go in the
directory you prepared in project setup. These are API-client calls, not
audio streaming or a replacement for your provider’s agent code.
import { Photon } from "@photon-ai/api";const { PHOTON_API_KEY, PHOTON_PROJECT_ID, PHOTON_VOICE_PROFILE_ID } = process.env;if (!PHOTON_API_KEY || !PHOTON_PROJECT_ID || !PHOTON_VOICE_PROFILE_ID) { throw new Error("Set PHOTON_API_KEY, PHOTON_PROJECT_ID, and PHOTON_VOICE_PROFILE_ID");}const photon = new Photon({ headers: { Authorization: `Bearer ${PHOTON_API_KEY}` },});try { const profile = await photon.projects.platforms.getVoiceProfile({ path: { id: PHOTON_PROJECT_ID, profileId: PHOTON_VOICE_PROFILE_ID }, }); console.log(profile.configuration.inbound?.destinationUri ?? "Inbound is not enabled");} catch { console.error("Could not read the Voice profile"); process.exitCode = 1;}
import osfrom photon_api import Photon, PhotonErrorfrom photon_api.rpc_generated import GetVoiceProfileInputtry: with Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_KEY']}"}) as photon: profile = photon.projects.platforms.get_voice_profile( GetVoiceProfileInput.model_validate({ "path": { "id": os.environ["PHOTON_PROJECT_ID"], "profileId": os.environ["PHOTON_VOICE_PROFILE_ID"], } }) ) inbound = profile.configuration.inbound print(inbound.destinationUri if inbound is not None else "Inbound is not enabled")except PhotonError: raise SystemExit("Could not read the Voice profile") from None
use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};#[tokio::main]async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = PhotonClientBuilder::new() .credential( "projectApiKey", Credential::Bearer(SecretString::from(std::env::var("PHOTON_API_KEY")?)), ) .build()?; let response = client .get_voice_profile( std::env::var("PHOTON_PROJECT_ID")?, std::env::var("PHOTON_VOICE_PROFILE_ID")?, ) .await .map_err(|_| "Could not read the Voice profile")?; match &response.inner().configuration.inbound { Some(inbound) => println!("{}", inbound.destination_uri), None => println!("Inbound is not enabled"), } Ok(())}
package mainimport ( "context" "fmt" "log" "os" photonapi "github.com/photon-hq/api/packages/go")func required(name string) string { value := os.Getenv(name) if value == "" { log.Fatalf("Set %s", name) } return value}func main() { client := photonapi.NewClient(photonapi.WithAPIKey(required("PHOTON_API_KEY"))) profile, err := client.Projects.Platforms.GetVoiceProfile( context.Background(), &photonapi.GetVoiceProfileParams{ ID: required("PHOTON_PROJECT_ID"), ProfileID: required("PHOTON_VOICE_PROFILE_ID"), }, ) if err != nil { log.Fatal("Could not read the Voice profile") } if profile.Configuration.Inbound == nil { fmt.Println("Inbound is not enabled") return } fmt.Println(profile.Configuration.Inbound.DestinationURI)}
node voice.ts
python voice.py
cargo run --bin photon-first-agent
go run main.go
The returned destination confirms what is saved in Photon, not whether the
remote agent answered. Keep the phone-call check above as your success test.
Configure the separate Photon outbound credential and test outgoing calls.
Use another voice provider
Follow the LiveKit, Retell, or Twilio walkthrough for your agent stack.
Add iMessage
Give your agent a text conversation alongside phone calls.
Add email
Receive and reply to email on your own domain.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Photon","colors":{"primary":"#47c6ed","light":"#47c6ed","dark":"#47c6ed"},"logo":{"light":"https://mintcdn.com/photon-6d78d87b/hMh2hcolREhyGomA/logo/light.svg?fit=max\u0026auto=format\u0026n=hMh2hcolREhyGomA\u0026q=85\u0026s=11512a078b26743f3341822f7095a71d","dark":"https://mintcdn.com/photon-6d78d87b/hMh2hcolREhyGomA/logo/dark.svg?fit=max\u0026auto=format\u0026n=hMh2hcolREhyGomA\u0026q=85\u0026s=0922f188bdc8d783c1460a707ca58215"},"favicon":"https://mintcdn.com/photon-6d78d87b/3zs1WCtLT_oibNcX/favicon-128x128.png?fit=max\u0026auto=format\u0026n=3zs1WCtLT_oibNcX\u0026q=85\u0026s=8c914cde9344878faf68ae81d39414e5","api":{"asyncapi":"https://api.photon.codes/asyncapi.yaml"},"navbar":{"links":[{"href":"https://photon.codes/contact","label":"Contact"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.photon.codes"}},"footer":{"socials":{"x":"https://x.com/photon_hq","github":"https://github.com/photon-hq","linkedin":"https://www.linkedin.com/company/photonhq","discord":"https://discord.gg/4c3VJzDfNA"}},"seo":{"metatags":{"canonical":"https://photon.codes/docs","og:image":"https://photon.codes/docs/images/social-cover.png","og:image:alt":"Photon dashboard on a blue background","twitter:card":"summary_large_image","twitter:image":"https://photon.codes/docs/images/social-cover.png","twitter:image:alt":"Photon dashboard on a blue background"}},"fonts":{"heading":{"family":"PolySansArabicVF","weight":600,"source":"https://photon.codes/docs/fonts/PolySansArabicVF.woff2","format":"woff2"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["Use Stable documentation by default. Honor an explicit Beta request or a URL under /docs/beta/. If the requested version conflicts with the installed CLI package or API origin, clarify the target before writing integration code.","Pages under /docs/beta/ document Beta; other product pages document Stable. Keep the CLI package, commands, API origin, and credentials within the selected version. State the documentation version in your answer.","For MCP search, always pass version: Stable or version: Beta. Unfiltered search mixes both versions. For filesystem reads, keep Beta queries under /beta/ and exclude /beta/ from Stable queries; discover paths before reading them.","The public docs base is https://photon.codes/docs. Convert MCP page paths to public URLs under that base, preserving /beta/ when present. Read https://photon.codes/docs/skill.md for version selection and https://photon.codes/docs/llms.txt for the version indexes."]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"photon-6d78d87b","hasAudioNarration":false,"actualSubdomain":"photon-6d78d87b","customDomains":["docs.photon.codes"],"gitSource":{"type":"github","owner":"photon-hq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af59fba319ac6c743b5f147","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Low-level SDKs","count":1029},{"language":"default","tag":"Type reference","count":1009},{"language":"default","tag":"index","count":481},{"language":"default","tag":"chat","count":439},{"language":"default","tag":"Interfaces","count":434},{"language":"default","tag":"API Reference","count":269},{"language":"default","tag":"Endpoints","count":256},{"language":"default","tag":"spectrum-ts","count":235},{"language":"default","tag":"Type Aliases","count":225},{"language":"default","tag":"API Client","count":199}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n@font-face{font-family:'PolySansArabicVF';src:url('https://photon.codes/docs/fonts/PolySansArabicVF.woff2') format('woff2');font-weight:400;font-display:swap}.mdx-content{font-size:16px;font-weight:400;line-height:28px;letter-spacing:0}#page-title,.mdx-content h1{font-size:36px;font-weight:600;line-height:40px;letter-spacing:-0.2px}.mdx-content h2:not(.not-prose){font-size:24px;font-weight:600;line-height:32px;letter-spacing:0}.mdx-content h3,[data-component-part=\"card-title\"]{font-family:var(--font-family-headings-custom);font-size:20px;font-weight:600;line-height:32px;letter-spacing:0.02em}#header .prose{font-size:18px;font-weight:400;line-height:28px;letter-spacing:-0.02em}.mdx-content strong{font-weight:600}[data-component-part=\"card-content\"],[data-component-part=\"callout-content\"]{font-size:14px;font-weight:400;line-height:24px;letter-spacing:0}.sidebar-group a,.sidebar-group button,.toc a,[data-layout-item=\"search-entry\"]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0;text-shadow:none}.sidebar-group-header,.nav-tabs-item,.mobile-nav-tabs-item,[data-component-part=\"version-select-trigger\"],#table-of-contents h2,#table-of-contents h2 button{font-family:var(--font-family-body-custom);font-size:14px;font-weight:600;line-height:20px;letter-spacing:0;text-shadow:none}.eyebrow{font-family:'Geist Mono', monospace;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0}.mdx-content figcaption,[data-component-part=\"code-block-header\"],[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]{font-family:var(--font-family-headings-custom);font-size:12px;font-weight:400;line-height:18px;letter-spacing:0}.mdx-content a.link,[data-component-part=\"card-cta\"]{font-weight:600;letter-spacing:-0.01em}.mdx-content a.link{font-size:inherit;line-height:inherit}[data-component-part=\"card-cta\"]{font-size:14px;line-height:24px}code,pre{font-family:'Geist Mono', monospace!important;font-size:14px!important;line-height:24px!important;letter-spacing:0}code{font-weight:500}pre,pre code{font-weight:400}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border, rgba(128, 128, 128, 0.3));border-radius:9999px;border:2px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(128, 128, 128, 0.5);border:2px solid transparent;background-clip:content-box}::-webkit-scrollbar-corner{background:transparent}*{scrollbar-width:thin;scrollbar-color:var(--border, rgba(128, 128, 128, 0.3)) transparent}#navbar div:has(>a>.nav-logo){flex:0 0 auto!important}#navbar div[class*=\"ustify-end\"]{margin-left:0!important;flex:0 0 auto!important}#navbar .nav-tabs{column-gap:24px!important}#navbar #topbar-cta-button{position:fixed!important;right:1.75rem!important;top:0!important;height:3.5rem!important;display:flex!important;align-items:center!important}*/\n\n/*#content-container {\n border: 1px solid rgba(255, 255, 255, 0.07) !important;\n background-color: #101010;\n scroll-behavior: smooth !important;\n}\n\n.sidebar-group {\n font-weight: 400 !important;\n}*/\n\n#table-of-contents{scrollbar-width:none}#table-of-contents::-webkit-scrollbar{display:none}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]),#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]{--corner-shape-fallback: 0.945;position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;corner-shape:superellipse(1.1);border-radius:calc(40px * var(--one-if-corner-shape-supported, var(--corner-shape-fallback, 1)))!important;box-shadow:rgba(255, 255, 255, 0.5) 0px 0px 5px 2px inset!important;border-style:solid!important;border-width:1.5px!important;padding:8px 14px!important;color:rgb(255, 255, 255)!important;font-family:'Inter', sans-serif!important;font-size:14px!important;font-weight:500!important;text-shadow:rgba(128, 128, 128, 0.25) 0px 0px 4px;transition:box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)!important;transform:scale(1)}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]):hover,#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]:hover{box-shadow:rgba(255, 255, 255, 0.5) 0px -2.77px 7.82px 2px inset!important;transform:scale(1.02)!important}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]),#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]{gap:0!important;transition:box-shadow 0.35s ease,\n transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),\n gap 0.25s ease!important}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]):hover,#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]:hover{gap:4px!important}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"])::after,#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]::after{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M 0 0 L 5.5 5.25 L 0 10.5' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='white' transform='translate(13.75 6.75)'/%3E%3Cpath d='M 14.25 0 L 0 0' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='white' transform='translate(4.75 12)'/%3E%3C/svg%3E\");display:inline-block;width:0;height:20px;opacity:0;overflow:hidden;line-height:0;transition:opacity 0.25s ease, width 0.25s ease;vertical-align:middle}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]):hover::after,#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]:hover::after{opacity:1;width:20px}#navbar a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]){background-color:rgb(41, 152, 217)!important;border-color:rgba(41, 152, 217, 0.62)!important;margin-left:8px!important}#navbar li.navbar-link>a[href=\"https://photon.codes/contact\"]{background-color:rgb(0, 0, 0)!important;border-color:rgba(255, 255, 255, 0.62)!important}nav[aria-label=\"Mobile menu\"] a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]){margin-left:0!important}nav[aria-label=\"Mobile menu\"] a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"])::before{display:none}#navbar li.navbar-link:has(>a[href=\"https://photon.codes/contact\"]){position:fixed!important;right:calc(28px + 111px + 8px)!important;top:0!important;height:56px!important;display:flex!important;align-items:center!important;border:none!important;background:transparent!important;padding:0!important;margin:0!important;z-index:10;transition:right 0.25s ease!important}#navbar:has(a:is([href^=\"https://app.photon.codes\"],[href^=\"https://app.beta.photon.codes\"]):hover) li.navbar-link:has(>a[href=\"https://photon.codes/contact\"]){right:calc(28px + 111px + 8px + 24px)!important}nav[aria-label=\"Mobile menu\"] li.navbar-link:has(>a[href=\"https://photon.codes/contact\"]){position:static!important;top:auto!important;right:auto!important;transform:none!important}div:has(>#chat-assistant-sheet){margin-top:56px!important;height:calc(100vh - 56px)!important;top:56px!important}.pt-catalogue{--pt-line: rgba(0, 0, 0, 0.12);--pt-line-soft: rgba(0, 0, 0, 0.07);--pt-header-bg: rgba(255, 255, 255, 0.92);--pt-4xx: rgb(146, 93, 10);--pt-5xx: rgb(176, 42, 42);--pt-accent: rgb(23, 122, 176)}html.dark .pt-catalogue{--pt-line: rgba(255, 255, 255, 0.14);--pt-line-soft: rgba(255, 255, 255, 0.08);--pt-header-bg: rgba(20, 20, 20, 0.85);--pt-4xx: rgb(217, 152, 41);--pt-5xx: rgb(217, 84, 84);--pt-accent: rgb(71, 198, 237)}.pt-controls{display:flex;gap:8px;margin:1rem 0 0.75rem;flex-wrap:wrap}.pt-search{flex:1 1 20rem;min-width:0}.pt-search,.pt-group{padding:7px 11px;border-radius:8px;border:1px solid var(--pt-line);background:transparent;color:inherit;font-size:0.875rem}.pt-search:focus,.pt-group:focus{outline:none;border-color:var(--pt-accent)}.pt-group{cursor:pointer}.pt-catalogue{width:100%}.pt-scroll{overflow-x:auto;border:1px solid var(--pt-line);border-radius:8px}.pt-table{width:100%;border-collapse:collapse;font-size:0.875rem;margin:0}.pt-table th,.pt-table td{text-align:left;padding:8px 12px;vertical-align:top;border-bottom:1px solid var(--pt-line-soft)}.pt-table tbody tr:last-child td{border-bottom:none}.pt-table th{position:sticky;top:0;z-index:1;font-weight:500;white-space:nowrap;background:var(--pt-header-bg)}.pt-sortable{cursor:pointer;user-select:none}.pt-arrow{display:inline-block;width:1em;opacity:0.7}.pt-table code{white-space:nowrap;font-size:0.8125rem}.pt-table th:nth-child(1),.pt-table th:nth-child(2),.pt-table th:nth-child(3){width:1%;white-space:nowrap}.pt-4xx{color:var(--pt-4xx)}.pt-5xx{color:var(--pt-5xx)}.pt-meta{opacity:0.7}.pt-target td{background:color-mix(in srgb, var(--pt-accent) 14%, transparent)}.pt-target td:first-child{box-shadow:inset 2px 0 0 var(--pt-accent)}.pt-count,.pt-empty{font-size:0.8125rem;opacity:0.65;margin-top:0.6rem}.pt-row{scroll-margin-top:96px}:root{--docs-stable-icon: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%203a6%206%200%200%200-6%208l-6%206a2.8%202.8%200%200%200%204%204l6-6a6%206%200%200%200%208-6l-4%203-5-5%203-4Z%22%2F%3E%3C%2Fsvg%3E\");--docs-beta-icon: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203h6m-5%200v6l-5.5%209.4A1.7%201.7%200%200%200%206%2021h12a1.7%201.7%200%200%200%201.5-2.6L14%209V3M8%2014h8%22%2F%3E%3C%2Fsvg%3E\")}[data-component-part=\"version-select-trigger\"],[data-component-part=\"version-select-item\"]:nth-child(1){--docs-version-icon: var(--docs-stable-icon)}html:is([data-current-path=\"/beta\"],[data-current-path^=\"/beta/\"]) [data-component-part=\"version-select-trigger\"],[data-component-part=\"version-select-item\"]:nth-child(2){--docs-version-icon: var(--docs-beta-icon)}[data-component-part=\"version-select-trigger\"]::before,[data-component-part=\"version-select-item\"]::before{content:\"\";display:block;flex:0 0 1rem;width:1rem;height:1rem;background-color:currentColor;mask:var(--docs-version-icon) center / contain no-repeat}html[data-current-path=\"/beta/changelog\"] #content-area{--content-width: 44rem}"}],"page":{"pagePath":"beta/get-started/voice","slug":"/beta/get-started/voice","pageMetadata":{"title":"Build a voice agent","sidebarTitle":"Voice","description":"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.","href":"/beta/get-started/voice"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Frame,Heading,Note,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Beta is a preview.`}),` The Beta (2.0) platform does not have all the features\nof `,_jsx(_components.a,{href:`/spectrum-ts/introduction`,children:`Stable`}),` yet. For example, iMessage on Beta\nsupports only text and images, so tapbacks, polls, message effects, and voice\nnotes are `,_jsx(_components.a,{href:`/spectrum-ts/providers/imessage/messaging-features`,children:`only on Stable`}),`\nfor now. Use Stable for production agents, and confirm that Beta supports the\nfeatures you need before you buy a plan.`]})}),`\n`,_jsxs(_components.p,{children:[`Call your Photon number and have your agent answer. Photon connects the phone\nnetwork to your agent over `,_jsx(_components.strong,{children:`SIP`}),`; ElevenLabs runs the voice conversation.\nYou do not stream phone audio through the messaging HTTP endpoint.`]}),`\n`,_jsxs(_components.p,{children:[`This walkthrough starts with `,_jsx(_components.strong,{children:`incoming calls only`}),`. You do not need to\nenable outbound calling or generate an outbound SIP password to receive your\nfirst call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A Photon project you can configure, with an eligible `,_jsx(_components.strong,{children:`SMS number`}),` or\n`,_jsx(_components.strong,{children:`dedicated iMessage or WhatsApp number`}),`. Shared lines cannot take calls.`]}),`\n`,_jsx(_components.li,{children:`An ElevenLabs account and a voice agent you can publish.`}),`\n`,_jsx(_components.li,{children:`A separate phone to call your Photon number.`}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Number availability, subscription requirements, and call usage can incur costs.\nReview `,_jsx(_components.a,{href:`/beta/plans-and-billing`,children:`plans and billing`}),` and the purchase confirmation\nbefore acquiring a number. If you already have an eligible number, reuse it.`]})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Prepare an agent that can hold a conversation`,children:[_jsxs(_components.p,{children:[`In ElevenLabs, create an agent using its\n`,_jsx(_components.a,{href:`https://elevenlabs.io/docs/eleven-agents/quickstart`,children:`agent quickstart`}),`.\nChoose its voice, set a first message such as `,_jsx(_components.strong,{children:`Hello, I’m your test agent.\nWhat would you like to try?`}),`, and give it a small job, such as answering\nquestions about a fictional coffee shop.`]}),_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:`Preview`}),` in the agent editor. Ask a question, hear its response,\nand publish the version you want callers to reach. Fix the agent here\nbefore troubleshooting the phone connection.`]})]}),_jsxs(Step,{title:`Find your Photon number and its Voice profile`,children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.a,{href:`https://app.beta.photon.codes/project/platforms/voice`,children:`Voice`}),` in your Photon project. Find your number under\n`,_jsx(_components.strong,{children:`Lines`}),`. If it is missing, confirm it is voice-capable; a shared iMessage\nassignment is not an eligible number.`]}),_jsxs(_components.p,{children:[`If there is no default profile, select `,_jsx(_components.strong,{children:`Set up default`}),`, choose `,_jsx(_components.strong,{children:`SIP`}),`,\nand select `,_jsx(_components.strong,{children:`Create profile`}),`. If your number already uses a profile, open\nthat profile instead.`]}),_jsx(Frame,{caption:`Create the default SIP profile before adding other profiles. Dashboard preview with sample data.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=dcb4a82a93f232297a5cc2f788635a98`,alt:`Photon Create the default profile form with SIP selected and Create profile available.`,\"data-og-width\":`720`,width:`720`,\"data-og-height\":`292`,height:`292`,\"data-path\":`beta/images/get-started/voice-create-profile.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=280\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=fbdd18a9501742d711ac325a521a0c90 280w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=560\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=1a3d5f78ab243362cfc82cede9106e65 560w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=840\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=2f4f23d6ba16dd679c4f754ccd6c3068 840w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=9df064978a6fc96e1cf40cf7de5a67cf 1100w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=eb5e1d2de87a247f768e0ea582ff140d 1650w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-create-profile.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=e92329024d12512e12f02881fe4dc8db 2500w`})}),_jsxs(_components.p,{children:[`The default applies to numbers without an additional profile. An\nadditional profile affects only numbers assigned to it. Check the number’s\nassignment and the profile’s `,_jsx(_components.strong,{children:`Lines`}),` count before editing: the change\naffects new calls on every line using that profile.`]})]}),_jsxs(Step,{title:`Import the number into ElevenLabs`,children:[_jsxs(_components.p,{children:[`In ElevenLabs, open `,_jsx(_components.strong,{children:`Deploy → Phone Numbers`}),`, select `,_jsx(_components.strong,{children:`Import number`}),`,\nthen `,_jsx(_components.strong,{children:`From SIP Trunk`}),`. Enter a label you recognize and your Photon\nnumber in international format, including `,_jsx(_components.code,{children:`+`}),` and the country code.`]}),_jsxs(_components.p,{children:[`Configure `,_jsx(_components.strong,{children:`Inbound Configuration`}),` for the calls arriving from Photon.\nUse `,_jsx(_components.strong,{children:`Allowed`}),` for media encryption to match Photon’s `,_jsx(_components.strong,{children:`Auto`}),` setting.\nIf you enable inbound SIP authentication in ElevenLabs, save that\nusername and password: you must enter the same pair in Photon next.`]}),_jsxs(_components.p,{children:[`These are `,_jsx(_components.strong,{children:`ElevenLabs inbound credentials`}),`, not a Photon API key or a\nPhoton outbound SIP password. Leave outbound configuration disabled for\nthis incoming-only test.`]}),_jsxs(_components.p,{children:[`Save the imported number, then select your published agent in its\n`,_jsx(_components.strong,{children:`Agent`}),` dropdown. If `,_jsx(_components.strong,{children:`Branch`}),` appears, choose the version or traffic\nsplit you intend callers to reach. A number with `,_jsx(_components.strong,{children:`No agent`}),` will not\nrun your conversation.`]}),_jsxs(_components.p,{children:[`For the provider’s current import fields and security options, see\n`,_jsx(_components.a,{href:`https://elevenlabs.io/docs/eleven-agents/phone-numbers/sip-trunking`,children:`ElevenLabs SIP trunking`}),`.`]})]}),_jsxs(Step,{title:`Point Photon at the agent's SIP destination`,children:[_jsxs(_components.p,{children:[`Return to the Photon Voice profile used by the number. Under `,_jsx(_components.strong,{children:`Inbound\ncalls`}),`, select `,_jsx(_components.strong,{children:`Enable inbound`}),` if needed. Configure:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Value for this ElevenLabs connection`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`SIP address`}),` when enabling, or `,_jsx(_components.strong,{children:`Destination`}),` when editing`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sips:sip.rtc.elevenlabs.io:5061`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Transport`})}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`TLS`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SIP credentials`}),_jsx(_components.td,{children:`The inbound username and password configured in ElevenLabs, if required there. Otherwise leave them unset.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Media encryption`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Auto`}),`, paired with `,_jsx(_components.strong,{children:`Allowed`}),` in ElevenLabs for this initial test.`]})]})]})]}),_jsx(Frame,{caption:`The ElevenLabs receiving destination with TLS selected. Dashboard preview; a saved address alone does not verify call delivery.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=efd9023809c3a7d9f0351c0e09ef7c41`,alt:`Photon Inbound calls destination set to sips:sip.rtc.elevenlabs.io:5061 with TLS selected.`,\"data-og-width\":`720`,width:`720`,\"data-og-height\":`222`,height:`222`,\"data-path\":`beta/images/get-started/voice-inbound-destination.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=280\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=12e7276aed3afeb04f7504b43f5b22b0 280w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=560\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=d64d32fbdbcee391c6221f5777fbb5e8 560w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=840\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=657a5a1a5d22a52b28f2e5a4bd62f3d8 840w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=1d92dfa4e1f416499fb421a588c4809d 1100w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=5695aa6f8474cd865acd6ab5698e02ab 1650w, https://mintcdn.com/photon-6d78d87b/ihPr8z21mxGiVObP/beta/images/get-started/voice-inbound-destination.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ihPr8z21mxGiVObP\u0026q=85\u0026s=beb0c3da0f583548eb2628912cf414f5 2500w`})}),_jsxs(_components.p,{children:[`Complete `,_jsx(_components.strong,{children:`Enable inbound`}),` for a new configuration. For an existing\ndestination, edit the field and move focus out of it to save. Confirm the\nsaved address and `,_jsx(_components.strong,{children:`TLS`}),` remain visible. If required by the provider,\nadd its inbound credentials using `,_jsx(_components.strong,{children:`Add`}),` or `,_jsx(_components.strong,{children:`Replace`}),` beside the\ncredential row.`]}),_jsxs(_components.p,{children:[`TLS protects SIP signaling. Requiring encrypted audio is a separate\npolicy; if you require it, enable `,_jsx(_components.strong,{children:`Require encrypted calls`}),` in Photon\nand `,_jsx(_components.strong,{children:`Required`}),` media encryption in ElevenLabs, with matching support in\nboth directions.`]})]}),_jsxs(Step,{title:`Call the agent from another phone`,children:[_jsx(_components.p,{children:`Dial your Photon number. Listen for the greeting, ask your test question,\nand confirm the agent hears you and responds audibly. End the call.`}),_jsxs(_components.p,{children:[`In Photon, check `,_jsx(_components.strong,{children:`Voice → Recent calls`}),` for the attempt and its final\nstatus. In ElevenLabs, check the conversation for the selected agent.\nA saved SIP destination is not proof of a working call: verify audio in\n`,_jsx(_components.strong,{children:`both directions`}),` and that the call ends normally.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`read-the-configuration-from-your-application`,children:`Read the configuration from your application`}),`\n`,_jsxs(_components.p,{children:[`The voice conversation runs in the provider, but you can inspect its Photon\nrouting with any published API client. Complete\n`,_jsx(_components.a,{href:`/beta/get-started/project`,children:`project setup`}),` with `,_jsx(_components.code,{children:`platforms:read`}),`, copy the\n`,_jsx(_components.strong,{children:`Profile id`}),` from this Voice profile, and set:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PHOTON_VOICE_PROFILE_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pho_vpf_REPLACE_WITH_YOUR_PROFILE_ID\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Save the example as `,_jsx(_components.code,{children:`voice.ts`}),`, `,_jsx(_components.code,{children:`voice.py`}),`, `,_jsx(_components.code,{children:`src/main.rs`}),`, or `,_jsx(_components.code,{children:`main.go`}),` in the\ndirectory you prepared in project setup. These are `,_jsx(_components.strong,{children:`API-client calls`}),`, not\naudio streaming or a replacement for your provider’s agent code.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`20`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Photon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@photon-ai/api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_PROJECT_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_VOICE_PROFILE_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_PROJECT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_VOICE_PROFILE_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set PHOTON_API_KEY, PHOTON_PROJECT_ID, and PHOTON_VOICE_PROFILE_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` photon`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Photon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PHOTON_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` profile`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` photon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platforms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getVoiceProfile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` path:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` PHOTON_PROJECT_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`profileId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` PHOTON_VOICE_PROFILE_ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`inbound`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`destinationUri`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Inbound is not enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Could not read the Voice profile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`exitCode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`19`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` photon_api `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Photon, PhotonError`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` photon_api.rpc_generated `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GetVoiceProfileInput`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Photon(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'PHOTON_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` photon:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` profile `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` photon.projects.platforms.get_voice_profile(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GetVoiceProfileInput.model_validate({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_PROJECT_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"profileId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_VOICE_PROFILE_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inbound `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` profile.configuration.inbound`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(inbound.destinationUri `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inbound `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`is`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` not`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Inbound is not enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`except`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PhotonError:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` SystemExit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Could not read the Voice profile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Rust`,numberOfLines:`23`,language:`rust`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` photon_ai_api`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Credential`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PhotonClientBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`SecretString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`#[tokio`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`main]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c(), `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Box`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`dyn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` std`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>> {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PhotonClientBuilder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`credential`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"projectApiKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Credential`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Bearer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`SecretString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`std`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get_voice_profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` std`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_PROJECT_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` std`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`env`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_VOICE_PROFILE_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map_err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Could not read the Voice profile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` match`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`inner`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`configuration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`inbound {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Some`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`inbound`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` println!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`inbound`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`destination_uri),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` println!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Inbound is not enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`36`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`context`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`log`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`os`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` photonapi`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/photon-hq/api/packages/go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` os`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Getenv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Fatalf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` value`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` photonapi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`photonapi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WithAPIKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Platforms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetVoiceProfile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Background`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`photonapi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`GetVoiceProfileParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_PROJECT_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ProfileID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PHOTON_VOICE_PROFILE_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Fatal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Could not read the Voice profile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Inbound`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Inbound is not enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`profile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Inbound`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DestinationURI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice.ts`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` voice.py`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Rust`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cargo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --bin`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` photon-first-agent`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main.go`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`The returned destination confirms what is saved in Photon, not whether the\nremote agent answered. Keep the phone-call check above as your success test.`}),`\n`,_jsx(Heading,{level:`2`,id:`if-the-call-does-not-work`,children:`If the call does not work`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`What you see`}),_jsx(_components.th,{children:`What to check`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Your number is missing from `,_jsx(_components.strong,{children:`Lines`})]}),_jsx(_components.td,{children:`Confirm it is an SMS or dedicated messaging number with voice support, in the selected project. Shared lines do not support Voice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The agent works in Preview but does not answer calls`}),_jsx(_components.td,{children:`Check the imported number, assigned agent and branch, line-to-profile assignment, and Photon’s saved inbound destination.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SIP authentication fails`}),_jsxs(_components.td,{children:[`Use the provider’s `,_jsx(_components.strong,{children:`inbound`}),` credential pair in Photon. A Photon API key or outbound SIP credential cannot replace it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The call connects with no audio or one-way audio`}),_jsx(_components.td,{children:`Compare the platforms’ media-encryption settings and supported codecs. TLS signaling and encrypted audio are separate settings.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Calls reach the wrong agent`}),_jsx(_components.td,{children:`Check whether this line follows the default or an additional profile, and which agent is assigned to the imported number in ElevenLabs.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Keep the attempt time, Photon call ID, provider conversation ID, and any SIP\nerror when asking for help. Do not include passwords or API keys.`}),`\n`,_jsx(Heading,{level:`2`,id:`keep-building`,children:`Keep building`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Add outgoing ElevenLabs calls`,icon:`phone-arrow-up-right`,href:`/beta/cookbooks/voice/elevenlabs`,children:_jsx(_components.p,{children:`Configure the separate Photon outbound credential and test outgoing calls.`})}),_jsx(Card,{title:`Use another voice provider`,icon:`headset`,href:`/beta/cookbooks`,children:_jsx(_components.p,{children:`Follow the LiveKit, Retell, or Twilio walkthrough for your agent stack.`})}),_jsx(Card,{title:`Add iMessage`,icon:`comment`,href:`/beta/get-started/imessage`,children:_jsx(_components.p,{children:`Give your agent a text conversation alongside phone calls.`})}),_jsx(Card,{title:`Add email`,icon:`envelope`,href:`/beta/get-started/email`,children:_jsx(_components.p,{children:`Receive and reply to email on your own domain.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Build a voice agent","sidebarTitle":"Voice","description":"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.","href":"/beta/get-started/voice"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Read the configuration from your application","slug":"read-the-configuration-from-your-application","depth":2,"children":[]},{"title":"If the call does not work","slug":"if-the-call-does-not-work","depth":2,"children":[]},{"title":"Keep building","slug":"keep-building","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/photon-6d78d87b/8a01e78c178e74c3/dashboard-links.js"],"subdomain":"photon-6d78d87b","siteName":"Photon","title":"Build a voice agent - Photon","navMaps":{"firstHrefInVersion":{"Stable":{"href":"/spectrum-ts/introduction","matchLevel":4},"Beta":{"href":"/beta/get-started/voice","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T02:44:44.194Z","originalFileLocation":"beta/get-started/voice.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Photon\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build a voice agent - Photon\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Photon\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://photon.codes/docs/beta/get-started/voice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://photon.codes/docs/images/social-cover.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Build a voice agent - Photon\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://photon.codes/docs/images/social-cover.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/photon-6d78d87b/HRqZH79kgfZw4ONr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Photon\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#47c6ed\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Photon dashboard on a blue background\">\u003cmeta data-mint-head name=\"twitter:image:alt\" content=\"Photon dashboard on a blue background\">\u003clink data-mint-head rel=\"canonical\" href=\"https://photon.codes/docs/beta/get-started/voice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/beta/get-started/voice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://photon.codes/#organization\",\"name\":\"Photon\",\"url\":\"https://photon.codes\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/photon-6d78d87b/hMh2hcolREhyGomA/logo/light.svg?fit=max\u0026auto=format\u0026n=hMh2hcolREhyGomA\u0026q=85\u0026s=11512a078b26743f3341822f7095a71d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://photon.codes/docs#website\",\"name\":\"Photon\",\"url\":\"https://photon.codes/docs\",\"publisher\":{\"@id\":\"https://photon.codes/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://photon.codes/docs/beta/get-started/voice#webpage\",\"url\":\"https://photon.codes/docs/beta/get-started/voice\",\"name\":\"Build a voice agent\",\"description\":\"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\",\"dateModified\":\"2026-11-12T02:44:44.194Z\",\"isPartOf\":{\"@id\":\"https://photon.codes/docs#website\"},\"breadcrumb\":{\"@id\":\"https://photon.codes/docs/beta/get-started/voice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://photon.codes/docs/beta/get-started/voice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://photon.codes/docs/beta\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build a voice agent\",\"item\":\"https://photon.codes/docs/beta/get-started/voice\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://photon.codes/docs/beta/get-started/voice#article\",\"headline\":\"Build a voice agent\",\"name\":\"Build a voice agent\",\"description\":\"Connect a Photon number to an ElevenLabs voice agent over SIP and verify your first incoming call.\",\"url\":\"https://photon.codes/docs/beta/get-started/voice\",\"mainEntityOfPage\":{\"@id\":\"https://photon.codes/docs/beta/get-started/voice#webpage\"},\"image\":\"https://photon.codes/docs/images/social-cover.png\",\"dateModified\":\"2026-11-12T02:44:44.194Z\",\"publisher\":{\"@id\":\"https://photon.codes/#organization\"},\"isPartOf\":{\"@id\":\"https://photon.codes/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Photon\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Photon\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/beta/get-started/voice.md","siteName":"Photon","nav":{"global":null,"versions":[{"version":"Stable","default":true,"pages":[{"title":"Stable","href":"/spectrum-ts/introduction"}]},{"version":"Beta","tag":"Preview","tabs":[{"tab":"Overview","pages":[{"title":"Photon","href":"/beta/photon"},{"group":"Get started","pages":[{"title":"Get started","sidebarTitle":"Introduction","href":"/beta/index"},{"title":"Set up your project","href":"/beta/get-started/project"},{"title":"Build an iMessage agent","sidebarTitle":"iMessage","href":"/beta/get-started/imessage"},{"title":"Build an email agent","sidebarTitle":"Email","description":"Connect your domain, configure sending and receiving DNS, and reply to your first email with code.","href":"/beta/get-started/email"},{"title":"Build a voice agent","sidebarTitle":"Voice","href":"/beta/get-started/voice"}]},{"group":"Message Delivery","pages":[{"title":"Webhook","description":"Receive project events over HTTPS and verify them with Standard Webhooks.","href":"/beta/message-delivery/webhook"},{"title":"WebSocket","href":"/beta/message-delivery/websocket"}]},{"group":"Integrations","pages":[{"title":"Chat SDK","href":"/beta/integrations/chat-sdk"}]},{"group":"Apps","pages":[{"title":"Build a Photon App","href":"/beta/apps/overview"},{"title":"Register an App","href":"/beta/apps/register"},{"title":"Install an App","href":"/beta/apps/install"},{"title":"Receive events and call APIs","href":"/beta/apps/webhooks"},{"title":"Permissions and lifecycle","href":"/beta/apps/permissions"},{"title":"Run a local App","href":"/beta/apps/quickstart"}]},{"group":"AI tools","pages":[{"title":"Photon MCP server","sidebarTitle":"MCP server","href":"/beta/ai-tools/mcp"}]},{"group":"Plans and billing","pages":[{"title":"Plans","href":"/beta/plans-and-billing"},{"title":"Billing","href":"/beta/billing"},{"title":"Invoices and payments","href":"/beta/invoices-and-payments"}]},{"group":"Security","pages":[{"title":"Harden your organization","href":"/beta/security/hardening"},{"title":"Single sign-on (SSO)","href":"/beta/sso"},{"title":"Photon support access","href":"/beta/security/support-access"}]}]},{"tab":"Messaging","pages":[{"title":"Messaging","href":"/beta/messaging"}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/beta/cookbooks"}]},{"tab":"API Client","pages":[{"title":"API Client","href":"/beta/api-client"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/beta/cli"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/beta/api-reference"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/beta/changelog"}]}],"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://photon.codes/blog"},{"anchor":"Community","icon":{"style":"brands","name":"discord","library":"fontawesome"},"href":"https://discord.gg/4mr54mqQN"},{"anchor":"Status","icon":{"name":"monitor-waveform","library":"lucide"},"href":"https://status.photon.codes"}]}}]},"basePath":"","title":"Build a voice agent - Photon","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BI-0LlZX.js","DynamicMarkdown-JYyBNlrJ.js","zoom-image-lightbox-hIK1nklX.js","lightbox-handle-r17bVUz3.js"]}