Originate an outbound leg
Changed onOriginate 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. trunk_id places a sip leg through a specific SIP trunk; it takes precedence over selecting a trunk by matching from against trunk AORs.
Request
- Base URLhttp://localhost:8080/v1
- URLhttp://localhost:8080/v1/legs
- Authnone declared
Request body
Response
Leg created
Changes
- info
added the new optional request property
- info
added the non-success response with the status
- info
- info
the
request property default value changed from0to60
- info