Transfer calls using SIP REFER

SIP REFER lets your phone system ask Telnyx to transfer a participant in an active call to another destination. This guide explains the transfer flow, status notifications, caller ID options, and encryption settings for the transferred leg.

Before you begin

Your phone system must support SIP REFER and transfer-status notifications through SIP NOTIFY. Configure the destination to accept the transferred call and support any signaling and media encryption you request.

How a REFER transfer works

For an inbound call, caller A calls your Telnyx number B. Telnyx delivers the call to your phone system, which sends a REFER on the active call to transfer A to destination C.

Inbound SIP REFER flow showing A calling B through Telnyx, B sending REFER, and Telnyx creating a new leg to C with the requested TLS and SRTP settings.

For an outbound call, your phone system A calls customer B. Your phone system can then send a REFER to transfer B to destination C.

The Refer-To header identifies the transfer destination. For a SIP destination, it can contain a URI such as:

Refer-To: <sip:recipient@example.com>

Telnyx processes the transfer request and attempts to establish the transferred leg. Your phone system receives transfer-status information through NOTIFY.

A 202 Accepted response acknowledges acceptance of the REFER request. Check the subsequent transfer outcome to determine whether the destination answered.

Blind transfer confirmation

A blind transfer sends a participant to another destination before the transferring party speaks to that destination.

The Confirm blind transfer setting controls when Telnyx reports the result to your phone system. Find it under your SIP connection's Configuration → Advanced settings in Mission Control.

SettingBehavior
EnabledTelnyx waits for the transfer outcome. If the destination answers, Telnyx reports success through NOTIFY. If the transfer fails, Telnyx reports failure and keeps the original call connected.
DisabledTelnyx reports success immediately and releases the transferring party while the destination is being called. An immediate success notification does not establish that the destination answered.

Your phone system must handle NOTIFY messages and retain the original call while awaiting the result when confirmation is enabled.

An automated service or voicemail can answer the transferred call. Confirmation reports the call outcome without distinguishing a person from an automated answer.

Choose the caller ID sent to the destination

The Caller ID for Transfer Target setting selects which participant's number Telnyx sends to the destination.

OptionNumber sent to the destination
From Transferee — defaultThe participant being transferred
From TransferorThe participant initiating the transfer

For an inbound A → B → C transfer, these options select A or B respectively. For an outbound call where A calls B and transfers B to C, they select B or A respectively.

The setting is available on eligible Credential, IP, and FQDN SIP connections. Configure it under Configuration → Advanced, save the connection, and verify the received caller ID with a test transfer. Choose caller ID for SIP call transfers

Request TLS and SRTP for the transferred leg

Encryption is configured for each call leg. For example, an inbound connection's SRTP setting controls media delivered to that connection. A REFER to an external SIP domain creates another leg with its own signaling and media requirements.

TLS encrypts SIP signaling. SRTP encrypts media. Request each mechanism independently through parameters inside the Refer-To SIP URI.

URI parameterRequested behavior
transport=tlsUse TLS for signaling on the transferred leg
secure=srtpRequire SRTP for media on the transferred leg
Both parametersApply TLS signaling and required SRTP media together

secure=srtp is a Telnyx-specific extension. Support for it depends on the platform processing the REFER.

TLS signaling and SRTP media

Refer-To: <sip:recipient@example.com;transport=tls;secure=srtp>

TLS signaling

Refer-To: <sip:recipient@example.com;transport=tls>

This requests TLS while retaining the existing media-encryption behavior.

Required SRTP media

Refer-To: <sip:recipient@example.com;secure=srtp>

This requires SRTP while retaining the existing signaling-transport behavior.

The parameters work in either order. When a parameter is absent, the corresponding existing behavior applies.

When SRTP is explicitly required, failure to establish secure media causes the transfer attempt to fail. The attempt must not silently fall back to plain RTP.

Use a destination connection's encryption settings

You can also configure a destination SIP connection with SRTP enabled and use that connection's SIP subdomain in the Refer-To URI. Configure the signaling transport and media encryption required for that destination.

For a workflow with several transfers, configure the destination and encryption requirements for every transferred leg.

Verify a transfer

  1. Establish a call and initiate the transfer.
  2. Capture the REFER and confirm the destination and URI parameters in Refer-To.
  3. Check the REFER response and subsequent NOTIFY messages.
  4. Confirm that the destination answers and receives the expected caller ID.
  5. For encrypted transfers, verify TLS on the new signaling leg and successful SRTP negotiation and media.
  6. Confirm that the original call is released or retained as expected for the transfer outcome.

Troubleshooting

SymptomWhat to check
REFER is rejectedConfirm the request belongs to an active call and contains a valid, permitted destination.
REFER is accepted but the destination does not answerInspect the transfer-status notifications and destination-leg responses.
The destination receives an unexpected caller IDCheck Caller ID for Transfer Target on the connection handling the transfer.
TLS signaling works but media is unencryptedCheck the media requirements for the transferred leg and whether secure=srtp was included.
An SRTP-required transfer failsCheck the destination's SRTP support and media negotiation.
A later transfer has different encryption behaviorInspect the destination and encryption configuration of that individual transfer.

When contacting support, include the environment, UTC timestamp, connection ID, original-call and transferred-leg SIP Call-IDs, and a redacted trace containing the REFER, Refer-To, NOTIFY messages, and destination-leg responses.

Related articles

SIP Connection: Fail-over and RetriesIn this article we will explain fail-over and retries and how they are used to make Telnyx so reliable. See Telnyx guidance and requirements.SIP URI CallingThis article demonstrates SIP URI functionality for making inbound calls to SIP Connection. See Telnyx guidance and requirements.Configure blind transfer confirmationLearn how to enable or disable blind transfer confirmation on a Telnyx SIP connection and understand what happens when a transfer answers or fails.Choose caller ID for SIP call transfersChoose whether the destination of a SIP REFER transfer receives the transferred party’s number or the number of the party making the transfer.