~3 s from inbound SIP INVITE to agent job dispatch (LiveKit Cloud SIP, Japan, self-hosted workers)

We run self-hosted agent workers (livekit-agents 1.8.7, Python) in Seoul, registered to a LiveKit Cloud project in the Japan region. Inbound calls come from our Asterisk to LiveKit Cloud SIP over TCP with digest auth.

Measured on a real call (timestamps from our Asterisk arrival, LiveKit call events, and agent logs):

  • INVITE → digest challenge → authenticated INVITE: ~0.04 s
  • authenticated INVITE → SIP participant joins the room: ~1.3 s
  • INVITE arrival → job request received by our worker: ~3.0 s
  • job received → agent connected and linked: ~0.6 s
  • call answered (200 OK) ~3.75 s after arrival

Our side is now ~0.7 s, so most of the ring before pickup is between the INVITE and the job dispatch. Questions:

  1. Is ~3 s from INVITE to dispatch expected for Cloud SIP with self-hosted workers (explicit dispatch via a SIP dispatch rule with agent_name)? Is there anything we can configure to shorten it?
  2. Would inbound allowed_addresses (instead of digest auth) change this, and can it be enabled on the Build plan?
  3. On the Build plan, Krisp minutes are a hard cap. When the cap is reached, what happens to an agent that applies BVCTelephony to the SIP participant’s audio: is audio passed through unfiltered, or does the stream fail?

Thanks!

Hi,

I wouldn’t expect 3s consistently - can you give me a few call IDs where you see this happening (SCL_) or (RM_) and I’ll see if I can correlate your timings with our server logs

No, I would not expect allowed_addresses to have any impact on the agent job dispatch time, but yes, allowed_addresses CAN be enabled on the Build plan.

Good question, the audio will pass through unfiltered. Please note that this is not documented behaviour, so you should not rely on this behaviour moving forward. You can use one of the non-VI models listed under ‘voice suppression’ Pricing | LiveKit as a workaround, as these are unlimited on Build.

Thanks, Darryn. Here are five recent inbound calls, with the room ID, call start in UTC, and the time from our PBX receiving the call to our self-hosted worker receiving the job.

  • RM_KRWZghPpHBmJ — 2026-10-26 13:02:51 UTC — 4.8 s
  • RM_he5o48oRE6ba — 2026-10-26 02:00:47 UTC — 4.7 s
  • RM_gVu2Jx3w3ehA — 2026-10-26 05:44:31 UTC — 4.3 s
  • RM_Lii8h6wVzjVW — 2026-10-26 03:19:42 UTC — 3.1 s
  • RM_dWExcjouPWVF — 2026-10-27 00:27:07 UTC — 2.9 s

Earlier we measured roughly 1.3 s from our INVITE to LiveKit’s 180 Ringing and 2.0 s from 180 to job dispatch. The worker runs in Google Cloud Seoul and registers to our project in the Japan region. Thanks also for the Krisp and allowed_addresses answers.

Thank you for those additional rooms, it helped me look at this a bit closer.

I had previously assumed that the report related to a delay in agent dispatch, but according to our logs, the agent dispatch was actually very quick. You can see this in the room events for the sessions you mention, https://cloud.livekit.io/projects/p_/sessions/RM_KRWZghPpHBmJ/events, once the SIP participant joins, the agent joins very shortly thereafter.

So, the delays are before the room is established, evaluating the trunk and dispatch rules. That means two things:

  1. I need to correct what I said earlier about allowed_addresses not helping - I now believe it WOULD help in your case, and would probably save you about a second. Let me know if you would like this enabled on your account.
  2. There is already a work item on the telephony team to work on improving the time this takes, although it does not currently have a date associated with it. I’ll add this write-up to that ticket as that will influence the priority.

Hi,

Thanks for digging into this, that’s very helpful, and it matches what we see on our side: the digest challenge alone comes back about 1.2 s after our INVITE.

Yes, please enable allowed_addresses for our project. Our calls come from a single Asterisk server with a static IP, so we’d restrict the inbound trunk to that one address.

One question so we set it up correctly: if a trunk has both allowed_addresses and auth_username/auth_password set, does LiveKit still send the digest challenge? If so, we’ll remove the credentials from the inbound trunk so the IP alone authenticates it.

Also, does the trunk evaluation time depend on how many trunks, numbers or dispatch rules the project has? We can tidy ours if that helps.

Thanks for adding this to the telephony ticket too. We’ll measure ring-to-agent time before and after the change and can share the numbers if that would help the team.

Best,
Max

2026년 10월 27일 (화) 오후 7:24, Darryn <notifications@livekit2.discoursemail.com>님이 작성:

Done, allowed_addresses is now enabled on your project.

I wasn’t sure, and we don’t say in the docs, so I checked the code just to be sure… If both are defined, we DO still send the digest challenge so yes, you would need to remove the credentials.

No, the number of trunks or dispatch rules would not have an impact.

Your project only has 2 trunks (one inbound and one outbound) and one dispatch rule. I double-checked this is the same project that holds the sessions you previously provided, but do you have another project with multiple trunks / rules that I need to enable allowed_addresses on?