Legs
Originate an outbound leg
Originate a new outbound leg. The type field selects the transport: sip originates a SIP INVITE; whatsapp originates a WhatsApp call through Meta; websocket dials a remote WebSocket endpoint (audio is PCM in either binary or json_base64 framing, with bidirectional text and caller-supplied X-/P- headers). For sip legs, outbound_proxy sets the next hop for this INVITE as a loose Route header, leaving the Request-URI unchanged. It outranks the matched trunk's outbound_proxy and SIP_OUTBOUND_PROXY; a to that resolves to an AOR registered to this server outranks all three and is delivered to the bound contact.
post/legs
Request body
Response
Leg created