Repository navigation
feat(simulate): run audio simulations against a phone number with --to-phone-number - #1035
Merged
Merged
Conversation
u9g
force-pushed
the
jason/simulate-phone-number
branch
from
October 13, 2026 22:27
44934b1 to
af4b79b
Compare
u9g
force-pushed
the
jason/simulate-phone-number
branch
from
October 14, 2026 02:34
af4b79b to
8b959be
Compare
Contributor
Author
|
simulate-phone-number.mp4 |
u9g
force-pushed
the
jason/simulate-phone-number
branch
from
October 26, 2026 16:08
8b959be to
277207e
Compare
Without a number to call, a caller number would be dropped and the run would dispatch an agent instead.
u9g
force-pushed
the
jason/simulate-phone-number
branch
from
October 26, 2026 20:53
228eb1b to
9f26636
Compare
theomonnom
approved these changes
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lk agent simulate audiocan now run a scenarios file against a phone number instead of an agent:Each simulation calls
--to-phone-numberover SIP, and whoever answers is the agent under test. This tests a production telephony agent through its real number and SIP path, with no simulation code in the agent. Nothing is spawned locally, so, as with--agent-name,--scenariosis required.--to-phone-number--from-phone-number.--trunk--to-phone-number.--from-phone-number--trunk. Always required, so every simulation call has a caller ID that belongs to whoever runs it.The flags map one-to-one onto the new
SimulationRun.Create.Requestfields (sip_call_to,sip_trunk_id,sip_number), which matchCreateSIPParticipantRequest. The flag names matchlk sip participant create(--trunk,--from-phone-number,--to-phone-number; after #1083).Depends on livekit/protocol#1858 (the request fields) and livekit/agents-private#549 (the simulation service that places the call). Release after #549 is deployed: an older server ignores the new fields and would dispatch an agent with an empty name instead of calling the number.
Commits
chore: bump protocol for the simulation run's SIP fieldsfeat(simulate): run audio simulations against a phone number with --to-phone-numberfix(simulate): reject --from-phone-number without --to-phone-numberrefactor(simulate): name the SIP trunk flag --trunk