Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.
Your own voice platform (PBX, SBC or contact centre) talks to Ringg over standard , with no telephony provider in between: you keep your carrier and numbers, and Ringg supplies the agent that handles the conversation (bring your own telephony). A trunk works in two directions:
Inbound: your switch sends an INVITE to Ringg. Ringg answers, picks the agent and runs the conversation.
Outbound: Ringg sends an INVITE to your trunk, and your platform routes the call to the customer.
Enterprise workspaces configure SIP trunks themselves: Numbers → Add number, select SIP, then open Configure provider (the gear) to reach the Configure SIP Trunks panel. With no trunk yet, the panel opens on the Add form. SIP isn’t offered on the Saudi Arabia or UAE regional dashboards; there, and for other workspaces, contact Ringg.
Every trunk field, saving, and the trunk appearing in the list
1
Add a trunk
In Configure SIP Trunks, select Add and fill in the trunk:
Field
Shown for
Notes
Name
All
Required.
Direction
All
Inbound (default), Outbound or Both.
Inbound sources
Inbound, Both
Public IPv4 addresses or CIDR blocks, /18 or narrower, that your INVITEs come from. Add at least one. A range that overlaps another trunk’s is refused.
Outbound target
Outbound, Both
host:port where Ringg sends INVITEs. The port is required.
Tech prefix
Outbound, Both
Optional. Prepended to the dialled number; 1–16 characters (A–Z, 0–9, #, *).
Strip digits
Outbound, Both
Optional. Removes this many leading characters (0–20) from the dialled number; the + counts as one.
Transport
All
UDP (default), TCP or TLS.
Authentication
All
Off by default. See below.
A trunk with direction Both: inbound sources, outbound target, tech prefix, strip digits
With Authentication on, choose the Auth mode: Register (periodic REGISTER to your platform; needs direction Outbound or Both) or Digest (answers 401 challenges on outbound INVITEs). Then enter Username, Password and optionally Realm (defaults to the outbound host). Register also takes Expires (seconds), 60 to 86400 (default 3600), and Register delay (seconds), 0 to 3600 (default 0).
The Authentication fields for Register mode
2
Save
”SIP trunk created successfully.” appears and the trunk is listed. Use the pencil to edit it or the trash icon to delete it.
sip:sip.ringg.ai:5060 UDP or TCPsips:sip.ringg.ai:5061 TLS
Use sip.ringg.ai as the destination in your trunk configuration. Ringg shares the underlying ingress and media IP addresses with you during onboarding, for your firewall and ACL rules.Media encryption follows the signalling transport, and is not configured separately. Connect over TLS on 5061 and the media is negotiated as SDES-SRTP (RTP/SAVP) using the AES_CM_128_HMAC_SHA1_80 cipher suite. Connect over UDP or TCP on 5060 and the media is plain RTP. If you require encrypted media, use TLS. There is no option to run SRTP over a plaintext signalling transport.
For TLS, always connect to sips:sip.ringg.ai:5061 rather than to the IP address. The certificate is issued for the hostname sip.ringg.ai, so a client that connects by IP and validates the certificate will fail on a hostname mismatch.
Media is bridged on the same address as signalling.
Setting
Value
RTP IP
Shared during onboarding
RTP ports
10000 to 60000 UDP
Encryption
SDES-SRTP on TLS trunks, plain RTP on UDP and TCP trunks
The most common cause of a connected call with no audio is a firewall that permits SIP on 5060 but blocks the RTP range. Allow UDP 10000-60000 in both directions to the Ringg media addresses before testing.
Ringg supports RFC 4028 session timers with a minimum Session-Expires of 1800 seconds. A shorter value is rejected with 422 Session Interval Too Small. Either raise the value on your side or omit the header.
Ringg terminates the SIP leg, bridges the audio into the AI bot engine, and runs the conversation using the agent configuration resolved from the call. If the agent decides to hand the call to a human, Ringg sends a SIP REFER back to your platform.
Ringg authenticates inbound calls by source IP. Send Ringg the signalling IP or CIDR your platform originates from, and it is added to the inbound ACL.Ringg accepts public IPv4 addresses and CIDR blocks up to /18; anything broader, IPv6 and private ranges are rejected. If your carrier publishes a wider egress pool, send the specific ranges you originate from.
Ringg resolves the agent in this order: X-Agent-ID first, then X-CLIENT-ID, then the dialled number.
Method
Use it when
X-Agent-ID
Your platform already knows which agent should handle the call. Ringg routes straight to it and skips every lookup.
X-CLIENT-ID
You registered the caller ahead of time as an inbound callee. Ringg uses the agent and variables stored on that record.
Dialled number
Neither header is present. Ringg takes the number from the To header or Request-URI and routes by that number’s configuration in your workspace (Attach a number).
Every key becomes available in the agent’s system prompt and intro message as @{{key}}:
System prompt: You are speaking to @{{customer_name}} about account @{{account_id}}.Intro message: Hello @{{customer_name}}, this is Ringg calling about your loan of @{{loan_amount}}.
Keep values short and avoid characters that need escaping in a SIP header. & and = are the separators in X-Custom-Vars, so a value containing either does not parse.
Genesys Cloud BYOC trunks do not generally send X-Custom-Vars. They carry call context in the standard RFC 7433 User-to-User header instead, and Ringg supports that natively.
Keep the UUI payload under roughly 150 bytes: send identifiers such as a ticket or conversation ID rather than free text, and look up the detail on your side after the transfer completes.
UUI content is hex encoded, so every byte of payload becomes two characters on the wire; a 200 byte payload is a 400 character header. On transfer that header travels inside the Refer-To URI of the REFER, and a large UUI can push the REFER past the 1500 byte MTU into IP fragmentation. Some SBCs and firewalls silently drop fragments, and the transfer fails with no useful error.
For outbound calls, Ringg originates the INVITE toward your platform from a fixed set of source addresses. Ringg provides these during onboarding, and you allow them in your inbound firewall and SIP ACL.
IP based is the simplest and recommended where your platform supports it.
Mode
How it works
IP based
You allowlist the Ringg source addresses on your side; no credentials are exchanged.
Digest
Your platform challenges the INVITE with 401 or 407 and Ringg answers with the username and password you supply.
REGISTER
Ringg registers to your platform on an interval with the credentials you supply, and your platform routes calls to that registration.
With digest or register, send the exact realm your platform challenges with when it differs from its hostname. A realm mismatch makes registration or authentication fail silently and retry indefinitely, with no calls connecting.
When the AI agent needs to hand the call to a human or another destination, Ringg sends a SIP REFER on the existing dialog. Your platform performs the actual transfer.
Many platforms send their own BYE to release the Ringg leg as soon as they accept the REFER. Ringg does not treat this as an error.
A UUI received on the inbound call travels on the Refer-To URI (keep it small). If your transfer destinations carry large UUI payloads, prefer TCP or TLS for the trunk: UDP requests above roughly 1300 bytes are prone to fragmentation, which some networks drop.
An inbound callee is a record you register with Ringg ahead of time: when this person calls in, use this agent and start the conversation already knowing these facts about them. Use it when your platform cannot attach per-customer context to every INVITE: upload the context once, keyed by the caller’s identifier, and at call time send only X-CLIENT-ID.Each record stores:
The user_id that X-CLIENT-ID is matched against, usually the caller’s number
The agent_id that should handle the call
Any custom variables to inject into the prompt and intro message
Records are upserted: uploading a user_id that already exists overwrites its configuration, so you can re-upload the full list on a schedule. Transliteration runs only when the request carries agent_id.The endpoints below live under https://prod-api.ringg.ai/ca/api/v0 and take your workspace API key in the X-API-KEY header on its own; a request that also carries an Authorization header is rejected. The key identifies the workspace, so no workspace ID is needed.
The mapping key is the Ringg field name, the value is your CSV column heading:
column_mapping entry
Reads CSV column
Becomes Ringg field
Used in the agent as
"user_id": "phone"
phone
user_id
matched against X-CLIENT-ID
"callee_name": "name"
name
callee_name
@{{callee_name}}
"account_id": "acc_no"
acc_no
account_id
@{{account_id}}
Your CSV headings can be named anything; only the left side of the mapping has to match the variable names your agent expects. transliterate_fields matches on those same left-side names: with the mapping above, transliterating the customer’s name means passing ["callee_name"], not ["name"]. A value that matches no variable name is silently ignored.
For outbound, what Ringg needs from you: trunk host, port, transport and authentication, with the exact realm for digest or register
Whether the agent needs to transfer calls, and the destination to transfer to
How you will pass context: X-Custom-Vars, or the User-to-User header if you are on Genesys Cloud
Ringg confirms the allowlist entry and returns your trunk configuration with the addresses for your firewall.
2
Apply your firewall rules
Point your trunk at sip.ringg.ai and allow the addresses Ringg provided on the signalling and RTP ports, in both directions.
3
Decide routing, context and transfer
Pick how the agent is chosen and how context is passed. If the agent will hand off to a human, confirm your platform accepts REFER and agree the destination.
4
Run a test call
Place a call in each enabled direction.
Two-way audio, the right agent answers, injected variables appear in the conversation, and the transfer lands. The call is in Logs.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ringg AI","description":"Build AI agents that make and answer phone calls, talk on your website and chat on WhatsApp, then run them from the Ringg AI dashboard or REST API.","colors":{"primary":"#0A0A0B","light":"#FFFFFF","dark":"#0A0A0B"},"logo":{"light":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/logo/light.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=053f22dbaf5140cd8e5dadb1d4d057cd","dark":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/logo/dark.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=cf9075384ec572e1a19b939d5a8674af","href":"https://www.ringg.ai"},"favicon":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/favicon.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=e612fcf76df43d6468baa340dc3fde50","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]},"mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://prod-api.ringg.ai/ca/api/v0"}},"appearance":{"default":"dark"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"/resources/learn/all-lessons","label":"Learn"},{"href":"mailto:admin@ringg.ai","label":"Contact us"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.ringg.ai/dashboard"}},"footer":{"socials":{"x":"https://x.com/ringg_ai","linkedin":"https://www.linkedin.com/company/ringg","youtube":"https://www.youtube.com/@RinggAI","instagram":"https://www.instagram.com/ringg_ai","discord":"https://discord.gg/YuEnb8Vsca"},"links":[{"header":"For AI agents","items":[{"label":"llms.txt","href":"https://docs.ringg.ai/llms.txt"},{"label":"skill.md","href":"https://docs.ringg.ai/skill.md"},{"label":"OpenAPI spec","href":"https://docs.ringg.ai/api-reference/openapi.json"},{"label":"MCP server","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]}]},"search":{"prompt":"Search the docs"},"seo":{"metatags":{"canonical":"https://docs.ringg.ai","og:site_name":"Ringg AI Docs","twitter:site":"@ringg_ai"},"organization":{"id":"https://www.ringg.ai/#organization","legalName":"Stoic AI Private Limited","url":"https://www.ringg.ai","logo":"https://assets.ringg.ai/images/logo/logo.svg","sameAs":["https://x.com/ringg_ai","https://www.linkedin.com/company/ringg","https://www.youtube.com/@RinggAI","https://www.instagram.com/ringg_ai","https://discord.gg/YuEnb8Vsca"]}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"errors":{"404":{"redirect":false,"title":"This page doesn't exist","description":"It may have moved in the docs rebuild. The suggestions below usually have it; otherwise start from [the introduction](/get-started/ringg-ai) or search above."}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","download-spec"],"display":"header"},"markdown":{"instructions":["To search or read these docs, connect the Ringg docs MCP server at https://docs.ringg.ai/mcp (no key needed; tools search_ringg_ai and query_docs_filesystem_ringg_ai) instead of browsing pages one by one. Setup for each client: https://docs.ringg.ai/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants.md","The dashboard labels agents \"Assistants\"; these docs say \"agent\". Both mean the same object, identified by agent_id.","API base URL: https://prod-api.ringg.ai/ca/api/v0. Send the workspace API key in the X-API-KEY header, from server-side code only.","Placing a call dials a real phone number and spends credits. Confirm the number with the user before calling.","To act on a Ringg workspace (place calls, edit agents, read transcripts), use the separate Ringg workspace MCP server at https://mcp.ringg.ai/mcp: https://docs.ringg.ai/resources/mcp-server/workspace-mcp-server/overview.md"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ringgai-0da73d20","hasAudioNarration":false,"actualSubdomain":"ringgai-0da73d20","customDomains":["docs.ringg.ai"],"gitSource":{"type":"github","owner":"stonkr","repo":"ringg-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6adb52e21a579503f2299e23","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Documentation","count":90},{"language":"default","tag":"API reference","count":52},{"language":"default","tag":"Build agents","count":37},{"language":"default","tag":"Resources","count":34},{"language":"default","tag":"Learn","count":27},{"language":"default","tag":"Inventory","count":23},{"language":"default","tag":"Deploy","count":22},{"language":"default","tag":"Customize agent behaviour","count":19},{"language":"default","tag":"Agents","count":17},{"language":"default","tag":"Calling","count":15}],"searchSettings":{"showContentSnippets":true,"maxResults":8}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img.nav-logo{height:1.375rem!important;width:auto!important}.figure-card{display:flex;flex-direction:column;margin:0.5rem 0;overflow:hidden;border:1px solid rgb(10 10 11 / 0.08);border-radius:1rem;background:#ffffff;text-decoration:none!important;transition:border-color 150ms}.figure-card:hover{border-color:rgb(10 10 11 / 0.2)}.dark .figure-card{border-color:rgb(255 255 255 / 0.08);background:rgb(var(--background-dark))}.dark .figure-card:hover{border-color:rgb(255 255 255 / 0.2)}.figure-card-panel{display:flex;justify-content:center;height:12rem;margin:0.375rem 0.375rem 0;border-radius:0.75rem;-webkit-mask-image:linear-gradient(to bottom, #000 62%, transparent);mask-image:linear-gradient(to bottom, #000 62%, transparent);background:#f6f6f7 url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='256' fill='none' stroke='%230a0a0b' stroke-opacity='0.03' stroke-width='1.5'%3E%3Ccircle cx='32' cy='32' r='25'/%3E%3Ccircle cx='96' cy='32' r='25'/%3E%3Crect x='135' y='7' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='32' r='25'/%3E%3Ccircle cx='288' cy='32' r='25'/%3E%3Ccircle cx='352' cy='32' r='25'/%3E%3Ccircle cx='32' cy='96' r='25'/%3E%3Ccircle cx='96' cy='96' r='25'/%3E%3Ccircle cx='160' cy='96' r='25'/%3E%3Ccircle cx='224' cy='96' r='25'/%3E%3Ccircle cx='288' cy='96' r='25'/%3E%3Ccircle cx='352' cy='96' r='25'/%3E%3Ccircle cx='32' cy='160' r='25'/%3E%3Crect x='71' y='135' width='50' height='50' rx='8'/%3E%3Ccircle cx='160' cy='160' r='25'/%3E%3Ccircle cx='224' cy='160' r='25'/%3E%3Crect x='263' y='135' width='50' height='50' rx='8'/%3E%3Crect x='327' y='135' width='50' height='50' rx='8'/%3E%3Crect x='7' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='96' cy='224' r='25'/%3E%3Crect x='135' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='224' r='25'/%3E%3Crect x='263' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='352' cy='224' r='25'/%3E%3C/svg%3E\") center / 192px 128px}.dark .figure-card-panel{background:#0f0f11 url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='256' fill='none' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1.5'%3E%3Ccircle cx='32' cy='32' r='25'/%3E%3Ccircle cx='96' cy='32' r='25'/%3E%3Crect x='135' y='7' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='32' r='25'/%3E%3Ccircle cx='288' cy='32' r='25'/%3E%3Ccircle cx='352' cy='32' r='25'/%3E%3Ccircle cx='32' cy='96' r='25'/%3E%3Ccircle cx='96' cy='96' r='25'/%3E%3Ccircle cx='160' cy='96' r='25'/%3E%3Ccircle cx='224' cy='96' r='25'/%3E%3Ccircle cx='288' cy='96' r='25'/%3E%3Ccircle cx='352' cy='96' r='25'/%3E%3Ccircle cx='32' cy='160' r='25'/%3E%3Crect x='71' y='135' width='50' height='50' rx='8'/%3E%3Ccircle cx='160' cy='160' r='25'/%3E%3Ccircle cx='224' cy='160' r='25'/%3E%3Crect x='263' y='135' width='50' height='50' rx='8'/%3E%3Crect x='327' y='135' width='50' height='50' rx='8'/%3E%3Crect x='7' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='96' cy='224' r='25'/%3E%3Crect x='135' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='224' r='25'/%3E%3Crect x='263' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='352' cy='224' r='25'/%3E%3C/svg%3E\") center / 192px 128px}.figure-card-panel{--hairline-plate: #f6f6f7}.dark .figure-card-panel{--hairline-plate: #0f0f11}.figure-card-panel>[data-hairline]{width:13.75rem}.figure-card-text{flex:1;padding:0.25rem 1.25rem 1.25rem}.figure-card-title{font-weight:600;color:rgb(17 24 39)}.dark .figure-card-title{color:rgb(255 255 255)}.figure-card-body{margin-top:0.25rem;font-size:0.9375rem;line-height:1.6;color:rgb(75 85 99)}.dark .figure-card-body{color:rgb(161 161 170)}"}],"page":{"pagePath":"documentation/inventory/phone-numbers/your-own-telephony/sip-trunking","slug":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking","pageMetadata":{"title":"SIP trunking","sidebarTitle":"SIP trunking","description":"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.","og:title":"Connect a SIP trunk to Ringg AI","href":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking"},"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 your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,Check,CodeBlock,CodeGroup,Columns,Frame,Heading,Mermaid,OptimizedImage,Step,Steps,Table,Tooltip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Your own voice platform (PBX, SBC or contact centre) talks to Ringg over standard `,_jsx(Tooltip,{tip:`Session Initiation Protocol: the standard for connecting voice calls between phone systems.`,children:`SIP`}),`, with no telephony provider in between: you keep your carrier and numbers, and Ringg supplies the agent that handles the conversation (`,_jsx(_components.a,{href:`/documentation/inventory/phone-numbers/your-own-telephony/byot-overview`,children:`bring your own telephony`}),`). A trunk works in two directions:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inbound`}),`: your switch sends an INVITE to Ringg. Ringg answers, picks the agent and runs the conversation.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Outbound`}),`: Ringg sends an INVITE to your trunk, and your platform routes the call to the customer.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`An agent`,icon:`bot`,href:`/documentation/build-agents/agents/create-an-agent`,horizontal:true,children:_jsx(_components.p,{children:`The agent that answers inbound INVITEs or places outbound calls over the trunk.`})}),_jsx(Card,{title:`An API key`,icon:`key`,href:`/documentation/manage-account/api-key`,horizontal:true,children:_jsx(_components.p,{children:`Optional: only to register inbound callees by API.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-each-side-provides`,children:`What each side provides`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Ringg gives you`}),_jsx(_components.th,{children:`You give Ringg`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A SIP ingress IP and ports`}),_jsx(_components.td,{children:`Your signalling IP or CIDR, so we can allowlist it`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`An RTP media range to allow through your firewall`}),_jsx(_components.td,{children:`Your trunk host and port for outbound calls`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agent routing by header or dialled number`}),_jsx(_components.td,{children:`Optional SIP auth credentials, if you do not use IP auth`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Context injection through SIP headers`}),_jsx(_components.td,{children:`The transfer destination, if you use call transfer`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`set-up-the-trunk-in-the-dashboard`,children:`Set up the trunk in the dashboard`}),`\n`,_jsxs(_components.p,{children:[`Enterprise workspaces configure SIP trunks themselves: `,_jsx(_components.strong,{children:`Numbers → Add number`}),`, select `,_jsx(_components.strong,{children:`SIP`}),`, then open `,_jsx(_components.strong,{children:`Configure provider`}),` (the gear) to reach the `,_jsx(_components.strong,{children:`Configure SIP Trunks`}),` panel. With no trunk yet, the panel opens on the Add form. `,_jsx(_components.strong,{children:`SIP`}),` isn’t offered on the Saudi Arabia or UAE regional dashboards; there, and for other workspaces, `,_jsx(_components.a,{href:`#onboarding-checklist`,children:`contact Ringg`}),`.`]}),`\n`,_jsx(Frame,{caption:`Every trunk field, saving, and the trunk appearing in the list`,children:_jsx(`video`,{alt:`Every trunk field, saving, and the trunk appearing in the list`,\"aria-label\":`Every trunk field, saving, and the trunk appearing in the list`,controls:true,muted:true,playsInline:true,className:`mint-w-full mint-rounded-xl`,style:{aspectRatio:`16 / 10`},preload:`metadata`,controlsList:`nodownload noremoteplayback`,poster:`/media/telephony-sip/poster.webp`,children:_jsx(`source`,{src:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/video.webm?fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=032e6c31e2761f84cd4f439aae09e492`,type:`video/webm; codecs=\"av01.0.09M.08\"`,\"data-path\":`media/telephony-sip/video.webm`})})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Add a trunk`,children:[_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Configure SIP Trunks`}),`, select `,_jsx(_components.strong,{children:`Add`}),` and fill in the trunk:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Shown for`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Name`})}),_jsx(_components.td,{children:`All`}),_jsx(_components.td,{children:`Required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Direction`})}),_jsx(_components.td,{children:`All`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Inbound`}),` (default), `,_jsx(_components.strong,{children:`Outbound`}),` or `,_jsx(_components.strong,{children:`Both`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Inbound sources`})}),_jsx(_components.td,{children:`Inbound, Both`}),_jsxs(_components.td,{children:[`Public IPv4 addresses or CIDR blocks, `,_jsx(_components.code,{children:`/18`}),` or narrower, that your INVITEs come from. Add at least one. A range that overlaps another trunk’s is refused.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Outbound target`})}),_jsx(_components.td,{children:`Outbound, Both`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`host:port`}),` where Ringg sends INVITEs. The port is required.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Tech prefix`})}),_jsx(_components.td,{children:`Outbound, Both`}),_jsxs(_components.td,{children:[`Optional. Prepended to the dialled number; 1–16 characters (A–Z, 0–9, `,_jsx(_components.code,{children:`#`}),`, `,_jsx(_components.code,{children:`*`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Strip digits`})}),_jsx(_components.td,{children:`Outbound, Both`}),_jsxs(_components.td,{children:[`Optional. Removes this many leading characters (0–20) from the dialled number; the `,_jsx(_components.code,{children:`+`}),` counts as one.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Transport`})}),_jsx(_components.td,{children:`All`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`UDP`}),` (default), `,_jsx(_components.strong,{children:`TCP`}),` or `,_jsx(_components.strong,{children:`TLS`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Authentication`})}),_jsx(_components.td,{children:`All`}),_jsx(_components.td,{children:`Off by default. See below.`})]})]})]}),_jsx(Frame,{caption:`A trunk with direction Both: inbound sources, outbound target, tech prefix, strip digits`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=6ac325ce78f53238321d67ca5a15aad5`,alt:`SIP trunk form with Name Acme PBX Mumbai, Direction Both, an inbound source chip 203.0.113.0/28, Outbound target sip.acme-lending.example:5061, Tech prefix 9 and Strip digits 1`,\"data-og-width\":`1444`,width:`1444`,\"data-og-height\":`1268`,height:`1268`,\"data-path\":`media/telephony-sip/trunk-form.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=280\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=eccafb9e90fa59c40f477392aaba2dd3 280w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=560\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=19dfed6c4800f2fdc44ecb5faeec45df 560w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=840\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=4c2c1fa346c78c992cae01c3aea6f5cd 840w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=477b369b48869b452faa3c2beedb06ba 1100w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=0b47e2ad844d1390555cf78326a6a7ec 1650w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-form.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=290600526207eba50292fd86f53b4123 2500w`})}),_jsxs(_components.p,{children:[`With `,_jsx(_components.strong,{children:`Authentication`}),` on, choose the `,_jsx(_components.strong,{children:`Auth mode`}),`: `,_jsx(_components.strong,{children:`Register`}),` (periodic REGISTER to your platform; needs direction `,_jsx(_components.strong,{children:`Outbound`}),` or `,_jsx(_components.strong,{children:`Both`}),`) or `,_jsx(_components.strong,{children:`Digest`}),` (answers 401 challenges on outbound INVITEs). Then enter `,_jsx(_components.strong,{children:`Username`}),`, `,_jsx(_components.strong,{children:`Password`}),` and optionally `,_jsx(_components.strong,{children:`Realm`}),` (defaults to the outbound host). Register also takes `,_jsx(_components.strong,{children:`Expires (seconds)`}),`, 60 to 86400 (default 3600), and `,_jsx(_components.strong,{children:`Register delay (seconds)`}),`, 0 to 3600 (default 0).`]}),_jsx(Frame,{caption:`The Authentication fields for Register mode`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=42f4033e997a877b4a9ff32a64bafbfe`,alt:`Authentication section with Auth mode Register, Username ringg-trunk, a masked Password, Realm sip.acme-lending.example, Expires 1,800 seconds and Register delay 5 seconds`,\"data-og-width\":`1444`,width:`1444`,\"data-og-height\":`1268`,height:`1268`,\"data-path\":`media/telephony-sip/trunk-auth.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=280\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=65125656b7cbe28e963316deeb7ea409 280w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=560\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=5f99b0f8f5456598a85b803db6b5bd94 560w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=840\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=bf81b920435ea0de65e3dfd73b06f88c 840w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=4e6c956607feedb60634824b146ecbb5 1100w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=dc469d1e22e4842001c67c99202f6359 1650w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-auth.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=80c75e8122d212bea371f321a4c43c4e 2500w`})})]}),_jsxs(Step,{title:`Save`,children:[_jsx(Check,{children:`”SIP trunk created successfully.” appears and the trunk is listed. Use the pencil to edit it or the trash icon to delete it.`}),_jsx(Frame,{caption:`Configure SIP Trunks after saving`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=8710314cca2f6d5a45691e2cc43c9af9`,alt:`SIP trunks table listing Genesys Cloud Pune and Acme PBX Mumbai with their created dates and edit and delete buttons`,\"data-og-width\":`1472`,width:`1472`,\"data-og-height\":`406`,height:`406`,\"data-path\":`media/telephony-sip/trunk-list.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=280\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=8aaba012f22d126240c548a48674d4dc 280w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=560\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=4af3b04d6d5879d1ee9aa8ca195af58e 560w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=840\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=5037e4cf05b5d3e4dca0f76f3303f659 840w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=bc3f256118e03d1cfabce91d9da897e8 1100w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=712ad408afbfd8a4d12da2dcf2cb4305 1650w, https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/telephony-sip/trunk-list.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=XUOcNie5hfK3q--Y\u0026q=85\u0026s=78ec876f0acec0a3bc487bc5dbb8acf6 2500w`})})]}),_jsx(Step,{title:`Add your numbers`,children:_jsxs(_components.p,{children:[`With the trunk selected in `,_jsx(_components.strong,{children:`Add number`}),`, type your numbers on the `,_jsx(_components.strong,{children:`Add custom`}),` tab. See `,_jsx(_components.a,{href:`/documentation/inventory/phone-numbers/buy-or-import-a-number#add-a-number-by-hand`,children:`Add a number by hand`}),`. Then `,_jsx(_components.a,{href:`/documentation/inventory/phone-numbers/inbound-agent-number`,children:`attach them to agents`}),` or use them as caller ID.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`network-requirements`,children:`Network requirements`}),`\n`,_jsx(Heading,{level:`3`,id:`sip-signalling`,children:`SIP signalling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Media`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SIP domain (FQDN)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sip.ringg.ai`})}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`UDP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5060`})}),_jsx(_components.td,{children:`Plain RTP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5060`})}),_jsx(_components.td,{children:`Plain RTP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TLS`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5061`})}),_jsx(_components.td,{children:`SRTP`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`sip:sip.ringg.ai:5060 UDP or TCP`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`sips:sip.ringg.ai:5061 TLS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`sip.ringg.ai`}),` as the destination in your trunk configuration. Ringg shares the underlying ingress and media IP addresses with you during onboarding, for your firewall and ACL rules.`]}),`\n`,_jsxs(_components.p,{children:[`Media encryption follows the signalling transport, and is not configured separately. Connect over TLS on 5061 and the media is negotiated as SDES-SRTP (`,_jsx(_components.code,{children:`RTP/SAVP`}),`) using the `,_jsx(_components.code,{children:`AES_CM_128_HMAC_SHA1_80`}),` cipher suite. Connect over UDP or TCP on 5060 and the media is plain RTP. If you require encrypted media, use TLS. There is no option to run SRTP over a plaintext signalling transport.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For TLS, always connect to `,_jsx(_components.code,{children:`sips:sip.ringg.ai:5061`}),` rather than to the IP address. The certificate is issued for the hostname `,_jsx(_components.code,{children:`sip.ringg.ai`}),`, so a client that connects by IP and validates the certificate will fail on a hostname mismatch.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`rtp-media`,children:`RTP media`}),`\n`,_jsx(_components.p,{children:`Media is bridged on the same address as signalling.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`RTP IP`}),_jsx(_components.td,{children:`Shared during onboarding`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`RTP ports`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`10000`}),` to `,_jsx(_components.code,{children:`60000`}),` UDP`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Encryption`}),_jsx(_components.td,{children:`SDES-SRTP on TLS trunks, plain RTP on UDP and TCP trunks`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The most common cause of a connected call with no audio is a firewall that permits SIP on 5060 but blocks the RTP range. Allow UDP `,_jsx(_components.code,{children:`10000-60000`}),` in both directions to the Ringg media addresses before testing.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`codecs`,children:`Codecs`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Codec`}),_jsx(_components.th,{children:`Support`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`G.711 u-law (PCMU)`}),_jsx(_components.td,{children:`Supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`G.711 a-law (PCMA)`}),_jsx(_components.td,{children:`Supported`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`session-timers`,children:`Session timers`}),`\n`,_jsxs(_components.p,{children:[`Ringg supports RFC 4028 session timers with a minimum `,_jsx(_components.code,{children:`Session-Expires`}),` of `,_jsx(_components.strong,{children:`1800 seconds`}),`. A shorter value is rejected with `,_jsx(_components.code,{children:`422 Session Interval Too Small`}),`. Either raise the value on your side or omit the header.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-a-call-flows`,children:`How a call flows`}),`\n`,_jsx(Mermaid,{chart:`flowchart TD\n A[Your switch\u003cbr/>PBX or SBC] -->|INVITE| B[Ringg SIP ingress\u003cbr/>sip.ringg.ai]\n B --> C[Ringg media layer]\n C --> D[AI bot engine]\n D --> E[(Agent config\u003cbr/>prompt, voice, tools)]\n C -.->|RTP audio| A\n D -.->|REFER on transfer| A`}),`\n`,_jsx(_components.p,{children:`Ringg terminates the SIP leg, bridges the audio into the AI bot engine, and runs the conversation using the agent configuration resolved from the call. If the agent decides to hand the call to a human, Ringg sends a SIP REFER back to your platform.`}),`\n`,_jsx(Heading,{level:`2`,id:`inbound-your-platform-to-ringg`,children:`Inbound: your platform to Ringg`}),`\n`,_jsx(Heading,{level:`3`,id:`allowlisting`,children:`Allowlisting`}),`\n`,_jsxs(_components.p,{children:[`Ringg authenticates inbound calls by `,_jsx(_components.strong,{children:`source IP`}),`. Send Ringg the signalling IP or CIDR your platform originates from, and it is added to the inbound ACL.`]}),`\n`,_jsxs(_components.p,{children:[`Ringg accepts public IPv4 addresses and CIDR blocks up to `,_jsx(_components.code,{children:`/18`}),`; anything broader, IPv6 and private ranges are rejected. If your carrier publishes a wider egress pool, send the specific ranges you originate from.`]}),`\n`,_jsx(Heading,{level:`3`,id:`custom-sip-headers`,children:`Custom SIP headers`}),`\n`,_jsx(_components.p,{children:`Ringg reads these headers from the inbound INVITE. All are optional except where your chosen routing method requires them.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Purpose`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Agent-ID`})}),_jsx(_components.td,{children:`Route directly to a specific AI agent`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`11111111-2222-4333-8444-555555555555`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Workspace-ID`})}),_jsx(_components.td,{children:`Identifies your Ringg workspace`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-CLIENT-ID`})}),_jsx(_components.td,{children:`Per-user lookup against your registered callees`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`+919XXXXXXXXX`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Custom-Vars`})}),_jsx(_components.td,{children:`Key and value pairs injected into the conversation`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`customer_name=Ravi Kumar\u0026account_id=ACC-9910`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Call-ID`})}),_jsx(_components.td,{children:`Your own call identifier, used for tracking instead of the SIP Call-ID`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`enterprise-call-001`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`User-to-User`})}),_jsx(_components.td,{children:`RFC 7433 UUI payload, used by Genesys and similar platforms`}),_jsxs(_components.td,{children:[`See `,_jsx(_components.a,{href:`#genesys-cloud-byoc`,children:`Genesys Cloud`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Example INVITE:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`INVITE sip:+919XXXXXXXXX@sip.ringg.ai SIP/2.0`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-Agent-ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 11111111-2222-4333-8444-555555555555`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-Workspace-ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-Custom-Vars`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` customer_name=Ravi Kumar\u0026account_id=ACC-9910`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-Call-ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` enterprise-call-001`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`choosing-which-agent-answers`,children:`Choosing which agent answers`}),`\n`,_jsxs(_components.p,{children:[`Ringg resolves the agent in this order: `,_jsx(_components.code,{children:`X-Agent-ID`}),` first, then `,_jsx(_components.code,{children:`X-CLIENT-ID`}),`, then the dialled number.`]}),`\n`,_jsx(Mermaid,{chart:`flowchart TD\n A[Inbound INVITE] --> B{X-Agent-ID present?}\n B -->|Yes| C[Route to that agent]\n B -->|No| D{X-CLIENT-ID present?}\n D -->|Yes| E[Look up registered callee\u003cbr/>use its agent and variables]\n D -->|No| F[Look up the dialled number\u003cbr/>from the To header]\n F --> G[Route via number configuration]\n E --> C\n G --> C`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Use it when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Agent-ID`})}),_jsx(_components.td,{children:`Your platform already knows which agent should handle the call. Ringg routes straight to it and skips every lookup.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-CLIENT-ID`})}),_jsxs(_components.td,{children:[`You registered the caller ahead of time as an `,_jsx(_components.a,{href:`#inbound-callees`,children:`inbound callee`}),`. Ringg uses the agent and variables stored on that record.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Dialled number`}),_jsxs(_components.td,{children:[`Neither header is present. Ringg takes the number from the To header or Request-URI and routes by that number’s configuration in your workspace (`,_jsx(_components.a,{href:`/documentation/inventory/phone-numbers/inbound-agent-number`,children:`Attach a number`}),`).`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`passing-context-into-the-conversation`,children:`Passing context into the conversation`}),`\n`,_jsx(_components.p,{children:`Context lets the agent open the call already knowing who it is speaking to, instead of asking.`}),`\n`,_jsx(Heading,{level:`3`,id:`x-custom-vars`,children:`X-Custom-Vars`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`X-Custom-Vars`}),` carries an `,_jsx(_components.code,{children:`\u0026`}),` separated list of `,_jsx(_components.code,{children:`key=value`}),` pairs:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`X-Custom-Vars`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` customer_name=Ravi Kumar\u0026account_id=ACC-9910\u0026loan_amount=50000`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`using-the-values`,children:`Using the values`}),`\n`,_jsxs(_components.p,{children:[`Every key becomes available in the agent’s system prompt and intro message as `,_jsx(_components.code,{children:`@{{key}}`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`System prompt:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` You are speaking to @{{customer_name}} about account @{{account_id}}.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Intro message:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Hello @{{customer_name}}, this is Ringg calling about your loan of @{{loan_amount}}.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Keep values short and avoid characters that need escaping in a SIP header. `,_jsx(_components.code,{children:`\u0026`}),` and `,_jsx(_components.code,{children:`=`}),` are the separators in `,_jsx(_components.code,{children:`X-Custom-Vars`}),`, so a value containing either does not parse.`]}),`\n`,_jsx(Heading,{level:`2`,id:`genesys-cloud-byoc`,children:`Genesys Cloud (BYOC)`}),`\n`,_jsxs(_components.p,{children:[`Genesys Cloud BYOC trunks do not generally send `,_jsx(_components.code,{children:`X-Custom-Vars`}),`. They carry call context in the standard RFC 7433 `,_jsx(_components.strong,{children:`User-to-User`}),` header instead, and Ringg supports that natively.`]}),`\n`,_jsx(Heading,{level:`3`,id:`the-header`,children:`The header`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`User-to-User`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 00637573746f6d65725f6e616d653d5261...;encoding=hex;purpose=isdn-uui;content=isdn-uui`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`encoding`,children:`Encoding`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Detail`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Encoding`}),_jsxs(_components.td,{children:[`Hex, declared with `,_jsx(_components.code,{children:`encoding=hex`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Leading byte`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`00`}),` protocol discriminator, stripped by Ringg`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Payload`}),_jsxs(_components.td,{children:[`Once decoded, an `,_jsx(_components.code,{children:`\u0026`}),` separated `,_jsx(_components.code,{children:`key=value`}),` string, the same shape as `,_jsx(_components.code,{children:`X-Custom-Vars`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Multiple headers`}),_jsxs(_components.td,{children:[`Ringg reads up to 8 `,_jsx(_components.code,{children:`User-to-User`}),` header instances and concatenates them`]})]})]})]}),`\n`,_jsx(_components.p,{children:`A decoded payload looks like this:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`customer_name=Ravi Kumar\u0026account_id=ACC-9910\u0026ticket_id=TKT-4471\u0026lang=en-in\u0026priority=high`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`what-ringg-does-with-it`,children:`What Ringg does with it`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Reads every `,_jsx(_components.code,{children:`User-to-User`}),` header on the inbound INVITE.`]}),`\n`,_jsxs(_components.li,{children:[`Decodes the hex payload and removes the leading `,_jsx(_components.code,{children:`00`}),` discriminator.`]}),`\n`,_jsxs(_components.li,{children:[`Makes each decoded key a conversation variable, usable as `,_jsx(_components.code,{children:`@{{key}}`}),` exactly like `,_jsx(_components.code,{children:`X-Custom-Vars`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`On transfer, puts the UUI back on the `,_jsx(_components.code,{children:`Refer-To`}),` URI so your platform keeps the same context on the onward leg.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`keep-the-uui-small`,children:`Keep the UUI small`}),`\n`,_jsx(_components.p,{children:`Keep the UUI payload under roughly 150 bytes: send identifiers such as a ticket or conversation ID rather than free text, and look up the detail on your side after the transfer completes.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`UUI content is hex encoded, so every byte of payload becomes two characters on the wire; a 200 byte payload is a 400 character header. On transfer that header travels inside the `,_jsx(_components.code,{children:`Refer-To`}),` URI of the REFER, and a large UUI can push the REFER past the 1500 byte MTU into IP fragmentation. Some SBCs and firewalls silently drop fragments, and the transfer fails with no useful error.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`outbound-ringg-to-your-trunk`,children:`Outbound: Ringg to your trunk`}),`\n`,_jsx(_components.p,{children:`For outbound calls, Ringg originates the INVITE toward your platform from a fixed set of source addresses. Ringg provides these during onboarding, and you allow them in your inbound firewall and SIP ACL.`}),`\n`,_jsx(Heading,{level:`3`,id:`what-ringg-needs-from-you`,children:`What Ringg needs from you`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Public host or IP`}),_jsx(_components.td,{children:`Required`}),_jsx(_components.td,{children:`The address Ringg sends the INVITE to`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Port`}),_jsx(_components.td,{children:`Required`}),_jsxs(_components.td,{children:[`Typically `,_jsx(_components.code,{children:`5060`}),`, or `,_jsx(_components.code,{children:`5061`}),` for TLS`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Transport`}),_jsx(_components.td,{children:`Required`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`udp`}),`, `,_jsx(_components.code,{children:`tcp`}),`, or `,_jsx(_components.code,{children:`tls`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Auth method`}),_jsx(_components.td,{children:`Optional`}),_jsx(_components.td,{children:`IP based, digest, or register. See below`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Username and password`}),_jsx(_components.td,{children:`Only for digest or register`}),_jsx(_components.td,{children:`Not needed for IP based auth`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Realm`}),_jsx(_components.td,{children:`Optional`}),_jsx(_components.td,{children:`Only if your platform challenges with a realm different from its host`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication-modes`,children:`Authentication modes`}),`\n`,_jsx(_components.p,{children:`IP based is the simplest and recommended where your platform supports it.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`How it works`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`IP based`}),_jsx(_components.td,{children:`You allowlist the Ringg source addresses on your side; no credentials are exchanged.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Digest`}),_jsxs(_components.td,{children:[`Your platform challenges the INVITE with `,_jsx(_components.code,{children:`401`}),` or `,_jsx(_components.code,{children:`407`}),` and Ringg answers with the username and password you supply.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`REGISTER`}),_jsx(_components.td,{children:`Ringg registers to your platform on an interval with the credentials you supply, and your platform routes calls to that registration.`})]})]})]}),`\n`,_jsx(_components.p,{children:`With digest or register, send the exact realm your platform challenges with when it differs from its hostname. A realm mismatch makes registration or authentication fail silently and retry indefinitely, with no calls connecting.`}),`\n`,_jsx(Heading,{level:`2`,id:`call-transfer-with-sip-refer`,children:`Call transfer with SIP REFER`}),`\n`,_jsxs(_components.p,{children:[`When the AI agent needs to hand the call to a human or another destination, Ringg sends a `,_jsx(_components.strong,{children:`SIP REFER`}),` on the existing dialog. Your platform performs the actual transfer.`]}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant C as Caller\n participant P as Your platform\n participant R as Ringg\n participant H as Human agent\n\n C->>P: Call\n P->>R: INVITE (with context headers)\n R-->>P: 200 OK\n Note over R: AI agent handles the conversation\n R->>P: REFER (Refer-To: destination, UUI preserved)\n P-->>R: 202 Accepted\n P->>H: New call leg to destination\n P->>R: BYE (Ringg leg released)\n Note over C,H: Caller and human agent connected`}),`\n`,_jsx(Heading,{level:`3`,id:`what-your-platform-must-support`,children:`What your platform must support`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Requirement`}),_jsx(_components.th,{children:`Detail`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`REFER`}),` method`]}),_jsxs(_components.td,{children:[`Advertise `,_jsx(_components.code,{children:`REFER`}),` in your `,_jsx(_components.code,{children:`Allow`}),` header`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Refer-To`})}),_jsx(_components.td,{children:`Accept the destination Ringg supplies, as a SIP or SIPS URI`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Referred-By`})}),_jsx(_components.td,{children:`Sent by Ringg per RFC 3892`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`202 Accepted`})}),_jsx(_components.td,{children:`Expected response to the REFER`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`behaviour-to-expect`,children:`Behaviour to expect`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Many platforms send their own BYE to release the Ringg leg as soon as they accept the REFER. Ringg does not treat this as an error.`}),`\n`,_jsxs(_components.li,{children:[`A UUI received on the inbound call travels on the `,_jsx(_components.code,{children:`Refer-To`}),` URI (`,_jsx(_components.a,{href:`#keep-the-uui-small`,children:`keep it small`}),`). If your transfer destinations carry large UUI payloads, prefer TCP or TLS for the trunk: UDP requests above roughly 1300 bytes are prone to fragmentation, which some networks drop.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`inbound-callees`,children:`Inbound callees`}),`\n`,_jsxs(_components.p,{children:[`An `,_jsx(_components.strong,{children:`inbound callee`}),` is a record you register with Ringg ahead of time: when this person calls in, use this agent and start the conversation already knowing these facts about them. Use it when your platform cannot attach per-customer context to every INVITE: upload the context once, keyed by the caller’s identifier, and at call time send only `,_jsx(_components.code,{children:`X-CLIENT-ID`}),`.`]}),`\n`,_jsx(_components.p,{children:`Each record stores:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`user_id`}),` that `,_jsx(_components.code,{children:`X-CLIENT-ID`}),` is matched against, usually the caller’s number`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`agent_id`}),` that should handle the call`]}),`\n`,_jsx(_components.li,{children:`Any custom variables to inject into the prompt and intro message`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Records are upserted: uploading a `,_jsx(_components.code,{children:`user_id`}),` that already exists overwrites its configuration, so you can re-upload the full list on a schedule. Transliteration runs only when the request carries `,_jsx(_components.code,{children:`agent_id`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The endpoints below live under `,_jsx(_components.code,{children:`https://prod-api.ringg.ai/ca/api/v0`}),` and take your workspace `,_jsx(_components.a,{href:`/documentation/manage-account/api-key`,children:`API key`}),` in the `,_jsx(_components.code,{children:`X-API-KEY`}),` header on its own; a request that also carries an `,_jsx(_components.code,{children:`Authorization`}),` header is rejected. The key identifies the workspace, so no workspace ID is needed.`]}),`\n`,_jsx(Heading,{level:`3`,id:`upload-via-csv`,children:`Upload via CSV`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /ca/api/v0/inbound-callees/upload`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-API-KEY: $RINGG_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: multipart/form-data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`csv_file`})}),_jsx(_components.td,{children:`file`}),_jsx(_components.td,{children:`Required`}),_jsx(_components.td,{children:`CSV file containing the callee rows`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`column_mapping`})}),_jsx(_components.td,{children:`JSON string`}),_jsx(_components.td,{children:`Required`}),_jsxs(_components.td,{children:[`Maps Ringg field names to your CSV column names, `,_jsx(_components.code,{children:`{\"ringg_field\": \"csv_column\"}`}),`. Must include `,_jsx(_components.code,{children:`user_id`}),` (`,_jsx(_components.a,{href:`#upload-via-csv`,children:`worked example below`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`Optional`}),_jsx(_components.td,{children:`Assigns one agent to every callee in the upload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transliterate_callee_name`})}),_jsx(_components.td,{children:`bool`}),_jsx(_components.td,{children:`Optional`}),_jsxs(_components.td,{children:[`Transliterates `,_jsx(_components.code,{children:`callee_name`}),` into the agent’s language`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transliterate_fields`})}),_jsx(_components.td,{children:`JSON array`}),_jsx(_components.td,{children:`Optional`}),_jsx(_components.td,{children:`Additional fields to transliterate, by agent variable name`})]})]})]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`callees.csv`,numberOfLines:`3`,language:`csv`,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:`csv`,children:_jsxs(_components.code,{language:`csv`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`phone,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`name,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`acc_no`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`+919XXXXXXXXX,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`Ravi Kumar,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ACC-9910`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`+919YYYYYYYYY,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`Priya Sharma,`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ACC-1122`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Upload`,numberOfLines:`5`,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:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://prod-api.ringg.ai/ca/api/v0/inbound-callees/upload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$RINGG_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"csv_file=@callees.csv\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'column_mapping={\"user_id\":\"phone\",\"callee_name\":\"name\",\"account_id\":\"acc_no\"}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_id=11111111-2222-4333-8444-555555555555\"`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`The mapping key is the Ringg field name, the value is your CSV column heading:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsxs(_components.th,{children:[_jsx(_components.code,{children:`column_mapping`}),` entry`]}),_jsx(_components.th,{children:`Reads CSV column`}),_jsx(_components.th,{children:`Becomes Ringg field`}),_jsx(_components.th,{children:`Used in the agent as`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"user_id\": \"phone\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`phone`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`user_id`})}),_jsxs(_components.td,{children:[`matched against `,_jsx(_components.code,{children:`X-CLIENT-ID`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"callee_name\": \"name\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`callee_name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@{{callee_name}}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"account_id\": \"acc_no\"`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`acc_no`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`account_id`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@{{account_id}}`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Your CSV headings can be named anything; only the left side of the mapping has to match the variable names your agent expects. `,_jsx(_components.code,{children:`transliterate_fields`}),` matches on those same left-side names: with the mapping above, transliterating the customer’s name means passing `,_jsx(_components.code,{children:`[\"callee_name\"]`}),`, not `,_jsx(_components.code,{children:`[\"name\"]`}),`. A value that matches no variable name is silently ignored.`]}),`\n`,_jsx(Heading,{level:`3`,id:`upload-via-json`,children:`Upload via JSON`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /ca/api/v0/inbound-callees/upload-json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-API-KEY: $RINGG_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: application/json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`callees`})}),_jsx(_components.td,{children:`array of objects`}),_jsx(_components.td,{children:`Required`}),_jsxs(_components.td,{children:[`Each object needs `,_jsx(_components.code,{children:`user_id`}),`. Every other key becomes a custom variable, stored as a string`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`Optional`}),_jsxs(_components.td,{children:[`Applies to all callees, and overrides any `,_jsx(_components.code,{children:`agent_id`}),` set on a callee object`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transliterate_callee_name`})}),_jsx(_components.td,{children:`bool`}),_jsx(_components.td,{children:`Optional`}),_jsxs(_components.td,{children:[`Transliterates `,_jsx(_components.code,{children:`callee_name`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transliterate_fields`})}),_jsx(_components.td,{children:`array of strings`}),_jsx(_components.td,{children:`Optional`}),_jsxs(_components.td,{children:[`Additional fields to transliterate. Use the `,_jsx(_components.strong,{children:`agent variable names`}),`, the same keys you set on each callee object`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"11111111-2222-4333-8444-555555555555\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callees\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+919XXXXXXXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callee_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ravi Kumar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACC-9910\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loan_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"50000\"`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+919YYYYYYYYY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callee_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Priya Sharma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACC-1122\"`})]}),`\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`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`upload-response`,children:`Upload response`}),`\n`,_jsx(_components.p,{children:`Both endpoints return the same shape:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed_rows\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"line_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_id is required\"`}),_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`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_count`})}),_jsx(_components.td,{children:`Number of records created or updated`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_rows`})}),_jsx(_components.td,{children:`Skipped rows, with a 1 based line number and the reason`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`list-callees`,children:`List callees`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /ca/api/v0/inbound-callees`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-API-KEY: $RINGG_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`int, 1 to 100, default 10`}),_jsx(_components.td,{children:`Page size`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`offset`})}),_jsx(_components.td,{children:`int, default 0`}),_jsx(_components.td,{children:`Page offset`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Filter by exact user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`Filter by agent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`start_date`})}),_jsx(_components.td,{children:`ISO 8601 date, UTC`}),_jsx(_components.td,{children:`Created on or after`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`end_date`})}),_jsx(_components.td,{children:`ISO 8601 date, UTC`}),_jsx(_components.td,{children:`Created on or before`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The response is `,_jsx(_components.code,{children:`{\"data\": [...], \"limit\", \"offset\", \"count\", \"total\"}`}),`; each item has `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`workspace_id`}),`, `,_jsx(_components.code,{children:`user_id`}),`, `,_jsx(_components.code,{children:`agent_id`}),` and `,_jsx(_components.code,{children:`custom_args_values`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Symptom`}),_jsx(_components.th,{children:`Likely cause`}),_jsx(_components.th,{children:`Resolution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`403`}),` or call rejected at Ringg`]}),_jsx(_components.td,{children:`Your signalling IP is not allowlisted`}),_jsx(_components.td,{children:`Send Ringg the exact source IP or CIDR you originate from`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`422 Session Interval Too Small`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Session-Expires`}),` below 1800 s`]}),_jsx(_components.td,{children:`Raise it to 1800 s or more, or omit the header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TLS handshake fails or certificate is rejected`}),_jsx(_components.td,{children:`Connecting to the IP instead of the hostname`}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`sips:sip.ringg.ai:5061`}),`. The certificate is issued for `,_jsx(_components.code,{children:`sip.ringg.ai`}),`, not for the IP`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Call connects but there is no audio`}),_jsx(_components.td,{children:`RTP range blocked`}),_jsxs(_components.td,{children:[`Allow UDP `,_jsx(_components.code,{children:`10000-60000`}),` to and from the Ringg media addresses`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`No audio on a TLS trunk specifically`}),_jsx(_components.td,{children:`SRTP not offered, or an unsupported cipher suite`}),_jsxs(_components.td,{children:[`Ringg negotiates SDES-SRTP with `,_jsx(_components.code,{children:`AES_CM_128_HMAC_SHA1_80`}),`. Confirm your SBC offers `,_jsx(_components.code,{children:`RTP/SAVP`}),` with that suite, and that DTLS is not being forced`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Agent does not answer as expected`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`X-Agent-ID`}),` missing or invalid`]}),_jsx(_components.td,{children:`Confirm the UUID is correct and the agent is published`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Context variables are empty`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`X-Custom-Vars`}),` malformed, or UUI not hex encoded`]}),_jsxs(_components.td,{children:[`Check the `,_jsx(_components.code,{children:`\u0026`}),` and `,_jsx(_components.code,{children:`=`}),` separators, and that `,_jsx(_components.code,{children:`encoding=hex`}),` is present`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Callee lookup fails`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`X-CLIENT-ID`}),` does not match any `,_jsx(_components.code,{children:`user_id`})]}),_jsx(_components.td,{children:`Confirm the number format matches exactly what was uploaded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Transfer never completes`}),_jsx(_components.td,{children:`REFER not supported, or REFER too large and fragmented`}),_jsxs(_components.td,{children:[`Advertise `,_jsx(_components.code,{children:`REFER`}),` in `,_jsx(_components.code,{children:`Allow`}),`, shrink the UUI, and prefer TCP or TLS`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Outbound calls never connect`}),_jsx(_components.td,{children:`Realm mismatch on digest or register auth`}),_jsx(_components.td,{children:`Send Ringg the exact realm your platform challenges with`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`onboarding-checklist`,children:`Onboarding checklist`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Configure the trunk, or contact Ringg`,children:[_jsxs(_components.p,{children:[`Enterprise workspaces `,_jsx(_components.a,{href:`#set-up-the-trunk-in-the-dashboard`,children:`set up the trunk in the dashboard`}),`. Otherwise, email `,_jsx(_components.a,{href:`mailto:admin@ringg.ai`,children:`admin@ringg.ai`}),` requesting a SIP integration, with these details so the trunk can be provisioned in one pass:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Company name and your Ringg workspace`}),`\n`,_jsx(_components.li,{children:`Direction needed: inbound, outbound, or both`}),`\n`,_jsxs(_components.li,{children:[`Your SIP signalling IP or CIDR, for the `,_jsx(_components.a,{href:`#allowlisting`,children:`inbound allowlist`})]}),`\n`,_jsxs(_components.li,{children:[`For outbound, `,_jsx(_components.a,{href:`#what-ringg-needs-from-you`,children:`what Ringg needs from you`}),`: trunk host, port, transport and authentication, with the exact realm for digest or register`]}),`\n`,_jsx(_components.li,{children:`Whether the agent needs to transfer calls, and the destination to transfer to`}),`\n`,_jsxs(_components.li,{children:[`How you will pass context: `,_jsx(_components.code,{children:`X-Custom-Vars`}),`, or the `,_jsx(_components.code,{children:`User-to-User`}),` header if you are on Genesys Cloud`]}),`\n`]}),_jsx(_components.p,{children:`Ringg confirms the allowlist entry and returns your trunk configuration with the addresses for your firewall.`})]}),_jsx(Step,{title:`Apply your firewall rules`,children:_jsxs(_components.p,{children:[`Point your trunk at `,_jsx(_components.code,{children:`sip.ringg.ai`}),` and allow the addresses Ringg provided on the `,_jsx(_components.a,{href:`#network-requirements`,children:`signalling and RTP ports`}),`, in both directions.`]})}),_jsx(Step,{title:`Decide routing, context and transfer`,children:_jsxs(_components.p,{children:[`Pick how the `,_jsx(_components.a,{href:`#choosing-which-agent-answers`,children:`agent is chosen`}),` and how `,_jsx(_components.a,{href:`#passing-context-into-the-conversation`,children:`context is passed`}),`. If the agent will hand off to a human, confirm your platform accepts `,_jsx(_components.a,{href:`#call-transfer-with-sip-refer`,children:`REFER`}),` and agree the destination.`]})}),_jsx(Step,{title:`Run a test call`,children:_jsxs(_components.p,{children:[`Place a call in each enabled direction.\n`,_jsxs(Check,{children:[`Two-way audio, the right agent answers, injected variables appear in the conversation, and the transfer lands. The call is in `,_jsx(_components.a,{href:`/documentation/monitor/logs`,children:`Logs`}),`.`]})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Add the trunk's numbers`,icon:`hash`,href:`/documentation/inventory/phone-numbers/buy-or-import-a-number#add-a-number-by-hand`,children:_jsxs(_components.p,{children:[`Type them in on the `,_jsx(_components.strong,{children:`Add custom`}),` tab.`]})}),_jsx(Card,{title:`Attach a number to an agent`,icon:`phone-incoming`,href:`/documentation/inventory/phone-numbers/inbound-agent-number`,children:_jsx(_components.p,{children:`Route dialled-number calls to an agent.`})})]})]})}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":"SIP trunking","sidebarTitle":"SIP trunking","description":"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.","og:title":"Connect a SIP trunk to Ringg AI","href":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"What each side provides","slug":"what-each-side-provides","depth":2,"children":[]},{"title":"Set up the trunk in the dashboard","slug":"set-up-the-trunk-in-the-dashboard","depth":2,"children":[]},{"title":"Network requirements","slug":"network-requirements","depth":2,"children":[{"title":"SIP signalling","slug":"sip-signalling","depth":3,"children":[]},{"title":"RTP media","slug":"rtp-media","depth":3,"children":[]},{"title":"Codecs","slug":"codecs","depth":3,"children":[]},{"title":"Session timers","slug":"session-timers","depth":3,"children":[]}]},{"title":"How a call flows","slug":"how-a-call-flows","depth":2,"children":[]},{"title":"Inbound: your platform to Ringg","slug":"inbound-your-platform-to-ringg","depth":2,"children":[{"title":"Allowlisting","slug":"allowlisting","depth":3,"children":[]},{"title":"Custom SIP headers","slug":"custom-sip-headers","depth":3,"children":[]},{"title":"Choosing which agent answers","slug":"choosing-which-agent-answers","depth":3,"children":[]}]},{"title":"Passing context into the conversation","slug":"passing-context-into-the-conversation","depth":2,"children":[{"title":"X-Custom-Vars","slug":"x-custom-vars","depth":3,"children":[]},{"title":"Using the values","slug":"using-the-values","depth":3,"children":[]}]},{"title":"Genesys Cloud (BYOC)","slug":"genesys-cloud-byoc","depth":2,"children":[{"title":"The header","slug":"the-header","depth":3,"children":[]},{"title":"Encoding","slug":"encoding","depth":3,"children":[]},{"title":"What Ringg does with it","slug":"what-ringg-does-with-it","depth":3,"children":[]},{"title":"Keep the UUI small","slug":"keep-the-uui-small","depth":3,"children":[]}]},{"title":"Outbound: Ringg to your trunk","slug":"outbound-ringg-to-your-trunk","depth":2,"children":[{"title":"What Ringg needs from you","slug":"what-ringg-needs-from-you","depth":3,"children":[]},{"title":"Authentication modes","slug":"authentication-modes","depth":3,"children":[]}]},{"title":"Call transfer with SIP REFER","slug":"call-transfer-with-sip-refer","depth":2,"children":[{"title":"What your platform must support","slug":"what-your-platform-must-support","depth":3,"children":[]},{"title":"Behaviour to expect","slug":"behaviour-to-expect","depth":3,"children":[]}]},{"title":"Inbound callees","slug":"inbound-callees","depth":2,"children":[{"title":"Upload via CSV","slug":"upload-via-csv","depth":3,"children":[]},{"title":"Upload via JSON","slug":"upload-via-json","depth":3,"children":[]},{"title":"Upload response","slug":"upload-response","depth":3,"children":[]},{"title":"List callees","slug":"list-callees","depth":3,"children":[]}]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Onboarding checklist","slug":"onboarding-checklist","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ringgai-0da73d20/45c33e65ef05fabf/hairline.js"],"dynamicCss":".mint-w-full {\n width: 100%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}","subdomain":"ringgai-0da73d20","siteName":"Ringg AI","title":"Connect a SIP trunk to Ringg AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T09:07:18.124Z","originalFileLocation":"documentation/inventory/phone-numbers/your-own-telephony/sip-trunking.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=\"dark\"}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 your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ringg AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect a SIP trunk to Ringg AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ringg AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ringgai-0da73d20.mintlify.site/_mintlify/api/og/v2?division=Your+own+telephony\u0026amp;title=SIP+trunking\u0026amp;description=Connect+your+SIP+trunk%2C+PBX+or+contact+centre+to+Ringg+AI%3A+trunk+settings%2C+network+and+codecs%2C+agent+routing+headers%2C+context+passing+and+REFER+transfers.\u0026amp;theme=737b8671029ef070100737b1\u0026amp;signature=0a0efab503ccc8920720577b2d7afc01b6f8acbff893c413124717d4ccb7033b\">\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=\"Connect a SIP trunk to Ringg AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ringgai-0da73d20.mintlify.site/_mintlify/api/og/v2?division=Your+own+telephony\u0026amp;title=SIP+trunking\u0026amp;description=Connect+your+SIP+trunk%2C+PBX+or+contact+centre+to+Ringg+AI%3A+trunk+settings%2C+network+and+codecs%2C+agent+routing+headers%2C+context+passing+and+REFER+transfers.\u0026amp;theme=737b8671029ef070100737b1\u0026amp;signature=0a0efab503ccc8920720577b2d7afc01b6f8acbff893c413124717d4ccb7033b\">\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=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ringg AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ringg.ai/#organization\",\"name\":\"Ringg AI\",\"legalName\":\"Stoic AI Private Limited\",\"url\":\"https://www.ringg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.ringg.ai/images/logo/logo.svg\"},\"sameAs\":[\"https://x.com/ringg_ai\",\"https://www.linkedin.com/company/ringg\",\"https://www.youtube.com/@RinggAI\",\"https://www.instagram.com/ringg_ai\",\"https://discord.gg/YuEnb8Vsca\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ringg.ai#website\",\"name\":\"Ringg AI\",\"url\":\"https://docs.ringg.ai\",\"publisher\":{\"@id\":\"https://www.ringg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking#webpage\",\"url\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking\",\"name\":\"SIP trunking\",\"description\":\"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\",\"dateModified\":\"2026-10-12T09:07:18.124Z\",\"isPartOf\":{\"@id\":\"https://docs.ringg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inventory\",\"item\":\"https://docs.ringg.ai/documentation/inventory/knowledge-base\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Phone numbers\",\"item\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Your own telephony\",\"item\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/byot-overview\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"SIP trunking\",\"item\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking#article\",\"headline\":\"SIP trunking\",\"name\":\"SIP trunking\",\"description\":\"Connect your SIP trunk, PBX or contact centre to Ringg AI: trunk settings, network and codecs, agent routing headers, context passing and REFER transfers.\",\"url\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ringg.ai/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking#webpage\"},\"dateModified\":\"2026-10-12T09:07:18.124Z\",\"publisher\":{\"@id\":\"https://www.ringg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ringg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ringg AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ringg AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking.md","siteName":"Ringg AI","nav":{"global":null,"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/get-started/introduction"}]},{"tab":"Documentation","pages":[{"title":"Ringg AI documentation","sidebarTitle":"Introduction","icon":"book-open","href":"/documentation/introduction"},{"group":"Build agents","icon":"bot","pages":[{"group":"Agents","pages":[{"title":"Agent types","sidebarTitle":"Agent types","href":"/documentation/build-agents/agents/agent-types"},{"title":"Create an agent","sidebarTitle":"Create an agent","href":"/documentation/build-agents/agents/create-an-agent"},{"group":"Multi-prompt agents","pages":[{"title":"Multi-prompt agents","sidebarTitle":"Overview","href":"/documentation/build-agents/agents/multi-prompt-agents/overview"},{"title":"Node types and connections","sidebarTitle":"Node types and connections","href":"/documentation/build-agents/agents/multi-prompt-agents/node-types-and-connections"},{"title":"Multi-prompt global settings","sidebarTitle":"Global settings","href":"/documentation/build-agents/agents/multi-prompt-agents/global-settings"},{"title":"Test and convert multi-prompt agents","sidebarTitle":"Test and convert","href":"/documentation/build-agents/agents/multi-prompt-agents/test-and-convert"}]},{"group":"WhatsApp agents","tag":"NEW","pages":[{"title":"WhatsApp agents","sidebarTitle":"Overview","href":"/documentation/build-agents/agents/whatsapp-agents/overview"},{"title":"Create a WhatsApp agent","sidebarTitle":"Create an agent","href":"/documentation/build-agents/agents/whatsapp-agents/create-an-agent"},{"title":"WhatsApp Flows","sidebarTitle":"Flows","href":"/documentation/build-agents/agents/whatsapp-agents/flows"},{"title":"Build WhatsApp Flows in Ringg","sidebarTitle":"Flow builder","href":"/documentation/build-agents/agents/whatsapp-agents/flow-builder"},{"title":"WhatsApp Flows with live data","sidebarTitle":"Flows with live data","href":"/documentation/build-agents/agents/whatsapp-agents/flows-live-data"},{"title":"Live data from your server","sidebarTitle":"Live data from your server","href":"/documentation/build-agents/agents/whatsapp-agents/flows-your-server"}]}]},{"group":"Customize agent behaviour","pages":[{"title":"Agent prompt","sidebarTitle":"Agent prompt","href":"/documentation/build-agents/customize-agent-behaviour/agent-prompt"},{"title":"Voice and language","sidebarTitle":"Voice and language","href":"/documentation/build-agents/customize-agent-behaviour/voice-and-language"},{"title":"Custom variables","sidebarTitle":"Custom variables","href":"/documentation/build-agents/customize-agent-behaviour/custom-variables"},{"title":"Attach a knowledge base","sidebarTitle":"Attach a knowledge base","href":"/documentation/build-agents/customize-agent-behaviour/attach-a-knowledge-base"},{"group":"Tools","pages":[{"title":"Tools","sidebarTitle":"Overview","href":"/documentation/build-agents/customize-agent-behaviour/tools/overview"},{"title":"API tools","sidebarTitle":"API tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools"},{"title":"Integration tools","sidebarTitle":"Integration tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/integration-tools"},{"title":"System tools","sidebarTitle":"System tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/system-tools"},{"title":"Function tools and conditions","sidebarTitle":"Function tools and conditions","href":"/documentation/build-agents/customize-agent-behaviour/tools/function-tools-and-conditions"},{"title":"Post-call tools","sidebarTitle":"Post-call tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/post-call-tools"},{"title":"Workspace tools","sidebarTitle":"Workspace tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/workspace-tools"},{"title":"WhatsApp tools","sidebarTitle":"WhatsApp tools","tag":"NEW","href":"/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools"}]},{"title":"Call settings","sidebarTitle":"Call settings","href":"/documentation/build-agents/customize-agent-behaviour/call-settings"},{"title":"Advanced Analysis","sidebarTitle":"Advanced Analysis","href":"/documentation/build-agents/customize-agent-behaviour/advanced-analysis"},{"title":"Event Subscription","sidebarTitle":"Event Subscription","href":"/documentation/build-agents/customize-agent-behaviour/event-subscription"},{"group":"Webhooks","pages":[{"title":"Webhook setup and errors","sidebarTitle":"Setup and errors","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/setup-and-errors"},{"title":"Call events","sidebarTitle":"Call events","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/call-events"},{"title":"WhatsApp chat events","sidebarTitle":"WhatsApp chat events","tag":"NEW","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events"},{"title":"Webhook field reference","sidebarTitle":"Field reference","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/field-reference"}]}]},{"group":"Test and improve","pages":[{"title":"Test an agent","sidebarTitle":"Test an agent","href":"/documentation/build-agents/test-and-improve/test-an-agent"},{"title":"Drafts and versions","sidebarTitle":"Drafts and versions","href":"/documentation/build-agents/test-and-improve/drafts-and-versions"}]},{"group":"Workflows","pages":[{"title":"Workflows","sidebarTitle":"Overview","href":"/documentation/build-agents/workflows/overview"},{"title":"Build a workflow","sidebarTitle":"Build a workflow","href":"/documentation/build-agents/workflows/build-a-workflow"},{"title":"Test and publish a workflow","sidebarTitle":"Test and publish","href":"/documentation/build-agents/workflows/test-and-publish"},{"title":"Workflow block reference","sidebarTitle":"Block reference","href":"/documentation/build-agents/workflows/block-reference"}]}]},{"group":"Inventory","icon":"package","pages":[{"title":"Knowledge base","sidebarTitle":"Knowledge base","href":"/documentation/inventory/knowledge-base"},{"group":"Tools (integrations)","pages":[{"title":"Connect an app","sidebarTitle":"Connect an app","href":"/documentation/inventory/tools-integrations/connect-an-app"},{"title":"Connect WhatsApp","sidebarTitle":"Connect WhatsApp","tag":"NEW","href":"/documentation/inventory/tools-integrations/connect-whatsapp"}]},{"group":"Phone numbers","pages":[{"title":"Phone numbers","sidebarTitle":"Overview","href":"/documentation/inventory/phone-numbers/overview"},{"title":"Buy or import a number","sidebarTitle":"Buy or import a number","href":"/documentation/inventory/phone-numbers/buy-or-import-a-number"},{"group":"Your own telephony","pages":[{"title":"Bring your own telephony","sidebarTitle":"BYOT overview","description":"Connect your own telephony account (Exotel, Plivo, Twilio, Ozonetel, Vobiz, Tata Tele and more) or a SIP trunk to Ringg AI, then import its numbers.","href":"/documentation/inventory/phone-numbers/your-own-telephony/byot-overview"},{"title":"SIP trunking","sidebarTitle":"SIP trunking","href":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking"},{"title":"Plivo","sidebarTitle":"Plivo","description":"Connect your own Plivo account to Ringg AI with your Auth ID and Auth Token, import or buy Plivo numbers, and use them for inbound and outbound agent calls.","href":"/documentation/inventory/phone-numbers/your-own-telephony/plivo"},{"title":"Exotel","sidebarTitle":"Exotel","href":"/documentation/inventory/phone-numbers/your-own-telephony/exotel"},{"title":"Twilio","sidebarTitle":"Twilio","href":"/documentation/inventory/phone-numbers/your-own-telephony/twilio"},{"title":"Telnyx","sidebarTitle":"Telnyx","href":"/documentation/inventory/phone-numbers/your-own-telephony/telnyx"},{"title":"InTalk","sidebarTitle":"InTalk","href":"/documentation/inventory/phone-numbers/your-own-telephony/intalk"},{"title":"Ameyo","sidebarTitle":"Ameyo","href":"/documentation/inventory/phone-numbers/your-own-telephony/ameyo"},{"title":"Ozonetel","sidebarTitle":"Ozonetel","href":"/documentation/inventory/phone-numbers/your-own-telephony/ozonetel"},{"title":"New provider requirements","sidebarTitle":"New provider requirements","href":"/documentation/inventory/phone-numbers/your-own-telephony/new-provider-requirements"}]},{"title":"Number pools","sidebarTitle":"Number pools","href":"/documentation/inventory/phone-numbers/number-pools"},{"title":"Inbound agent number","sidebarTitle":"Inbound agent number","href":"/documentation/inventory/phone-numbers/inbound-agent-number"}]}]},{"group":"Deploy","icon":"rocket","pages":[{"group":"Campaigns","pages":[{"title":"Campaigns","sidebarTitle":"Overview","href":"/documentation/deploy/campaigns/overview"},{"title":"Create a campaign","sidebarTitle":"Create a campaign","href":"/documentation/deploy/campaigns/create-a-campaign"},{"title":"Workflow campaign","sidebarTitle":"Workflow campaign","href":"/documentation/deploy/campaigns/workflow-campaign"},{"title":"Campaigns by API","sidebarTitle":"Campaigns by API","href":"/documentation/deploy/campaigns/campaigns-by-api"},{"title":"Calling list","sidebarTitle":"Calling list","href":"/documentation/deploy/campaigns/calling-list"},{"title":"Manage a campaign","sidebarTitle":"Manage a campaign","href":"/documentation/deploy/campaigns/manage-a-campaign"}]},{"group":"Web and apps","pages":[{"group":"Web widget","pages":[{"title":"Web widget","sidebarTitle":"Overview","href":"/documentation/deploy/web-and-apps/web-widget/overview"},{"title":"Web widget configuration","sidebarTitle":"Configuration","href":"/documentation/deploy/web-and-apps/web-widget/configuration"},{"title":"Web widget events","sidebarTitle":"Events","href":"/documentation/deploy/web-and-apps/web-widget/events"},{"title":"Chat mode","sidebarTitle":"Chat mode","href":"/documentation/deploy/web-and-apps/web-widget/chat-mode"},{"title":"Chat components","sidebarTitle":"Components","href":"/documentation/deploy/web-and-apps/web-widget/components"},{"title":"Chat component data","sidebarTitle":"Data","href":"/documentation/deploy/web-and-apps/web-widget/data"},{"title":"Chat component recipes","sidebarTitle":"Recipes","href":"/documentation/deploy/web-and-apps/web-widget/recipes"},{"title":"Web widget styling","sidebarTitle":"Styling","href":"/documentation/deploy/web-and-apps/web-widget/styling"},{"title":"Web widget launch checklist","sidebarTitle":"Launch checklist","href":"/documentation/deploy/web-and-apps/web-widget/launch-checklist"}]},{"group":"Mobile apps","pages":[{"title":"Mobile app install","sidebarTitle":"Install","href":"/documentation/deploy/web-and-apps/mobile-apps/install"},{"title":"Mobile widget configuration","sidebarTitle":"Configuration","href":"/documentation/deploy/web-and-apps/mobile-apps/configuration"},{"title":"Mobile widget events","sidebarTitle":"Events","href":"/documentation/deploy/web-and-apps/mobile-apps/events"}]}]},{"group":"WhatsApp","tag":"NEW","pages":[{"title":"Start a conversation","sidebarTitle":"Start a conversation","href":"/documentation/deploy/whatsapp/start-a-conversation"},{"title":"WhatsApp Relay","sidebarTitle":"Relay overview","href":"/documentation/deploy/whatsapp/relay-overview"},{"title":"WhatsApp Relay integration guide","sidebarTitle":"Relay integration guide","href":"/documentation/deploy/whatsapp/relay-integration-guide"},{"title":"WhatsApp Relay troubleshooting","sidebarTitle":"Relay troubleshooting","href":"/documentation/deploy/whatsapp/relay-troubleshooting"}]}]},{"group":"Monitor","icon":"chart-line","pages":[{"title":"Logs","sidebarTitle":"Logs","href":"/documentation/monitor/logs"},{"title":"Analytics","sidebarTitle":"Analytics","href":"/documentation/monitor/analytics"},{"title":"Evals","sidebarTitle":"Evals","href":"/documentation/monitor/evals"},{"title":"Alerts","sidebarTitle":"Alerts","href":"/documentation/monitor/alerts"}]},{"group":"Manage account","icon":"settings","pages":[{"title":"Members","sidebarTitle":"Members","href":"/documentation/manage-account/members"},{"title":"API key","sidebarTitle":"API key","href":"/documentation/manage-account/api-key"},{"title":"Billing","sidebarTitle":"Billing","href":"/documentation/manage-account/billing"},{"title":"Call limits","sidebarTitle":"Call limits","href":"/documentation/manage-account/call-limits"},{"group":"Ringg Spaces","pages":[{"title":"Ringg Spaces","sidebarTitle":"Overview","href":"/documentation/manage-account/ringg-spaces/overview"},{"title":"Create and manage Ringg Spaces","sidebarTitle":"Create and manage","href":"/documentation/manage-account/ringg-spaces/create-and-manage"},{"title":"Ringg Spaces by API","sidebarTitle":"Ringg Spaces by API","href":"/documentation/manage-account/ringg-spaces/ringg-spaces-by-api"}]}]},{"group":"Ringg Labs","icon":"flask-conical","pages":[{"group":"Parrot STT","pages":[{"title":"Parrot STT Python SDK","sidebarTitle":"Python SDK","href":"/documentation/ringg-labs/parrot-stt/python-sdk"},{"title":"Parrot STT on TrueFoundry","sidebarTitle":"TrueFoundry","href":"/documentation/ringg-labs/parrot-stt/truefoundry"}]}]}]},{"tab":"Analytics platform","pages":[{"title":"Analytics platform","href":"/analytics-platform/introduction"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction/quickstart"}]},{"tab":"Resources","menu":[{"item":"MCP server","description":"Let Claude, ChatGPT or Cursor work in your workspace, or search these docs","pages":[{"title":"MCP server","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]},{"item":"Learn","description":"Lessons that build a payment-reminder system end to end","pages":[{"title":"Learn","href":"/resources/learn/all-lessons"}]},{"item":"Security","description":"How Ringg protects your data, and what to do on your side","pages":[{"title":"Security","href":"/resources/security/security"}]},{"item":"Changelog","description":"New features, API changes and new guides","pages":[{"title":"Changelog","href":"/resources/changelog/changelog"}]}],"pages":[{"title":"Resources","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]}]},"basePath":"","title":"Connect a SIP trunk to Ringg AI","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BXrZabKK.js","DynamicMarkdown-CtasenyM.js","zoom-image-lightbox-C5F0mVLH.js","lightbox-handle-r17bVUz3.js"]}