Transfer & hangup
The Transfer & hangup section sets where a call can go when the agent decides, and how it ends. All four kinds of agent use the same settings; what differs is how the agent asks for them.
Transfer to a person
Turn on Transfer to a person, then choose a Destination:
For a phone number, Carrier chooses which of your jambonz carriers dials it. Default (jambonz routing) lets jambonz pick using the account’s routing; when the account has more than one carrier that can dial out, choose one so every transfer goes the same way.
When the agent should transfer the call tells the model, in plain language, when to use the transfer. For a Connected agent it becomes the description of the client-side tool.
An agent has one transfer destination. For more than one place to go, use Chosen by the agent, or send the call to another jambonz application with Send the call to another jambonz application, further down the section.
Destination chosen by the agent
With Chosen by the agent, the agent supplies the destination when it transfers:
- Arguments the agent must supply: names such as
queueordepartment(snake_case, up to 8). The agent’s transfer tool asks for each one. - Destination template: a phone number, SIP URI or user, with arguments in braces, for example
sip:{queue}@pbx.acme.example.{call.sid}inserts the jambonz call id. - SIP headers (optional): one
Name: valueper line, with the same placeholders, for exampleX-Queue: {queue}. - Through carrier: the carrier used when the template gives a phone number.
A placeholder that is not one of the arguments (or {call.sid}) blocks publishing.
Blind or warm transfer
The fold under the destination sets How the call is handed over:
The first two are blind transfers; the last two are warm.
The other settings in the fold:
Carriers can refuse a caller ID they do not own. If transfers fail with the original caller’s number, use a number your carrier knows.
The spoken brief
In the two warm modes, Brief for the person sets what the person answering hears before the caller is joined:
- Model writes a summary of the call (the default)
- Summary guided by a template…: the model writes the summary following your Template for the brief, for example “Name, why they called, what they need.”
- No spoken brief
The voice of the brief
A Cascaded voice pipeline or Custom harness agent speaks the brief in its own voice.
A Realtime voice API or Connected agent speaks with its vendor’s voice, so Studio speaks the brief (and the secure detour’s message) itself, with a text-to-speech credential in your account. Choose that voice on the agent’s Model & voice or Connected agent section, under Voice for Studio’s own lines. Where the vendor also sells the agent’s voice as text-to-speech (some Deepgram, Rime Prism and ElevenLabs voices), Speak them in the agent’s voice uses that voice.
When a transfer does not go through
If the transfer does not go through sets what happens for each outcome: No answer, Busy, Declined and Error. For each, choose:
Every failed transfer is recorded in the call history with its reason and what was done.
Secure detour and return
Secure detour and return sends the caller to another system, such as a card-payment line or an identity check, with recording paused, then brings them back to the agent where they left off. The other system talks to the caller; the agent is not on the call.
The agent gets a secure_detour tool. A Connected agent calls a client-side tool instead, named in Detour tool
name in your … agent; it takes no parameters.
Media during the detour:
With Partial media or No media, nothing after the detour is recorded, including the rest of the conversation with the agent. No media also needs the far-end SBC or carrier to accept the media change, and full media release enabled on the jambonz SBCs; test it with your provider first.
Keypad digits are never written to any log during the detour.
The fold sets what happens next:
How the agent learns the caller is back depends on its kind: a pipeline agent gets it as context and carries on; a Realtime voice API agent gets it in its session, which depends on the vendor keeping the session across the detour; a Dialogflow CES agent gets the event in the same session; an ElevenLabs agent starts a new conversation, given the conversation so far; a Custom harness gets a transfer event with the outcome.
Hanging up
Turn on Let the agent hang up to give the agent a hangup tool, so it can end the call when the conversation is
over. It is on for new agents.
A Custom harness ends the call with a hangup command. A Dialogflow CES agent ends the call by ending its session; Studio hangs up and records the reason CES gives.
What blocks publishing
- transfer is on with no destination, or the destination is not valid (a phone number not in E.164 form, a SIP URI
that does not start with
sip:orsips:) - Chosen by the agent with an empty template, or a template or header that uses an argument the agent does not supply
- the secure detour is on with no destination
- Send to another jambonz application with no application chosen