Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Vobiz","colors":{"primary":"#E83C00","light":"#E86A00","dark":"#c93400"},"logo":{"light":"https://mintcdn.com/vobizai/cPP2drhQ7lKsmogc/logo/light.svg?fit=max\u0026auto=format\u0026n=cPP2drhQ7lKsmogc\u0026q=85\u0026s=8e1f6273f626f638f46d6df526d4775c","dark":"https://mintcdn.com/vobizai/cPP2drhQ7lKsmogc/logo/dark.svg?fit=max\u0026auto=format\u0026n=cPP2drhQ7lKsmogc\u0026q=85\u0026s=57b37e5694f01e6933c9ec02a871250a","href":"https://www.vobiz.ai/docs/introduction"},"favicon":"https://mintcdn.com/vobizai/BDRzOqCvIsC8CJvN/favicon.svg?fit=max\u0026auto=format\u0026n=BDRzOqCvIsC8CJvN\u0026q=85\u0026s=b38182f12bc6b0e3a5df2a8ae1474f83","api":{"openapi":["openapi.yaml","openapi-sms.yaml","openapi-whatsapp.yaml"],"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true},"mdx":{"auth":{"method":"key","name":"X-Auth-Token"},"server":"https://api.vobiz.ai"}},"appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:support@vobiz.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://console.vobiz.ai"}},"footer":{"socials":{"x":"https://x.com/Vobiz_Ai","github":"https://github.com/vobiz-ai","linkedin":"https://linkedin.com/company/vobizai"}},"seo":{"metatags":{"canonical":"https://www.vobiz.ai/docs","og:site_name":"Vobiz Docs","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@Vobiz_Ai","twitter:creator":"@Vobiz_Ai","theme-color":"#E83C00","color-scheme":"dark light","author":"Vobiz","publisher":"Vobiz","copyright":"Copyright 2025 Vobiz","reply-to":"support@vobiz.ai","robots":"index, follow","format-detection":"telephone=no","referrer":"origin-when-cross-origin","rating":"general","language":"en","category":"Technology","coverage":"Worldwide","distribution":"global","target":"all"},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-YD6M3FF3P4"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","mcp","add-mcp","cursor","vscode"],"display":"header"},"thumbnails":{"appearance":"dark"},"markdown":{"schema":true},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.vobiz.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vobizai","hasAudioNarration":false,"actualSubdomain":"vobizai","customDomains":["www.vobiz.ai"],"gitSource":{"type":"github","owner":"vobiz-ai","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae8948acb9fa025302af88e"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b03ebb77a67acd0772356f9","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API Reference","count":443},{"language":"default","tag":"Voice \u0026 XML","count":142},{"language":"default","tag":"Documentation","count":103},{"language":"default","tag":"SMS \u0026 RCS","count":102},{"language":"default","tag":"Integrations","count":84},{"language":"default","tag":"Blogs","count":82},{"language":"default","tag":"Articles","count":80},{"language":"default","tag":"Examples \u0026 Tutorials","count":60},{"language":"default","tag":"Regular APIs","count":45},{"language":"default","tag":"SIP Trunking","count":36}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@vobiz.ai","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/docs/_mintlify/custom/vobizai/c4c76a1b5bc930af/custom.css"}]}
{"page":{"pagePath":"resources/sip-vs-websocket-visualizer","slug":"/resources/sip-vs-websocket-visualizer","pageMetadata":{"title":"SIP Trunk vs WebSocket Visualizer","sidebarTitle":"SIP vs WebSocket Visualizer","description":"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.","keywords":["SIP trunk vs WebSocket","Vobiz connectivity visualizer","SIP trunk flow diagram","WebSocket voice flow","inbound outbound call flow","SIP INVITE Vobiz trunk","IP ACL SIP credentials","answer URL webhook flow","wss media stream Vobiz","AI voice agent architecture","LiveKit VAPI Retell SIP endpoint","Primary URI inbound trunk","RTP audio leg","voice AI integration paths","PBX to Vobiz","SIP termination origination","Vobiz call flow playground","telephony architecture comparison","voice agent SIP or WebSocket","Vobiz outbound trunk domain"],"mode":"wide","href":"/resources/sip-vs-websocket-visualizer"},"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: \"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const SwFlows=()=>{const _components={a:`a`,..._provideComponents()};const[st,setSt]=React.useState({sip:{dir:`outbound`,i:0},ws:{dir:`outbound`,i:0}});const[playing,setPlaying]=React.useState({sip:false,ws:false});const flowOf=p=>SW_FLOWS[p][st[p].dir];const lastOf=p=>SW_FLOWS[p][st[p].dir].steps.length-1;const setDir=(p,dir)=>{setPlaying(v=>({...v,[p]:false}));setSt(v=>({...v,[p]:{dir,i:0}}))};const move=(p,d)=>{setPlaying(v=>({...v,[p]:false}));setSt(v=>{const max=SW_FLOWS[p][v[p].dir].steps.length-1;return{...v,[p]:{...v[p],i:Math.max(0,Math.min(max,v[p].i+d))}}})};const reset=p=>{setPlaying(v=>({...v,[p]:false}));setSt(v=>({...v,[p]:{...v[p],i:0}}))};const togglePlay=p=>{setPlaying(v=>{const on=!v[p];if(on\u0026\u0026st[p].i>=lastOf(p))setSt(s=>({...s,[p]:{...s[p],i:0}}));return{...v,[p]:on}})};const anyPlaying=playing.sip||playing.ws;const toggleBoth=()=>{if(anyPlaying){setPlaying({sip:false,ws:false});return}setSt(s=>{const n={...s};[`sip`,`ws`].forEach(k=>{if(s[k].i>=SW_FLOWS[k][s[k].dir].steps.length-1)n[k]={...s[k],i:0}});return n});setPlaying({sip:true,ws:true})};React.useEffect(()=>{const live=[`sip`,`ws`].filter(k=>playing[k]);if(!live.length)return undefined;const id=window.setInterval(()=>{setSt(prev=>{const next={...prev};live.forEach(k=>{const max=SW_FLOWS[k][prev[k].dir].steps.length-1;if(prev[k].i\u003cmax)next[k]={...prev[k],i:prev[k].i+1}});return next})},2200);return()=>window.clearInterval(id)},[playing]);React.useEffect(()=>{setPlaying(prev=>{let changed=false;const next={...prev};[`sip`,`ws`].forEach(k=>{if(prev[k]\u0026\u0026st[k].i>=SW_FLOWS[k][st[k].dir].steps.length-1){next[k]=false;changed=true}});return changed?next:prev})},[st]);const column=p=>{const F=SW_FLOWS[p];const f=flowOf(p);const steps=f.steps;const i=Math.min(st[p].i,steps.length-1);const cur=steps[i];const lit=new Set([0]);const doneSegs=new Set;let hot=-1,hotUp=false,now=0;for(let k=0;k\u003c=i;k++){const s=steps[k];if(s.seg!==undefined){if(k===i){hot=s.seg;hotUp=Boolean(s.up);now=s.up?s.seg:s.seg+1}else doneSegs.add(s.seg);lit.add(s.seg);lit.add(s.seg+1)}if(s.node!==undefined){lit.add(s.node);if(k===i)now=s.node}if(s.done\u0026\u0026k===i){f.nodes.forEach((_,x)=>lit.add(x));now=-1}}const speaker=cur.seg!==undefined?cur.up?cur.seg+1:cur.seg:cur.node;const live=steps.slice(0,i+1).some(s=>s.media);const custIdx=f.nodes.findIndex(id=>id===`pbx`||id===`app`);const vIdx=f.nodes.indexOf(`vobiz`);const rTop=Math.min(custIdx,vIdx),rBot=Math.max(custIdx,vIdx);const lastNode=f.nodes.length-1;const stageKids=[];f.nodes.forEach((id,x)=>{const n=SW_N[id];const isInt=f.internal===x;const lbl=hot===x\u0026\u0026cur.lbl?cur.lbl:isInt?live?`agent audio`:`internal`:``;stageKids.push(_jsxs(`div`,{className:`sw-cell`,style:{gridRow:2*x+1},children:[_jsxs(`div`,{className:`sw-node`+(x===now?` is-now`:lit.has(x)?` is-lit`:``),\"data-k\":n.k,children:[_jsx(`div`,{className:`sw-icon`,\"aria-hidden\":`true`,children:n.icon}),_jsxs(`div`,{className:`sw-nbody`,children:[_jsx(`div`,{className:`sw-role`,children:n.role}),_jsx(`div`,{className:`sw-name`,children:n.name}),_jsx(`div`,{className:`sw-meta`,children:n.meta})]})]}),cur.bubble\u0026\u0026speaker===x?_jsx(`div`,{className:`sw-bubble`,children:String(cur.bubble).split(/\\*\\*(.+?)\\*\\*/g).map((part,bi)=>bi%2?_jsx(`b`,{children:part},bi):_jsx(`span`,{children:part},bi))}):null]},`cell-`+id));if(x===lastNode)return;stageKids.push(_jsxs(`div`,{style:{gridRow:2*x+2},className:`sw-conn`+(hot===x?` is-hot`:``)+(hot===x\u0026\u0026hotUp?` is-up`:``)+(doneSegs.has(x)?` is-done`:``)+(isInt?` is-int`:``)+(isInt\u0026\u0026live?` is-live`:``),children:[_jsx(`i`,{}),_jsx(`span`,{className:`sw-dot`}),lbl?_jsx(`em`,{children:lbl}):null]},`conn-`+id))});const tickOn=steps.map((ignored,k)=>k\u003c=i);return _jsxs(`section`,{className:`sw-col`,\"data-p\":p,children:[_jsxs(`div`,{className:`sw-head`,children:[_jsx(`div`,{className:`sw-num`,\"aria-hidden\":`true`,children:F.num}),_jsxs(`div`,{className:`sw-tag`,children:[_jsx(`i`,{}),F.tag]}),_jsx(`h3`,{children:F.label}),_jsx(`p`,{className:`sw-sub`,children:F.sub}),_jsxs(`div`,{className:`sw-auth`,children:[F.authPre,` `,_jsx(`b`,{children:F.authA}),` `,F.authMid,` `,_jsx(`b`,{children:F.authB})]}),_jsxs(`div`,{className:`sw-hops`,children:[_jsx(`i`,{}),F.hops]}),_jsxs(`div`,{className:`sw-ctrl`,children:[_jsx(`i`,{}),F.ctrl]})]}),_jsx(`div`,{className:`sw-tabs`,children:SW_TABS.map(([d,n,t])=>_jsxs(`button`,{type:`button`,className:`sw-tab`+(st[p].dir===d?` is-on`:``),onClick:()=>setDir(p,d),children:[n,_jsx(`b`,{children:t})]},d))}),_jsxs(`div`,{className:`sw-stage`,children:[_jsxs(`div`,{className:`sw-rail`+(live?` is-on`:``),style:{gridRow:2*rTop+1+` / `+(2*rBot+2)},children:[_jsx(`div`,{className:`sw-trk`}),_jsx(`span`,{className:`sw-cap is-t`}),_jsx(`span`,{className:`sw-cap is-b`}),_jsx(`span`,{className:`sw-pk is-d`}),_jsx(`span`,{className:`sw-pk is-d2`}),_jsx(`span`,{className:`sw-pk is-u`}),_jsx(`span`,{className:`sw-pk is-u2`}),_jsx(`div`,{className:`sw-rlbl`,children:live?F.rail.name:F.rail.idle})]}),stageKids]}),_jsxs(`div`,{className:`sw-step`,\"aria-live\":`polite`,children:[_jsxs(`div`,{className:`sw-scap`,children:[_jsx(`span`,{className:`sw-sidx`,children:String(i+1).padStart(2,`0`)}),_jsxs(`span`,{className:`sw-sof`,children:[`/ `,String(steps.length).padStart(2,`0`),` · `,st[p].dir]})]}),_jsx(`h4`,{children:cur.title}),_jsx(`p`,{children:cur.desc}),cur.chips?_jsx(`div`,{className:`sw-chips`,children:cur.chips.map(c=>_jsxs(`span`,{className:`sw-chip`,children:[c[0],c[1]?_jsx(`b`,{children:c[1]}):null]},c.join(`-`)))}):null]}),_jsxs(`div`,{className:`sw-ctrls`,children:[_jsx(`button`,{type:`button`,onClick:()=>move(p,-1),disabled:i===0,children:`← Back`}),_jsx(`button`,{type:`button`,className:`sw-go`,onClick:()=>move(p,1),disabled:i>=steps.length-1,children:i>=steps.length-1?`Flow complete`:`Next step`}),_jsx(`button`,{type:`button`,onClick:()=>togglePlay(p),children:playing[p]?`❚❚ Pause`:`▶ Play`}),_jsx(`button`,{type:`button`,onClick:()=>reset(p),\"aria-label\":`Restart this flow`,children:`↻`}),_jsxs(`span`,{className:`sw-count`,children:[String(i+1).padStart(2,`0`),` / `,String(steps.length).padStart(2,`0`)]})]}),_jsx(`div`,{className:`sw-ticks`,role:`progressbar`,\"aria-label\":`Flow progress`,\"aria-valuemin\":`0`,\"aria-valuemax\":steps.length,\"aria-valuenow\":i+1,children:tickOn.map((on,k)=>_jsx(`i`,{className:on?`is-on`:``},steps[k].title))})]},p)};return _jsx(`div`,{className:`sip-ws-visualizer not-prose`,children:_jsxs(`main`,{className:`sw-shell`,children:[_jsxs(`div`,{className:`sw-masthead`,children:[_jsxs(`div`,{children:[_jsx(`p`,{className:`sw-eyebrow`,children:`Connectivity paths`}),_jsx(`h1`,{children:`Two ways to put a call on Vobiz.`}),_jsxs(`p`,{className:`sw-lede`,children:[`Same carrier network underneath, two different front doors. With a `,_jsx(`b`,{children:`SIP trunk`}),` your PBX talks to Vobiz over SIP and authenticates with an IP allowlist or SIP credentials. With`,_jsx(`b`,{children:` WebSockets`}),` your application talks to Vobiz over HTTPS and a `,_jsx(`code`,{children:`wss://`}),` socket - no PBX in the middle. On the SIP side your endpoint terminates the call and `,_jsx(`b`,{children:`then`}),` hands audio to the agent; on the socket side your server already `,_jsx(`b`,{children:`is`}),` the agent. Step through outbound and inbound on each - the media leg runs down the left gutter.`]})]}),_jsx(`div`,{className:`sw-tools`,children:_jsx(`button`,{type:`button`,className:`sw-tool`+(anyPlaying?` is-on`:``),onClick:toggleBoth,children:anyPlaying?`❚❚ Pause both`:`▶ Play both`})})]}),_jsxs(`div`,{className:`sw-cols`,children:[column(`sip`),column(`ws`)]}),_jsxs(`div`,{className:`sw-compare`,children:[_jsxs(`div`,{className:`sw-cbox`,\"data-p\":`sip`,children:[_jsx(`h4`,{children:`SIP Trunk`}),_jsx(`p`,{className:`sw-use`,children:`Use it when you already run telephony infrastructure, or your AI platform speaks SIP.`}),_jsxs(`ul`,{children:[_jsxs(`li`,{children:[_jsx(`b`,{children:`You bring`}),_jsx(`span`,{children:`A PBX, softswitch, or a SIP-native platform - LiveKit, VAPI, Retell, ElevenLabs.`})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Auth`}),_jsxs(`span`,{children:[`An IP Access Control List `,_jsx(`em`,{children:`or`}),` a SIP username and password. Pick one; both are never required.`]})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Control`}),_jsx(`span`,{children:`No XML and no Answer URL. Your SIP endpoint drives the call itself. Outbound goes to the SIP domain of the trunk; inbound is forwarded to your Primary URI.`})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Agent`}),_jsxs(`span`,{children:[`Sits `,_jsx(`em`,{children:`behind`}),` the SIP endpoint. The endpoint terminates SIP and creates the room, then the agent joins - one extra hop that is yours to run.`]})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Media`}),_jsx(`span`,{children:`RTP over UDP between Vobiz and your endpoint - no retransmission, so no jitter from recovery.`})]})]})]}),_jsxs(`div`,{className:`sw-cbox`,\"data-p\":`ws`,children:[_jsx(`h4`,{children:`WebSocket`}),_jsx(`p`,{className:`sw-use`,children:`Use it when your agent is code and you want Vobiz to talk to it directly.`}),_jsxs(`ul`,{children:[_jsxs(`li`,{children:[_jsx(`b`,{children:`You bring`}),_jsxs(`span`,{children:[`An HTTPS server that returns VobizXML, plus a `,_jsx(`code`,{children:`wss://`}),` endpoint.`]})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Auth`}),_jsx(`span`,{children:`Your API credentials on the REST call. No SIP registration, no PBX.`})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Control`}),_jsxs(`span`,{children:[`You drive the call with `,_jsx(`em`,{children:`VobizXML`}),`. Both directions start the same way: Vobiz fetches your Answer URL, you return XML, and Vobiz runs it. A `,_jsx(`code`,{children:`\u003cStream>`}),` element hands the audio to your socket.`]})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Agent`}),_jsxs(`span`,{children:[_jsx(`em`,{children:`Is`}),` the server Vobiz connects to. There is nothing to terminate and no room to join, so the handoff hop disappears.`]})]}),_jsxs(`li`,{children:[_jsx(`b`,{children:`Media`}),_jsx(`span`,{children:`Audio and events share one bidirectional socket, so barge-in is yours to control.`})]})]})]})]}),_jsxs(`p`,{className:`sw-note`,children:[_jsx(`b`,{children:`These are not mutually exclusive.`}),` A SIP trunk can deliver a call into Vobiz, and that same call can then be piped to your WebSocket server with a `,_jsx(`code`,{children:`\u003cStream>`}),` element. SIP handles the routing, the socket handles the audio.`]}),_jsxs(`div`,{className:`sw-footer-link`,children:[_jsxs(_components.a,{href:`/concepts/sip-vs-websockets`,children:[`Read the full comparison `,_jsx(`span`,{\"aria-hidden\":`true`,children:`→`})]}),_jsxs(_components.a,{href:`/platform/sip/outbound-trunks`,children:[`Outbound trunks `,_jsx(`span`,{\"aria-hidden\":`true`,children:`→`})]}),_jsxs(_components.a,{href:`/platform/sip/inbound-trunks`,children:[`Inbound trunks `,_jsx(`span`,{\"aria-hidden\":`true`,children:`→`})]}),_jsxs(_components.a,{href:`/resources/stream-events-visualizer`,children:[`Stream events visualizer `,_jsx(`span`,{\"aria-hidden\":`true`,children:`→`})]})]})]})})};const SW_TABS=[[`outbound`,`Flow 01`,`Outbound — you call out`],[`inbound`,`Flow 02`,`Inbound — they call you`]];const SW_N={pbx:{k:`cust`,icon:`▤`,role:`Your side`,name:`SIP endpoint / PBX`,meta:`LiveKit · VAPI · Retell · Asterisk`},agent:{k:`agent`,icon:`✳`,role:`Behind it`,name:`AI agent`,meta:`STT → LLM → TTS`},app:{k:`cust`,icon:`⬢`,role:`Your side`,name:`Your app / AI agent`,meta:`HTTPS server + wss:// endpoint`},vobiz:{k:`vobiz`,icon:`V`,role:`Vobiz`,name:`Vobiz`,meta:`trunk · routing · media`},carrier:{k:`carrier`,icon:`◈`,role:`Telecom`,name:`Carrier`,meta:`PSTN termination \u0026 origination`},human:{k:`human`,icon:`☎`,role:`Person`,name:`Caller / callee`,meta:`+91 98765 43210`}};const SW_FLOWS={sip:{label:`SIP Trunk`,tag:`Trunk`,num:`01`,sub:`Your PBX sends calls to a Vobiz SIP domain and receives them on your Primary URI.`,authPre:`Auth ·`,authA:`IP ACL`,authMid:`or`,authB:`SIP user + password`,hops:`5 steps · SIP terminates, then hands off to the agent`,ctrl:`Instructions · none - your SIP endpoint drives the call itself`,rail:{name:`RTP · audio`,idle:`no media yet`},outbound:{nodes:[`agent`,`pbx`,`vobiz`,`carrier`,`human`],internal:0,steps:[{seg:0,lbl:`dial request`,title:`Your AI agent asks its platform to dial out`,desc:`The agent does not speak SIP itself. It asks the SIP endpoint sitting in front of it - a LiveKit or VAPI room, or your own PBX - to place the call on its behalf.`,chips:[[`agent → sip endpoint`],[`to`,`+919876543210`]]},{seg:1,lbl:`SIP INVITE`,title:`Your SIP endpoint knocks on the trunk`,desc:`The endpoint points the call at the outbound trunk's own SIP domain. Vobiz checks the source against the trunk's IP Access Control List, or challenges for the SIP username and password on the attached credentials list.`,chips:[[`src IP`,`203.0.113.10`],[`sip user`,`acme_out`],[`from`,`+912240000000`],[`to`,`+919876543210`]],bubble:`Knock knock - I'm calling from **203.0.113.10**. Here are my **SIP credentials**. Please place a call from **+912240000000** to **+919876543210**.`},{node:2,title:`Vobiz accepts and routes`,desc:`The trunk is enabled and the caller passed auth, so Vobiz accepts the call, picks a route, and applies whatever the trunk has switched on - recording, AI transcription, PII redaction.`,chips:[[`trunk`,`enabled`],[`domain`,`39a32383.sip.vobiz.ai`],[`recording`,`on`]]},{seg:2,lbl:`route out`,title:`Vobiz hands the call to the carrier`,desc:`Vobiz sends the call into the telecom network for termination to the destination number.`,chips:[[`termination`],[`₹0.45 / min`]]},{seg:3,lbl:`ring`,title:`The carrier rings the callee`,desc:`The destination handset rings on the PSTN or mobile network.`,chips:[[`pstn / mobile`]]},{done:true,media:true,title:`Call connected`,desc:`RTP now runs both ways between Vobiz and your SIP endpoint - the rail on the left. The endpoint then passes that audio inward to the agent over its own transport, which is the extra hop SIP carries and WebSocket does not.`,chips:[[`rtp`,`bidirectional`],[`g.711 / g.722`],[`endpoint → agent`,`internal`],[`trunk webhook`,`POST`]]}]},inbound:{nodes:[`human`,`carrier`,`vobiz`,`pbx`,`agent`],internal:3,steps:[{seg:0,lbl:`dials`,title:`Someone dials your Vobiz number`,desc:`A caller dials one of the DIDs you bought from Vobiz.`,chips:[[`to`,`+912240000000`]]},{seg:1,lbl:`inbound call`,title:`The carrier delivers the call to Vobiz`,desc:`The telecom network hands the inbound call over to Vobiz origination.`,chips:[[`origination`]]},{node:2,title:`Vobiz matches the number to an inbound trunk`,desc:`Vobiz looks up which inbound trunk the dialled DID is linked to, and reads that trunk's Primary URI.`,chips:[[`did`,`linked to trunk`],[`trunk`,`enabled`],[`recording`,`on`]]},{seg:2,lbl:`forward`,title:`Vobiz forwards to your Primary URI`,desc:`Vobiz sends the call on to the SIP destination configured on that trunk. If the trunk is disabled, Vobiz returns a SIP error to the carrier instead.`,chips:[[`primary uri`,`sip:pbx.acme.com`]]},{seg:3,lbl:`terminate SIP`,title:`Your endpoint terminates SIP and wakes the agent`,desc:`LiveKit, VAPI, Retell or your own PBX answers the INVITE and creates the room or session the AI agent joins. Vobiz's job stops at the endpoint - this last handoff is yours.`,chips:[[`sip`,`terminated`],[`room / session created`],[`agent joins`]]},{done:true,media:true,title:`The agent is on the call`,desc:`RTP runs between Vobiz and your endpoint, and the endpoint feeds that audio to the agent. The trunk webhook reports incoming.ringing, incoming.answered and incoming.ended as it goes.`,chips:[[`incoming.ringing`],[`incoming.answered`],[`incoming.ended`]]}]}},ws:{label:`WebSocket`,tag:`Socket`,num:`02`,sub:`Vobiz never decides what a call should do. It fetches your Answer URL and executes the VobizXML you hand back - that XML is how you drive the call.`,authPre:`Auth ·`,authA:`API credentials`,authMid:`+ your`,authB:`Answer URL`,hops:`4 steps · your server is the agent - no handoff`,ctrl:`Instructions · Vobiz fetches your Answer URL and runs the VobizXML you return`,rail:{name:`WSS · media + events`,idle:`socket closed`},outbound:{nodes:[`app`,`vobiz`,`carrier`,`human`],internal:-1,steps:[{seg:0,lbl:`POST /Call`,title:`Your app asks Vobiz to place the call`,desc:`A single REST call. You give Vobiz the two numbers and the URL it should come back to once the callee picks up.`,chips:[[`from`,`+912240000000`],[`to`,`+919876543210`],[`answer_url`,`/answer`],[`answer_method`,`POST`]],bubble:`Knock knock - here is my **Answer URL**. Please place a call from **+912240000000** to **+919876543210** and come ask me what to do when they pick up.`},{node:1,title:`Vobiz accepts and queues the call`,desc:`You get a 200 with a call_uuid straight away. That means accepted and queued - not answered. The real state arrives on your callbacks.`,chips:[[`200`,`accepted`],[`call_uuid returned`]]},{seg:1,lbl:`place call`,title:`Vobiz places the call through the carrier`,desc:`Vobiz sends the outbound call into the telecom network.`,chips:[[`termination`],[`₹0.65 / min`]]},{seg:2,lbl:`ring`,title:`The carrier rings the callee`,desc:`The destination handset rings. Nothing has been asked of your server yet.`,chips:[[`pstn / mobile`]]},{seg:0,up:true,lbl:`answer_url`,title:`They pick up - Vobiz asks your Answer URL what to do`,desc:`Vobiz has a live call and no instructions for it. It POSTs the call details to the answer_url you supplied and blocks, waiting for you to tell it what should happen next.`,chips:[[`POST`,`/answer`],[`CallUUID`],[`from · to`],[`CallStatus`,`in-progress`],[`awaiting`,`VobizXML`]]},{seg:0,lbl:`VobizXML`,title:`You reply with VobizXML - these are the instructions`,desc:`The XML you return is the instruction set. A Stream element tells Vobiz to open a bidirectional socket to your endpoint; Speak, Play, Gather, Dial or Record would each steer the call somewhere else. Vobiz executes what it is given, in order.`,chips:[[`\u003cResponse>`],[`\u003cStream bidirectional=\"true\">`],[`wss://acme.com/agent`],[`\u003c/Response>`]]},{media:true,done:true,title:`The socket opens - audio and events both ways`,desc:`Vobiz streams caller audio to you as media frames; you stream your agent's speech back as playAudio. Barge-in, checkpoints and turn-taking are all yours to control.`,chips:[[`media frames`,`in`],[`playAudio`,`out`],[`clearAudio · checkpoint`]]}]},inbound:{nodes:[`human`,`carrier`,`vobiz`,`app`],internal:-1,steps:[{seg:0,lbl:`dials`,title:`Someone dials your Vobiz number`,desc:`A caller dials a DID that has a voice application attached to it.`,chips:[[`to`,`+912240000000`]]},{seg:1,lbl:`inbound call`,title:`The carrier delivers the call to Vobiz`,desc:`The telecom network hands the inbound call to Vobiz.`,chips:[[`origination`]]},{node:2,title:`Vobiz finds the application on that number`,desc:`Every number is attached to an application, and every application carries an answer_url. Vobiz answers nothing on its own - it goes and asks.`,chips:[[`app attached to did`],[`answer_url`,`set`],[`fallback_answer_url`]]},{seg:2,lbl:`answer_url`,title:`Vobiz asks your Answer URL what to do`,desc:`Vobiz POSTs the call details to your server and waits. It will not answer, speak or stream anything until you tell it to. If your URL is unreachable or returns invalid XML, Vobiz tries the fallback - and drops the call if there is not one.`,chips:[[`POST`,`/answer`],[`CallUUID`],[`from · to`],[`direction`,`inbound`]],bubble:`Knock knock - someone is calling **+912240000000** from **+919876543210**. What should I do with this call?`},{seg:2,up:true,lbl:`VobizXML`,title:`You reply with VobizXML - these are the instructions`,desc:`The XML you return is the instruction set, and Vobiz runs it top to bottom. To hand the call to your AI agent, that XML is a Stream element pointing at your socket.`,chips:[[`\u003cResponse>`],[`\u003cStream bidirectional=\"true\">`],[`wss://acme.com/agent`],[`\u003c/Response>`]]},{media:true,done:true,title:`The socket opens - audio and events both ways`,desc:`Vobiz connects to your wss:// endpoint and the conversation begins. Caller audio arrives as media frames; your agent replies with playAudio on the same socket.`,chips:[[`media frames`,`in`],[`playAudio`,`out`],[`clearAudio · checkpoint`]]}]}}};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`SwFlows`,children:_jsx(SwFlows,{})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{SwFlows,SW_TABS,SW_N,SW_FLOWS,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 Trunk vs WebSocket Visualizer","sidebarTitle":"SIP vs WebSocket Visualizer","description":"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.","keywords":["SIP trunk vs WebSocket","Vobiz connectivity visualizer","SIP trunk flow diagram","WebSocket voice flow","inbound outbound call flow","SIP INVITE Vobiz trunk","IP ACL SIP credentials","answer URL webhook flow","wss media stream Vobiz","AI voice agent architecture","LiveKit VAPI Retell SIP endpoint","Primary URI inbound trunk","RTP audio leg","voice AI integration paths","PBX to Vobiz","SIP termination origination","Vobiz call flow playground","telephony architecture comparison","voice agent SIP or WebSocket","Vobiz outbound trunk domain"],"mode":"wide","href":"/resources/sip-vs-websocket-visualizer"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[27,38,""],[127,20516,"null;const SW_TABS=undefined;const SW_N=undefined;const SW_FLOWS=undefined;funct"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/vobizai/478834ae2c200a0e/blog-schema.js","/docs/_mintlify/custom/vobizai/13b0cd7ec6e39877/anchor-link-text.js"],"subdomain":"vobizai","siteName":"Vobiz","title":"SIP Trunk vs WebSocket Visualizer - Vobiz","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T14:50:27.029Z","originalFileLocation":"resources/sip-vs-websocket-visualizer.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=\"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vobiz\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SIP Trunk vs WebSocket Visualizer - Vobiz\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vobiz Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vobizai.mintlify.site/docs/_mintlify/api/og/v2?division=Tools\u0026amp;title=SIP+Trunk+vs+WebSocket+Visualizer\u0026amp;description=Step+through+both+Vobiz+connectivity+paths+side+by+side+-+a+SIP+trunk+using+IP+ACL+or+credentials%2C+and+a+WebSocket+app+driven+by+your+Answer+URL.\u0026amp;theme=d9cfb5a257c4db351c1c1eeb\u0026amp;signature=b3122b14f7238e61fd50e31226537f1aac8cb4ace926ecb2e1ff681f920a3827\">\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=\"SIP Trunk vs WebSocket Visualizer - Vobiz\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vobizai.mintlify.site/docs/_mintlify/api/og/v2?division=Tools\u0026amp;title=SIP+Trunk+vs+WebSocket+Visualizer\u0026amp;description=Step+through+both+Vobiz+connectivity+paths+side+by+side+-+a+SIP+trunk+using+IP+ACL+or+credentials%2C+and+a+WebSocket+app+driven+by+your+Answer+URL.\u0026amp;theme=d9cfb5a257c4db351c1c1eeb\u0026amp;signature=b3122b14f7238e61fd50e31226537f1aac8cb4ace926ecb2e1ff681f920a3827\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/vobizai/oc0LWA8xGPKGY1Z5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vobiz\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E83C00\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@Vobiz_Ai\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#E83C00\">\u003cmeta data-mint-head name=\"color-scheme\" content=\"dark light\">\u003cmeta data-mint-head name=\"author\" content=\"Vobiz\">\u003cmeta data-mint-head name=\"publisher\" content=\"Vobiz\">\u003cmeta data-mint-head name=\"copyright\" content=\"Copyright 2025 Vobiz\">\u003cmeta data-mint-head name=\"reply-to\" content=\"support@vobiz.ai\">\u003cmeta data-mint-head name=\"format-detection\" content=\"telephone=no\">\u003cmeta data-mint-head name=\"referrer\" content=\"origin-when-cross-origin\">\u003cmeta data-mint-head name=\"rating\" content=\"general\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"category\" content=\"Technology\">\u003cmeta data-mint-head name=\"coverage\" content=\"Worldwide\">\u003cmeta data-mint-head name=\"distribution\" content=\"global\">\u003cmeta data-mint-head name=\"target\" content=\"all\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/resources/sip-vs-websocket-visualizer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.vobiz.ai/#organization\",\"name\":\"Vobiz\",\"url\":\"https://www.vobiz.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vobizai/cPP2drhQ7lKsmogc/logo/light.svg?fit=max\u0026auto=format\u0026n=cPP2drhQ7lKsmogc\u0026q=85\u0026s=8e1f6273f626f638f46d6df526d4775c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.vobiz.ai/docs#website\",\"name\":\"Vobiz\",\"url\":\"https://www.vobiz.ai/docs\",\"publisher\":{\"@id\":\"https://www.vobiz.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer#webpage\",\"url\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer\",\"name\":\"SIP Trunk vs WebSocket Visualizer\",\"description\":\"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\",\"dateModified\":\"2026-11-03T14:50:27.029Z\",\"isPartOf\":{\"@id\":\"https://www.vobiz.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tools\",\"item\":\"https://www.vobiz.ai/docs/resources/calculator\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SIP Trunk vs WebSocket Visualizer\",\"item\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer#article\",\"headline\":\"SIP Trunk vs WebSocket Visualizer\",\"name\":\"SIP Trunk vs WebSocket Visualizer\",\"description\":\"Step through both Vobiz connectivity paths side by side - a SIP trunk using IP ACL or credentials, and a WebSocket app driven by your Answer URL.\",\"url\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer\",\"mainEntityOfPage\":{\"@id\":\"https://www.vobiz.ai/docs/resources/sip-vs-websocket-visualizer#webpage\"},\"dateModified\":\"2026-11-03T14:50:27.029Z\",\"keywords\":\"SIP trunk vs WebSocket, Vobiz connectivity visualizer, SIP trunk flow diagram, WebSocket voice flow, inbound outbound call flow, SIP INVITE Vobiz trunk, IP ACL SIP credentials, answer URL webhook flow, wss media stream Vobiz, AI voice agent architecture, LiveKit VAPI Retell SIP endpoint, Primary URI inbound trunk, RTP audio leg, voice AI integration paths, PBX to Vobiz, SIP termination origination, Vobiz call flow playground, telephony architecture comparison, voice agent SIP or WebSocket, Vobiz outbound trunk domain\",\"publisher\":{\"@id\":\"https://www.vobiz.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.vobiz.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vobiz\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Vobiz\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/resources/sip-vs-websocket-visualizer.md","siteName":"Vobiz","nav":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.vobiz.ai"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","boost":5,"icon":"rocket","pages":[{"title":"Vobiz Docs: Voice, SIP Trunking, SMS \u0026 WhatsApp APIs","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Quick Start – Make Your First Vobiz Call","sidebarTitle":"Quick Start","href":"/quick-start"},{"title":"Vobiz API Authentication: X-Auth-ID \u0026 X-Auth-Token","sidebarTitle":"Authentication","href":"/api-reference/authentication"},{"title":"Buy a Phone Number on Vobiz – Step-by-Step Guide","sidebarTitle":"Buy a Phone Number","href":"/buy-a-phone-number"},{"title":"Vobiz API Errors: Status Codes \u0026 Response Formats","sidebarTitle":"Error Handling","href":"/errors"},{"title":"Vobiz API Rate Limits: 429 Errors \u0026 Retry-After","sidebarTitle":"Rate Limits","href":"/rate-limits"},{"title":"Vobiz API changelog","sidebarTitle":"Changelog","href":"/changelog"}]},{"group":"Core Concepts","icon":"lightbulb","root":{"title":"Vobiz Platform Concepts \u0026 Architecture","sidebarTitle":"Concepts","href":"/concepts"},"pages":[{"title":"What Is SIP Trunking? How It Works on Vobiz","href":"/concepts/sip-trunking"},{"title":"Bring Your Own Carrier (BYOC) — Connect Your SIP Trunk","sidebarTitle":"Bring Your Own Carrier","href":"/concepts/bring-your-own-carrier"},{"title":"Voice Streaming over WebSockets | Vobiz Stream API","href":"/concepts/streaming-websockets"},{"title":"SIP vs WebSockets: Which to Use for AI Voice Agents on Vobiz","href":"/concepts/sip-vs-websockets"},{"title":"Audio Quality — HD Voice, VAD \u0026 Noise Cancellation","sidebarTitle":"Audio Quality","href":"/concepts/audio-quality"},{"title":"Sub-Accounts vs Partner Accounts on Vobiz — When to Use Each","sidebarTitle":"Sub-accounts vs partner accounts","href":"/concepts/sub-accounts-vs-partner-accounts"},{"title":"Vobiz Webhooks (Callbacks): Real-Time Call Events","sidebarTitle":"Callbacks","href":"/concepts/callbacks"},{"title":"Vobiz Webhook (Callback) Configuration","sidebarTitle":"Callback Configurations","href":"/concepts/callback-configurations"},{"title":"How to Validate Vobiz Webhook Signatures (HMAC)","href":"/concepts/validating-callbacks"},{"title":"Vobiz IP Address Allowlist — Firewall \u0026 SIP Whitelist","href":"/concepts/ip-whitelisting"},{"title":"Voice API Hangup Causes – Codes \u0026 Troubleshooting","sidebarTitle":"Hangup Causes","href":"/concepts/hangup-causes"}]},{"group":"Best Practices","icon":"star","root":{"title":"Integration Best Practices: Security \u0026 Reliability","sidebarTitle":"Best Practices","href":"/best-practices"},"pages":[{"title":"How an Outbound Campaign Manager Works — Caps \u0026 Retries","sidebarTitle":"Outbound Campaign Manager","href":"/best-practices/outbound-campaign-manager"},{"title":"Phone Number Utilization — Rotation \u0026 Spam Prevention","href":"/best-practices/number-utilization"},{"title":"Phone Number Health — Spam Detection, Pacing \u0026 Recovery","href":"/best-practices/number-health-guide"},{"title":"DLT Entity Registration — TRAI Compliance for Voice \u0026 SMS","sidebarTitle":"DLT Entity Registration","href":"/best-practices/dlt-registration"},{"title":"India 140 \u0026 160 Number Acquisition — Documents \u0026 Timelines","href":"/best-practices/140-160-acquisition"},{"title":"140 \u0026 160 DID Provisioning — PE Certificate, LOI \u0026 DLT","sidebarTitle":"DID Provisioning","href":"/best-practices/did-provisioning"},{"title":"India 92-Series Numbers — OTP Calls, Pickup Rates \u0026 KYC","href":"/best-practices/92-series-guide"}]},{"group":"Using Vobiz Platform","icon":"grip","pages":[{"title":"Console Login \u0026 Signup","sidebarTitle":"Login \u0026 Signup","href":"/platform/login"},{"title":"Vobiz Console Dashboard: API Credentials \u0026 Call Analytics","sidebarTitle":"Dashboard","href":"/platform/dashboard"},{"group":"Voice Applications","icon":"phone-volume","pages":[{"title":"Voice Applications Overview","sidebarTitle":"Overview","href":"/platform/voice/overview"},{"title":"XML Applications: Create \u0026 Manage Voice Apps","sidebarTitle":"Applications","href":"/platform/voice/applications"},{"title":"SIP Endpoints: Softphone \u0026 WebRTC Logins","sidebarTitle":"Endpoints","href":"/platform/voice/endpoints"},{"title":"How to Receive an Inbound Call in Your Browser","sidebarTitle":"Receive an Inbound Call","href":"/guides/receive-inbound-call"},{"group":"Logs","icon":"list","pages":[{"title":"Voice Call Logs: Per-Call Records \u0026 Quality Metrics","sidebarTitle":"Call Logs","href":"/platform/voice/call-logs"},{"title":"Voice Call Recordings: Playback \u0026 AI Insights","sidebarTitle":"Recordings","href":"/platform/voice/recordings"}]},{"title":"Campaigns: Launch \u0026 Manage Outbound Runs","sidebarTitle":"Campaigns","href":"/platform/campaigns/list"},{"title":"Campaign Agents: Reusable Webhook Configs","sidebarTitle":"Agents","href":"/platform/campaigns/agents"},{"title":"Campaign Call Logs: Per-Attempt Outbound History","sidebarTitle":"Campaign Call Logs","href":"/platform/campaigns/call-logs"}]},{"group":"SIP Trunking","icon":"network-wired","pages":[{"title":"SIP Trunking Overview: Global Voice Connectivity","sidebarTitle":"Overview","href":"/platform/sip/overview"},{"group":"Outbound Trunks","icon":"arrow-up-right-from-square","pages":[{"title":"Outbound Trunks: SIP Termination from Your PBX","sidebarTitle":"Trunks","href":"/platform/sip/outbound-trunks"},{"title":"IP Access Control List (ACL): Whitelist PBX IPs","sidebarTitle":"IP Access Control List","href":"/platform/sip/ip-access-control-list"},{"title":"SIP Credentials List: Username \u0026 Password Auth","sidebarTitle":"Credentials List","href":"/platform/sip/credentials"}]},{"group":"Inbound Trunks","icon":"arrow-down-to-bracket","pages":[{"title":"Inbound Trunks: Receive PSTN Calls","sidebarTitle":"Trunks","href":"/platform/sip/inbound-trunks"},{"title":"Origination URI: SIP Destinations for Inbound Calls","sidebarTitle":"Origination URI","href":"/platform/sip/origination-uri"}]},{"group":"Logs","icon":"list","pages":[{"title":"SIP Call Logs: Per-Call Records \u0026 Quality","sidebarTitle":"Call Logs","href":"/platform/sip/call-logs"},{"title":"SIP Trunk Call Recordings: Playback \u0026 Transcripts","sidebarTitle":"Recordings","href":"/platform/sip/recordings"}]}]},{"group":"Phone Numbers","icon":"hashtag","pages":[{"title":"Buy a Number: Numbers Inventory","sidebarTitle":"Buy a Number","href":"/platform/numbers/buy"},{"title":"My Numbers: Your Number Inventory","sidebarTitle":"My Numbers","href":"/platform/numbers/my-numbers"}]},{"title":"Sub-Accounts: Child Accounts \u0026 Number Assignment","sidebarTitle":"Sub-Accounts","href":"/platform/subaccounts"},{"title":"Team Members: Roles, Access \u0026 Member Management","sidebarTitle":"Team Members","href":"/platform/team"},{"group":"Capacity","icon":"gauge-high","pages":[{"title":"CPS: Buy Call-Initiation Throughput","sidebarTitle":"CPS","href":"/platform/capacity/cps"},{"title":"Concurrency: Buy Simultaneous Call Capacity","sidebarTitle":"Concurrency","href":"/platform/capacity/concurrency"},{"title":"My Subscriptions: Manage Capacity Subscriptions","sidebarTitle":"My Subscriptions","href":"/platform/capacity/subscriptions"}]}]},{"group":"Messaging (SMS \u0026 RCS)","icon":"comment-sms","pages":[{"title":"Vobiz Messaging Numbers","sidebarTitle":"Messaging numbers","href":"/sms/numbers"},{"title":"Vobiz Messaging Compliance: 10DLC, Toll-Free \u0026 DLT","sidebarTitle":"Compliance overview","href":"/sms/compliance/overview"},{"title":"US 10DLC Brand Registration — Create, Submit \u0026 Verify","sidebarTitle":"US 10DLC brands","href":"/sms/compliance/us-10dlc-brands"},{"title":"US 10DLC Campaign Registration — Use Cases \u0026 Statuses","sidebarTitle":"US 10DLC campaigns","href":"/sms/compliance/us-10dlc-campaigns"},{"title":"US Toll-Free SMS Verification — Submission \u0026 Appeals","sidebarTitle":"US toll-free","href":"/sms/compliance/us-toll-free"},{"title":"India DLT SMS Compliance — Entity, Header \u0026 Template IDs","sidebarTitle":"India DLT","href":"/sms/compliance/india-dlt"}]},{"group":"Compliance","icon":"shield-halved","pages":[{"title":"Global Compliance — Voice \u0026 SMS Regulations by Country","href":"/compliance/overview"},{"group":"India","pages":[{"title":"India Calling Regulations","href":"/compliance/india/calling-regulations"},{"title":"India Number KYC","href":"/compliance/india/kyc"},{"title":"UCC \u0026 NDNC Compliance","sidebarTitle":"UCC \u0026 NDNC","href":"/compliance/india/ucc"}]},{"group":"United States","pages":[{"title":"US Calling Regulations — TCPA, STIR/SHAKEN \u0026 DNC Rules","href":"/compliance/us/calling-regulations"},{"title":"US SMS Regulations — TCPA, 10DLC, Quiet Hours \u0026 Opt-Out Rules","href":"/compliance/us/sms-regulations"}]}]},{"group":"FAQ","icon":"question","root":{"title":"Vobiz FAQ: Billing, API Limits \u0026 SIP Trunking","sidebarTitle":"FAQ","href":"/faq"},"pages":[{"title":"Can I connect my trial number for inbound calls?","href":"/faq/trial-inbound"},{"title":"SIP 480 \u0026 486 Errors: Temporarily Unavailable \u0026 Busy Here","sidebarTitle":"SIP 480 and 486","href":"/faq/sip-codes-480-486"},{"title":"Why am I receiving a 429 error?","href":"/faq/error-429"},{"title":"'From number not owned by account' Error","sidebarTitle":"From number not owned error","href":"/faq/from-number-not-owned"},{"title":"What Is Call Concurrency? Simultaneous Call Capacity Explained","href":"/faq/concurrency"},{"title":"What Is CPS? Calls Per Second and Voice Throughput Explained","href":"/faq/cps"},{"title":"Can I purchase additional Concurrency or CPS?","href":"/faq/purchase-concurrency-cps"},{"title":"Do you provide 140, 160, and 92 series numbers?","href":"/faq/number-series"},{"title":"What integrations do you support?","href":"/faq/integrations"},{"title":"Is call transfer supported?","href":"/faq/call-transfer"},{"title":"Do you support IVR?","href":"/faq/ivr"},{"title":"What documents are required for verification?","href":"/faq/verification-docs"},{"title":"How can I contact support?","href":"/faq/contact-support"},{"title":"What Is Domestic Calling? IN-to-IN Calling on Vobiz Explained","href":"/faq/domestic-calling-india"}]},{"group":"Tools","icon":"wrench","pages":[{"title":"CPS \u0026 Concurrency Calculator","href":"/resources/calculator"},{"title":"Vobiz Visual XML Builder for Voice Call Flows","sidebarTitle":"XML Builder","href":"/xml-builder"},{"title":"Stream Events Visualizer","sidebarTitle":"Stream Events Visualizer","mode":"wide","href":"/resources/stream-events-visualizer"},{"title":"Dial XML Transfer Visualizer","sidebarTitle":"Dial Transfer Visualizer","mode":"wide","href":"/resources/dial-transfer-visualizer"},{"title":"Gather XML Input Visualizer","sidebarTitle":"Gather Input Visualizer","description":"Walk a Gather from prompt to action URL. Press the dial pad and see which terminator wins - numDigits, finishOnKey, digitEndTimeout, or executionTimeout.","mode":"wide","href":"/resources/gather-visualizer"},{"title":"SIP Trunk vs WebSocket Visualizer","sidebarTitle":"SIP vs WebSocket Visualizer","mode":"wide","href":"/resources/sip-vs-websocket-visualizer"},{"title":"CPS \u0026 Concurrency Visualizer","sidebarTitle":"CPS vs Concurrency Visualizer","description":"Dial calls onto a live board and hit both Vobiz limits yourself - CPS caps how fast you start calls, concurrency how many run at once. See what causes a 429.","mode":"wide","href":"/resources/cps-concurrency-visualizer"},{"title":"Conference XML Visualizer","sidebarTitle":"Conference Visualizer","mode":"wide","href":"/resources/conference-visualizer"},{"title":"Bulk and batch operations","sidebarTitle":"Bulk and batch","href":"/resources/bulk-operations"},{"group":"Sitemap","root":{"title":"Vobiz Documentation Sitemap","sidebarTitle":"Sitemap","href":"/resources/sitemap"},"pages":[{"title":"Vobiz Docs Sitemap - Documentation","sidebarTitle":"Documentation","href":"/resources/sitemap/documentation"},{"title":"Vobiz Docs Sitemap - API Reference: Regular APIs","sidebarTitle":"API Reference: Regular APIs","href":"/resources/sitemap/api-reference-regular-apis"},{"title":"Vobiz Docs Sitemap - API Reference: SIP Trunking","sidebarTitle":"API Reference: SIP Trunking","href":"/resources/sitemap/api-reference-sip-trunking"},{"title":"Vobiz Docs Sitemap - API Reference: Voice \u0026 XML","sidebarTitle":"API Reference: Voice \u0026 XML","href":"/resources/sitemap/api-reference-voice-xml"},{"title":"Vobiz Docs Sitemap - API Reference: SMS \u0026 RCS","sidebarTitle":"API Reference: SMS \u0026 RCS","href":"/resources/sitemap/api-reference-sms-rcs"},{"title":"Vobiz Docs Sitemap - API Reference: WhatsApp","sidebarTitle":"API Reference: WhatsApp","href":"/resources/sitemap/api-reference-whatsapp"},{"title":"Vobiz Docs Sitemap - API Reference: Partner API","sidebarTitle":"API Reference: Partner API","href":"/resources/sitemap/api-reference-partner-api"},{"title":"Vobiz Docs Sitemap - Integrations","sidebarTitle":"Integrations","href":"/resources/sitemap/integrations"},{"title":"Vobiz Docs Sitemap - Examples \u0026 Tutorials","sidebarTitle":"Examples \u0026 Tutorials","href":"/resources/sitemap/examples-tutorials"},{"title":"Vobiz Docs Sitemap - Blogs","sidebarTitle":"Blogs","href":"/resources/sitemap/blogs"}]}]},{"group":"AI agents","icon":"robot","pages":[{"title":"Vobiz Agent Skills","sidebarTitle":"Agent Skills","href":"/resources/skills"},{"title":"Vobiz MCP Server","sidebarTitle":"MCP Server","href":"/resources/vobiz-mcp"},{"title":"Vobiz Docs MCP Server","sidebarTitle":"Docs MCP Server","href":"/resources/mcp"},{"title":"Vobiz CLI — Calls, SMS \u0026 Numbers from Your Terminal","sidebarTitle":"CLI","href":"/resources/cli"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/account"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"Examples \u0026 Tutorials","pages":[{"title":"Examples \u0026 Tutorials","href":"/guides/ai-voice-agent"}]},{"tab":"Blogs","pages":[{"title":"Blogs","href":"/blogs"}]}]},"basePath":"","title":"SIP Trunk vs WebSocket Visualizer - Vobiz","deploymentId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","buildId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","dynamics":[],"chunks":[]}