hello, i deployed an agent using the new cloud age...
# agents
r
hello, i deployed an agent using the new cloud agents into my livekit account, i can make an inbound call with my twilio BUT i cannot get it to end the call on my phone (it deletes the room but the call remains connected on my phone for ages). I had this working locally before i deployed it on the livekit cloud by using lk agent deploy some logs in the thread here
Copy code
message": "connecting to room call_+NUMBER_TMNBxt99rHu4", "level": "INFO", "name": "agent", "room": "call_+NUMBER_TMNBxt99rHu4", "pid": 135, "job_id": "AJ_dieAuad7Uc4P", "timestamp": "2025-08-25T18:02:24.750231+00:00"}
{"message": "initializing process", "level": "INFO", "name": "livekit.agents", "pid": 297, "timestamp": "2025-08-25T18:02:24.852968+00:00"}
{"message": "process initialized", "level": "INFO", "name": "livekit.agents", "pid": 297, "elapsed_time": 0.21, "timestamp": "2025-08-25T18:02:25.067239+00:00"}
{"message": "Agent initiating call termination via tool", "level": "INFO", "name": "agent", "room": "call_+NUMBER_TMNBxt99rHu4", "pid": 135, "job_id": "AJ_dieAuad7Uc4P", "timestamp": "2025-08-25T18:02:34.499461+00:00"}
{"message": "process exiting", "level": "INFO", "name": "livekit.agents", "reason": "", "pid": 135, "job_id": "AJ_dieAuad7Uc4P", "timestamp": "2025-08-25T18:02:37.253023+00:00"}
{"message": "Room disconnected, reason: 1", "level": "INFO", "name": "agent", "room": "call_+NUMBER_TMNBxt99rHu4", "pid": 135, "job_id": "AJ_dieAuad7Uc4P", "timestamp": "2025-08-25T18:02:37.280106+00:00"}
{"message": "Deleted room call_+NUMBER_TMNBxt99rHu4, call ended", "level": "INFO", "name": "agent", "room": "call_+NUMBER_TMNBxt99rHu4", "pid": 135, "job_id": "AJ_dieAuad7Uc4P", "timestamp": "2025-08-25T18:02:37.335107+00:00"}
{"message": "draining worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_BUFzYd9NTZvV", "timeout": 1800, "timestamp": "2025-08-25T18:03:19.675522+00:00"}
{"message": "shutting down worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_BUFzYd9NTZvV", "timestamp": "2025-08-25T18:03:19.676002+00:00"}
{"message": "process exiting", "level": "INFO", "name": "livekit.agents", "reason": "", "pid": 95, "inference": true, "timestamp": "2025-08-25T18:03:19.689752+00:00"}
r
What is the ID of the trunk you are using. It should start with
ST_
Or better is the callid that starts with
SCL_
r
ST_JCSfGGPdMXxy
This was the session: RM_Bd7XUaiganUJ Sorry cant find the callid?
r
Can your try and disable SIP encryption and see if that resolves the issue
r
my god i just spend 6 hours on this and u solve it in a min
so media encryption stops the call from properly sending BYE to twilio?
r
Yes, we are looking into it.
r
Well thank you very much sir, can i send you something in return? happy to donate coffee
r
No, coffee needed. I am sorry you bumped into it.
r
All good
hey is it possible for agents to send things like a end of call report? is tehre a recommended set up for this? using a wehook or directly into the livekit somehow?
thanks for your time 🙂
r
What is a
end of call report
?
r
hmm so for example i could send like the transcript, cost and duration of the call to somwhere like airtable
r
The agent can send that to your server if you like. Just add to code to send what you want 🙂
r
Oh aweosme, ok thanks 🙂