livekit-cli
livekit-cli copied to clipboard
fix(sip): implicitly paginate sip trunk queries to skirt twirp limits
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.