Need some help setting up agent assisted call tran...
# ask-ai
c
Need some help setting up agent assisted call transfer so basically when user request to speak with human agent, livekit transfers the call to my asterisk ring group(444). I have read the documentation comprehensively and it appears am running into an error. I want to use my Asterisk as the SIP provider which I have configured. I have also configured an outbound trunk with the asterisk server public IP as the sip uri. However the call transfer does not hit my asterisks i.e I don't see any Livekit logs in the asterisk logs. below is a recent log from my livekit agent. callId: "SCL_jwqXxncJYvt6" trunkId: "ST_ZopYScFRzoBp" region: "ofrankfurt1b" roomName: "Adobea-_+233554804536_LavUjZkFvDvx-supervisor" participantIdentity: "supervisor-sip" participantAttributes: {sip.callID: "SCL_jwqXxncJYvt6" sip.callStatus: "dialing" sip.phoneNumber: "9040" sip.trunkID: "ST_ZopYScFRzoBp" sip.trunkPhoneNumber: "+233552571977" } fromUri: {user: "+233552571977" host: "10jm8zxz62v.sip.livekit.cloud" ip: "161.115.161.188" port: 9000 } toUri: {user: "9040" host: "13.51.240.157" port: 5061 transport: "SIP_TRANSPORT_UDP" } callDirection: "SCD_OUTBOUND" callStatus: "SCS_ERROR" createdAtNs: "1760019928752680589" endedAtNs: "1760019961937773714" error: "transaction failed to complete (0 intermediate responses)" }
t
Thanks for reaching out, John. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's walk through setting up agent-assisted call transfer with LiveKit and Asterisk together. Here's what you'll want to check: • Make sure LiveKit SIP is set up with both inbound and outbound trunks. For the outbound trunk, it should point to your Asterisk server's public IP as the SIP URI. • Your Asterisk server needs to support SIP REFER requests, which handle call transfers. Double-check that your Asterisk configuration allows SIP REFER and that your dial plan is ready to manage transferred calls. • Verify that the SIP trunk configuration in LiveKit aligns with what your Asterisk server expects, including the transport protocol and port. The error message "transaction failed to complete (0 intermediate responses)" usually means the SIP REFER request isn’t reaching your Asterisk server or might be getting rejected. To help resolve this, please check: • The network connection between LiveKit and your Asterisk server, including any firewall rules and NAT settings that might be affecting communication. • Your Asterisk server logs to see if the SIP REFER request is coming through. If it’s not, take another look at the SIP trunk setup in LiveKit. • That the SIP URI in the "toUri" field is formatted exactly as your Asterisk server expects. If you’d like, I’m here to help you test the SIP REFER functionality or troubleshoot the integration further. Just let me know! Sources: Transferring calls | LiveKit Docs | examples/warm-transfer/README.md | sip-refer/README.mdoc | Agent-assisted warm transfer | LiveKit Docs | README.md