From 0b7573e8564c7f1a683b9c0c89488d95b533511b Mon Sep 17 00:00:00 2001 From: Stefan Darius <94108614+dariusstefan@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:09:31 +0300 Subject: [PATCH] opensips-cli: Add options feature. --- sipssert/tasks/opensips-cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sipssert/tasks/opensips-cli.py b/sipssert/tasks/opensips-cli.py index c08a08d..d57e432 100644 --- a/sipssert/tasks/opensips-cli.py +++ b/sipssert/tasks/opensips-cli.py @@ -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