I've got a freeswitch server sip transferring call...
# ask-ai
r
I've got a freeswitch server sip transferring calls to an inbound sip trunk. The agent is connecting find and audio is flowing through the call. I'm trying to get the agent to be able to escalate to another agent by transferring the call, but when it attempts to transfer the participant the call just ends. What do I need to do to make sure this functionality works?
t
Thanks for reaching out, James. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's walk through how to enable call transfer functionality in LiveKit with your FreeSWITCH server and SIP trunk together: 1. Ensure SIP REFER Support on FreeSWITCH: LiveKit relies on SIP REFER for call transfers. It’s important to check that your FreeSWITCH server is set up to accept and handle SIP REFER messages. You can look into your SIP profile settings (like
sip-profiles/internal.xml
) and make sure parameters such as
refer-blind-transfer
or
refer-invite
are turned on. 2. Check SIP Trunk Provider Settings: It’s a good idea to verify that your SIP trunk provider supports call transfers via SIP REFER. Some providers might need you to enable specific features like "Call Transfer" or "PSTN Transfer." 3. Use the LiveKit API: To initiate transfers, you can use the
TransferSIPParticipant
API. Here’s an example:
Copy code
lk sip participant transfer \
  --room my-room \
  --identity sip-participant-123 \
  --to "tel:+1234567890" \
  --play-dialtone
4. Validate Configuration: Try making a call and initiating a transfer to test everything. Keep an eye on SIP traffic to ensure REFER requests are going through properly. If you find the transfer isn’t working, checking the SIP logs on FreeSWITCH can be really helpful. Look out for errors like
403 Forbidden
or
405 Method Not Allowed
, which might mean REFER is blocked or not set up correctly. Could you let me know if your FreeSWITCH server currently supports SIP REFER messages, or if you think it might need some tweaks? That way, I can guide you through the best next steps. Sources: Agents telephony integration | LiveKit docs | Using Wavix to accept and make calls | LiveKit docs | Call forwarding | LiveKit docs