You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using LiveKit (Cloud) for a while and been enjoying it so far (thank you for building and maintaining it everyday).
I'm building a voice agent using LiveKit Agents and relying on LiveKit SIP for inbound and outbound telephony alongside Twilio for (elastic) trunking and a local VoIP company that provides me with local (regional) phone numbers.
I have set up inbound and outbound trunks as well as the appropriate dispatch rules to handle incoming SIP traffic.
For reference, here are my (redacted) trunks and dispatch rules:
My agent needs to transfer calls to a human operator using one of its tools. Originally, the implementation used the transfer_sip_participant method like this:
Unfortunately, during testing I discovered that when the agent calls this tool, it fails with
livekit.api.twirp_client.TwirpError: ('internal', 'SIP REFER failed with code 603')
Further debugging revealed that, apparently, the SIP request never reaches Twilio, as there are no logs regarding failed connection attempts (or any logs at all, for the matter).
I've also tried using other transfer_to values (as per the docs), none of them work.
Which, again, works fine and the called number receives a call from the number configured in my outbound trunk (which is also properly authorized in Twilio as a caller ID).
My issue with this method is that it's messy and the called number sees the outbound trunk's number as the caller id (ideally, it should see the original caller's caller ID)
Let me know if you need more details.
Best Regards,
Ramón
The text was updated successfully, but these errors were encountered:
Hello!
I've been using LiveKit (Cloud) for a while and been enjoying it so far (thank you for building and maintaining it everyday).
I'm building a voice agent using LiveKit Agents and relying on LiveKit SIP for inbound and outbound telephony alongside Twilio for (elastic) trunking and a local VoIP company that provides me with local (regional) phone numbers.
I have set up inbound and outbound trunks as well as the appropriate dispatch rules to handle incoming SIP traffic.
For reference, here are my (redacted) trunks and dispatch rules:
My agent needs to transfer calls to a human operator using one of its tools. Originally, the implementation used the
transfer_sip_participant
method like this:Unfortunately, during testing I discovered that when the agent calls this tool, it fails with
Further debugging revealed that, apparently, the SIP request never reaches Twilio, as there are no logs regarding failed connection attempts (or any logs at all, for the matter).
I've also tried using other
transfer_to
values (as per the docs), none of them work.transfer_to="sip:+34123456789@<redacted>.pstn.twilio.com;transport=udp"
transfer_to="tel:+34<called_number>"
My understanding here is that this must be a bug or me somehow messing up the outbound rules.
In the meantime, I had to implement a temporary call transfer method using outbound calling and that works without any issue.
The implementation looks like
Which, again, works fine and the called number receives a call from the number configured in my outbound trunk (which is also properly authorized in Twilio as a caller ID).
My issue with this method is that it's messy and the called number sees the outbound trunk's number as the caller id (ideally, it should see the original caller's caller ID)
Let me know if you need more details.
Best Regards,
Ramón
The text was updated successfully, but these errors were encountered: