Skip to content

Commit

Permalink
Merge pull request #22 from dariusstefan/main
Browse files Browse the repository at this point in the history
opensips-cli: Add options feature.
  • Loading branch information
razvancrainea authored Jul 31, 2024
2 parents 6507696 + 0b7573e commit dd6d948
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 dd6d948

Please sign in to comment.