You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8b959be
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cmd/lk/simulate.go
+44-2Lines changed: 44 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,18 @@ var simulateAudioCommand = &cli.Command{
175
175
Name: "packet-loss",
176
176
Usage: "Drop packets from the simulated user's audio track",
177
177
},
178
+
&cli.StringFlag{
179
+
Name: "to-phone-number",
180
+
Usage: "Call this `NUMBER` over SIP and simulate against whoever answers, instead of dispatching an agent. Requires --from-phone-number and --scenarios.",
181
+
},
182
+
&cli.StringFlag{
183
+
Name: "from-trunk",
184
+
Usage: "Outbound SIP trunk `ID` to place --to-phone-number calls through. Without it, calls go out from a LiveKit phone number.",
185
+
},
186
+
&cli.StringFlag{
187
+
Name: "from-phone-number",
188
+
Usage: "Caller `NUMBER` for --to-phone-number calls: a LiveKit phone number the project owns, or a number on --from-trunk",
189
+
},
178
190
},
179
191
}
180
192
@@ -414,14 +426,19 @@ type simulateConfig struct {
414
426
scenarioGroup*livekit.ScenarioGroup
415
427
scenariosPathstring// path to the --scenarios file (empty when generating from source)
416
428
viewModeRunIDstring// non-empty when `view` opens a pre-existing run
417
-
liveAgentbool// --agent-name: run against an already-running agent, don't spawn one
429
+
liveAgentbool// --agent-name or --to-phone-number: run against an already-running agent, don't spawn one
418
430
warnings []string// config-level warnings surfaced at setup (e.g. ignored flags)
419
431
420
432
// impairments on the simulated user's audio, set only in SIMULATION_MODE_AUDIO
421
433
backgroundNoisebool
422
434
lowQualityMicrophonebool
423
435
packetLossbool
424
436
437
+
// --to-phone-number: dial this number over SIP in place of dispatching agentName
0 commit comments