early-fall-57331
11/04/2025, 11:02 PM14:40:31.310595 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: INVITE <sip:24b873a3-ab48-4f0a-9c8d-7590ca23aacb@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:40:31.312208 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 100 Processing
14:40:31.351975 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 407 Unauthorized
14:40:31.352024 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: ACK <sip:24b873a3-ab48-4f0a-9c8d-7590ca23aacb@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:40:31.354423 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: INVITE <sip:24b873a3-ab48-4f0a-9c8d-7590ca23aacb@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:40:31.356091 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 100 Processing
14:40:31.358843 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 401 Bad credentials
14:40:31.358943 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: ACK <sip:24b873a3-ab48-4f0a-9c8d-7590ca23aacb@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
PCAP of it succeeding a few minutes later without any configuration changes:
14:43:24.073062 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: INVITE <sip:302365fe-f58f-4b01-8f34-a735f919d486@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:43:24.074502 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 100 Processing
14:43:24.118803 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 407 Unauthorized
14:43:24.118853 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: ACK <sip:302365fe-f58f-4b01-8f34-a735f919d486@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:43:24.121232 IP ec2-54-172-60-2.compute-1.amazonaws.com.sip > 161.115.178.89.sip: SIP: INVITE <sip:302365fe-f58f-4b01-8f34-a735f919d486@4wxwgg2qj6t.sip>.livekit.cloud SIP/2.0
14:43:24.122531 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 100 Processing
14:43:24.180973 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 180 Ringing
14:43:24.287897 IP 161.115.178.89.sip > ec2-54-172-60-2.compute-1.amazonaws.com.sip: SIP: SIP/2.0 200 OKearly-fall-57331
11/04/2025, 11:03 PM<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial answerOnBridge="true" action="/twilio/handle-teammate-agent-call-status?recording_id=302365fe-f58f-4b01-8f34-a735f919d486" method="POST" timeout="10" record="record-from-ringing">
<Sip username="top-secret" password="top-secret"><sip:302365fe-f58f-4b01-8f34-a735f919d486@4wxwgg2qj6t.sip>.livekit.cloud</Sip>
</Dial>
</Response>refined-appointment-81829
11/04/2025, 11:20 PMearly-fall-57331
11/05/2025, 1:00 AMIf it is correct there is an issue with Twilio.Can you clarify? Twilio is forwarding an inbound call to LiveKit. If the HMAC response is correctly calculated by Twilio, then there's an issue with LiveKit, right?
refined-appointment-81829
11/05/2025, 1:01 AMrefined-appointment-81829
11/05/2025, 1:01 AMearly-fall-57331
11/05/2025, 1:02 AMProxy-Authorization response for a successful call and a failure call, and came up with the same result Twilio did in both cases. But one was rejected by LiveKit with a 401 response for no apparent reason.refined-appointment-81829
11/05/2025, 1:02 AMearly-fall-57331
11/05/2025, 1:03 AMrefined-appointment-81829
11/05/2025, 1:03 AMearly-fall-57331
11/05/2025, 1:03 AMrefined-appointment-81829
11/05/2025, 1:21 AMto in that PCAP a UUID?refined-appointment-81829
11/05/2025, 1:21 AMearly-fall-57331
11/05/2025, 1:57 AMto is the name of the LiveKit room that we want to join, and that room name happens to be a UUID (corresponding to an internal identifier).
We have "Callee" dispatch rule set up to make this work.refined-appointment-81829
11/05/2025, 2:32 AMNo challenge state found for authentication attempt
11/4/2025, 4:40:31 PM
Error: missing challenge state
I will need to look into this more.early-fall-57331
11/05/2025, 2:44 AMrefined-appointment-81829
11/05/2025, 1:53 PMearly-fall-57331
11/05/2025, 3:51 PM