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 277207e
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
@@ -410,14 +422,19 @@ type simulateConfig struct {
410
422
scenarioGroup*livekit.ScenarioGroup
411
423
scenariosPathstring// path to the --scenarios file (empty when generating from source)
412
424
viewModeRunIDstring// non-empty when `view` opens a pre-existing run
413
-
liveAgentbool// --agent-name: run against an already-running agent, don't spawn one
425
+
liveAgentbool// --agent-name or --to-phone-number: run against an already-running agent, don't spawn one
414
426
warnings []string// config-level warnings surfaced at setup (e.g. ignored flags)
415
427
416
428
// impairments on the simulated user's audio, set only in SIMULATION_MODE_AUDIO
417
429
backgroundNoisebool
418
430
lowQualityMicrophonebool
419
431
packetLossbool
420
432
433
+
// --to-phone-number: dial this number over SIP in place of dispatching agentName
0 commit comments