What works
- Calls from 3CX to your agent
- Outbound calls from your agent through 3CX
- Transfers back to 3CX extensions, with SIP REFER
- The original caller ID, passed to the agent in SIP headers
Prerequisites
- 3CX version 20, reachable from the internet on a fully qualified domain name (FQDN), for example
yourcompany.3cx.com - Admin access to the 3CX Management Console
- A Bland account with SIP trunking enabled. If there is no SIP tab under Phone numbers, contact Bland support
Configure 3CX
Add a SIP trunk for Bland
us2.sip.bland.ai, port 5061, transport TLS. The other regions are under Connection endpoints.Use IP-based authentication, with no registration. If 3CX asks for a main trunk number, enter one of the numbers you will route to Bland.Set encryption and codecs
Check the public IP
Allow Bland on your firewall
Route calls to Bland
Configure Bland
Open the setup wizard
Provider
yourcompany.3cx.com. Add a port only if 3CX listens for TLS on a port other than 5061.Firewall
Authentication
Numbers
+61370000000.Assign an agent
Transfer callers back to 3CX
Use SIP REFER. 3CX resolves the extension, rings it, and Bland leaves the call. In the agent’s Transfer Call node, turn on Allow SIP/DID targets and Hand off via SIP REFER. Enter the target as a SIP URI with the extension number:Caller ID
When 3CX forwards a call to Bland, it sends the original caller in theP-Asserted-Identity, Remote-Party-ID, and Diversion headers. Your agent reads them as {{sip_header_x-original-pai}}, {{sip_header_x-original-rpid}}, and {{sip_header_x-original-diversion}}. See SIP headers. A value of anonymous means the caller withheld their number.
To keep the original caller in the From header too, set these outbound parameters on the Bland trunk in 3CX:
- From: User Part:
OriginatorCallerID - From: Display Name:
OriginatorCallerDisplayName
Common failures
Calls connect with one-way or no audio
Calls connect with one-way or no audio
Calls are rejected with 488 Not Acceptable Here
Calls are rejected with 488 Not Acceptable Here
Calls are challenged with 407 Proxy Authentication Required
Calls are challenged with 407 Proxy Authentication Required
The TLS connection to Bland fails
The TLS connection to Bland fails
A transfer rings nothing, and 3CX never responds
A transfer rings nothing, and 3CX never responds
A REFER to a phone number fails
A REFER to a phone number fails
sip:1018@yourcompany.3cx.com.The call ended on the phone but stays live in Bland
The call ended on the phone but stays live in Bland
BYE didn’t reach Bland. Check nothing between 3CX and Bland closes the TLS connection early, and share the call’s SIP trace with Bland support. 3CX’s own packet capture helps compare both sides.