POST /v1/streams and hand the partner the url it returns.
Use it when the other side will not move a number onto a SIP
trunk. Compared with a Talqing phone number, a stream
agent cannot transfer to a human, and on every platform but SparkTG it
cannot hang up.
Create a connection
The agent must be a publishedvoice agent. In the dashboard: Telephony →
Media Streams → New connection.
201) carries the full url on this and every later read. The
dashboard’s setup panel has the partner-side steps and, for Twilio, Plivo and
Vonage, a snippet to paste.
Platforms
dialect decides what the agent can do on the call.
The URL
regionisus(default) orin. Pick the one nearest the partner’s media. Changingregionchanges the URL; the old host stops answering for the connection, so the partner must switch. URLs onstreams.talqing.comareus.- Everything is in the path because Twilio’s
<Stream url>allows no query string. - One connection per agent per dialect. Two partners on the same platform would share one URL, so give each its own agent.
Per-call metadata becomes vars
The platform’s per-call bag (Twilio <Parameter>, SparkTG SIP-header attributes,
Plivo extraHeaders, Exotel query parameters, Vonage NCCO headers) is passed
through verbatim: a key svcId reaches the agent as {{vars.svcId}}. A key that
is not a valid variable name (a hyphen, a leading digit) is skipped and noted on
the call’s timeline. See variables.
Three keys also set call facts:
The person is
from, or to when direction is outbound. Their number fills
{{system_vars.human_phone_number}} and groups the call into their
conversation; the other fills
{{system_vars.agent_phone_number}}. A value that is not a phone number
(anonymous, an unfilled placeholder) is ignored and the caller is treated as
unidentified. Plivo and Vonage may send digits without +.
Twilio, Plivo and Vonage put no numbers on the stream. Without
from in the
metadata every call is anonymous: no caller number for the agent, no history
across calls. The dashboard’s Twilio snippet passes {{From}}, {{To}} and
{{Direction}} from a TwiML Bin; a partner serving TwiML from its own webhook
must substitute them itself.How a stream call differs from a phone call
A stream call is avoice call with type STREAM in Calls:
transcribed, analysed and
recorded per the agent’s settings, billed at the
voice platform fee plus your provider spend, capped at three hours. Differences:
- No transfer. A
transferoperation fails on a stream; route escalation through the partner’s flow. - Background audio is off (ambient and thinking sounds). The agent’s voice is unaffected.
- Keypad is out of band only; tones inside the audio are not detected. See keypad input.
- A Talqing release ends calls in progress with close reason “The call was ended by a Talqing deployment”. Those calls carry no platform fee.
- No per-connection concurrency cap. Only an empty credit balance refuses calls.
Audio formats
The platform announces the format per call; nothing to configure.
Unidirectional (listen-only) streams are not supported.
Connection reference
GET /v1/streams lists connections; DELETE /v1/streams/{connection_id} removes
one and keeps the calls it carried.
Debugging
Next
Keypad input
Digits the caller types and digits the agent presses.
Telephony overview
Answering calls on your own carrier numbers instead.