Skip to content

Commit

Permalink
opensips-cli: Add options feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusstefan committed Jul 31, 2024
1 parent 6507696 commit 0b7573e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sipssert/tasks/opensips-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def get_task_args(self):

if self.script:
args.append(self.script)

options = self.config.get("options", {})

for k, v in options.items():
args.append("-o")
args.append(f"{k}={v}")

return args

Expand Down

0 comments on commit 0b7573e

Please sign in to comment.