The Call Transfer tool lets your AI agent transfer an active telephony call to a phone number or SIP endpoint. You can configure a fixed destination, use a template from call context, or resolve the destination at transfer time by calling your HTTP endpoint.
When the LLM decides a transfer is needed, it calls the Call Transfer tool. Dograh resolves the destination, validates the transfer setup, and then starts the provider transfer.
For a successful transfer:
1. The agent calls the Call Transfer tool.
2. Dograh resolves the destination from either static configuration or a dynamic HTTP resolver.
3. Dograh optionally plays a pre-transfer message.
4. Dograh starts dialing the destination through the telephony provider.
5. The caller hears hold music while the destination leg is connecting.
6. When the destination answers, Dograh connects the caller and ends the AI agent's involvement.
The transfer is a blind transfer. Dograh does not currently pass conversation context to the receiving human as part of the transfer.
## Destination source
You must choose one destination source for each Call Transfer tool.
### Static / Template
Use this when the transfer destination is already known before the transfer happens.
Static destinations can be:
- A fixed E.164 phone number, such as `+1234567890`
- A SIP endpoint, such as `PJSIP/sales-queue`
- A template value from context, such as `{{initial_context.transfer_destination}}`
This is the simplest option for fixed support lines, fixed departments, or cases where the destination is provided before the call starts.
### Dynamic HTTP Resolver
Use this when the destination must be decided during the conversation.
Dograh sends a `POST` request to your resolver endpoint before starting the transfer. Your endpoint returns the destination and may return a custom message to play before dialing.
Common use cases:
- Route by region, timezone, or language
- Look up the right account team in your customer system
- Route by customer tier or account status
- Route by issue type, language, or department
- Use business logic from your backend instead of hardcoding numbers in Dograh
- **LLM parameters**: values the agent extracts from the conversation when it calls the transfer tool
- **Preset parameters**: values Dograh injects from fixed values or templates such as `{{initial_context.account_id}}` or `{{gathered_context.billing_issue_type}}`
Follow this response shape exactly. Dograh reads specific keys from the resolver response. For dynamic transfer resolution, an invalid response does not fall back silently: the transfer fails before dialing.
- `destination`: Required. E.164 phone number or SIP endpoint.
- `custom_message`: Optional. If returned, this message is played before the provider transfer starts.
If the resolver fails, times out, returns invalid JSON, or omits `transfer_context.destination`, the transfer fails gracefully and the agent can continue handling the caller.
## Dynamic resolver configuration
When using a dynamic resolver, configure:
- **Resolver URL**: HTTPS or HTTP endpoint Dograh calls with `POST`
- **Resolver Timeout**: How long Dograh waits for the resolver response
- **Resolver Wait Message**: Optional message spoken while Dograh waits, such as "One moment while I find the right team."
- **LLM Parameters**: Values the agent should extract from the conversation, such as `billing_issue_type` or `requested_department`
- **Preset Parameters**: Values injected by Dograh from context or fixed values
- **Custom Headers**: Static headers sent to your resolver endpoint
- **Credential**: Optional saved credential used to authenticate the resolver request
<Note>
The dynamic resolver uses `POST` only. If you need custom backend behavior, implement it behind your resolver endpoint and return the expected `transfer_context` shape.
</Note>
## Pre-transfer messages
Call Transfer supports a common pre-transfer message setting for both static and dynamic destinations.
For static transfers:
1. Dograh resolves the static or template destination.
2. Dograh plays the configured pre-transfer message, if any.
3. Dograh starts the provider transfer.
For dynamic transfers:
1. Dograh may play the resolver wait message while calling your resolver.
2. If the resolver returns `custom_message`, Dograh plays that message.
3. If the resolver does not return `custom_message`, Dograh uses the configured pre-transfer message.
4. Dograh starts the provider transfer.
Resolver `custom_message` overrides the configured pre-transfer message for that transfer attempt.
## Transfer timeout
Transfer timeout is the maximum time Dograh waits for the destination to answer after the provider transfer starts.
This timeout applies to both static and dynamic transfers.
The resolver timeout is separate. It controls only how long Dograh waits for your HTTP resolver before dialing starts.
## Destination formats
### Twilio and Telnyx
Use E.164 phone numbers:
```text
+1234567890
```
The number must be reachable from your telephony provider.
### Asterisk ARI
Use SIP endpoints:
```text
PJSIP/sales-queue
SIP/1001
```
<Warning>
Asterisk ARI transfers only work with SIP endpoints configured on your Asterisk server. External phone numbers require PSTN trunk configuration in your Asterisk setup.
</Warning>
## Example: route enterprise billing calls
Use this setup when the agent identifies a billing issue and your backend decides whether to route the caller to standard billing, enterprise billing, or collections.
Configure LLM parameters:
```json
[
{
"name": "billing_issue_type",
"type": "string",
"description": "The billing issue the caller needs help with, such as invoice_dispute, payment_failed, refund_request, or plan_change.",
"required": true
},
{
"name": "requested_department",
"type": "string",
"description": "The department the caller is asking for, if they explicitly mention one.",