{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/voice-2.0/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"product":"Voice v2 (preview)","type":"markdown"},"seo":{"title":"SIP Interface | Voice API v2 | Sinch","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Voice API v2","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice-2.0/**/*.md","docs/voice-2.0/**/*.yaml"],"excludeFiles":["docs/voice-2.0/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]},{"title":"Number Lookup API","description":"The Number Lookup API is designed to provide in-depth information about phone numbers, helping enterprises enhance their communication strategies and prevent fraud. By identifying the type of phone line (for example, mobile, landline, VoIP) and the associated carrier, the API allows businesses to optimize routing, reduce unnecessary costs, and improve customer engagement.","includeFiles":["docs/number-lookup-api-v2/**/*.md","docs/number-lookup-api-v2/**/*.yaml"],"excludeFiles":["docs/number-lookup-api-v2/index.md"]},{"title":"Functions","description":"Serverless compute for voice and messaging. Deploy your code and Sinch routes live calls and messages to it — no infrastructure to run.","includeFiles":["docs/functions/functions/**/*.md","docs/functions/concepts/**/*.md","docs/functions/reference/**/*.md"],"excludeFiles":["docs/functions/functions/index.md"]},{"title":"CLI","description":"One command line for every Sinch API and the full Functions lifecycle — scaffold, run locally, deploy, and manage.","includeFiles":["docs/functions/cli/**/*.md"],"excludeFiles":["docs/functions/cli/index.md"]}]},"description":"This document provides a overview of Sinch SIP Interface service."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sip-outbound","__idx":0},"children":["SIP Outbound"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Receiving calls from Sinch platform to your SIP infrastructure"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can route any type of call from the Sinch platform to your SIP server."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sip-out.3db8946443d392bebd4406eddf29ed11a41349a2ed5a8112ede0bd7e3d6ea580.c43d86dc.png","alt":"Diagram showing SIP Outbound flow"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There are two options for routing calls: SIP forwarding and Callbacks."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sip-forwarding","__idx":1},"children":["SIP forwarding"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can automatically forward calls to your SIP server using the SIP forwarding option in the Sinch Build Portal (setting available under: Voice and Video >> Apps >> Settings >> Handle call events with >> SIP Forwarding)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To Configure SIP forwarding see below SIP URIs options."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Valid SIP URIs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"> sip:22444032@213.213.1.213\n>\n> sip:22444032@yoursipserver.com\n>\n> sip:22444032@yoursipserver.com:5061\n>\n> sip:22444032@yoursipserver.com:5061;transport=tls - optionally provide transport protocol: udp (default), tcp, or tls\n>\n> sip:{number}@yoursipserver.com - {number} will be replaced by the Inbound Number connected to each call\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"x-headers","__idx":2},"children":["X-headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you want a private header in incoming calls to your SIP infrastructure use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["callHeaders"]}," property in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/voice-2.0/api-reference/svaml#dial"},"children":["dial"]}," action in your callback response."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example of ICE response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"action\": {\n    \"name\": \"connectSip\",\n    \"callHeaders\": [\n      { \"key\": \"X-My-Private-Header-1\", \"value\": \"bar\" },\n      { \"key\": \"X-My-Private-Header-2\", \"value\": \"qux\" }\n    ]\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Please note that SIP header names will be prepended with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-"]},", if missing (for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["My-Private-Header"]}," => ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-My-Private-Header"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Limitations:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The maximum size of private SIP headers is 1024 bytes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Max length of header name is 50 characters"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sip-outbound-example","__idx":3},"children":["SIP Outbound example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example SIP INVITE sent to your SIP infrastructure:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"> Request-Line: INVITE sip:+123456789@52.214.25.57:5060;transport=udp SIP/2.0\n>\n> Via: SIP/2.0/UDP 206.146.136.0:5060;branch=z9hG4bK04d7\n>\n> From: <sip:+46733478561@18.194.168.245>;tag=as386cfb27\n>\n> To: <sip:+123456789@52.214.25.57:5060;transport=udp>\n>\n> Contact: <sip:+46733478561@206.146.136.0;did=27e.fecc2a1>\n>\n> X-My-Header: This is my header\n","lang":"shell"},"children":[]}]},"headings":[{"value":"SIP Outbound","id":"sip-outbound","depth":1},{"value":"SIP forwarding","id":"sip-forwarding","depth":3},{"value":"X-headers","id":"x-headers","depth":3},{"value":"SIP Outbound example","id":"sip-outbound-example","depth":3}],"frontmatter":{"seo":{"title":"SIP Interface | Voice API v2 | Sinch","description":"This document provides a overview of Sinch SIP Interface service."}},"lastModified":"2026-08-31T13:48:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/voice-2.0/api-reference/sip/outbound","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}