livekit-cli icon indicating copy to clipboard operation
livekit-cli copied to clipboard

fix(sip): implicitly paginate sip trunk queries to skirt twirp limits

Open rektdeckard opened this issue 4 months ago • 0 comments

https://linear.app/livekit/issue/CUS-276/livekit-cli-add-support-for-pagination-to-lk-sip-outboundinbound-list

Creates an ExhaustivePaginatedList helper function for chunking large data sets using repeated paginated List* SDK requests to skirt Twirp's 4MB payload limit. Implements it for sip inbound list and sip outbound list.

We should also apply this to other potentially large data sets for room, dispatch, ingress and egress list operations.

Worth noting: the SIP SDK does not seem to respect the Limit yet, but this change should be transparent and will resolve when SDKs are updated.

rektdeckard avatar Sep 30 '25 00:09 rektdeckard