Skip to content

Task add working dir feature#52

Merged
razvancrainea merged 3 commits intoOpenSIPS:mainfrom
rybushkindmitry:task--add-working-dir-feature
Jan 8, 2026
Merged

Task add working dir feature#52
razvancrainea merged 3 commits intoOpenSIPS:mainfrom
rybushkindmitry:task--add-working-dir-feature

Conversation

@rybushkindmitry
Copy link
Copy Markdown
Contributor

The working_dir parameter adds the ability to change default working directory for container.

When using TLS transport, SIPp will expect to have two files in the current directory: a certificate (cacert.pem) and a key (cakey.pem). If one is protected with a password, SIPp will ask for it.

Create a docker volume and place the certificate files in it.
Mount volume with certificates to the container and setup working_dir to that folder.
Specify in the args to use the TLS transport with options "-t l1".

tasks:
...
  - name: tls client
    type sipp
    config_file: invite.xml
    working_dir: /certs
    args: "-t l1"
    volumes:
      - sipp-certs
...

volumes:
  sipp-certs:
    bind: /certs
    mode: ro

@razvancrainea
Copy link
Copy Markdown
Member

Awesome, thanks for the PR!

@razvancrainea razvancrainea merged commit 67e5181 into OpenSIPS:main Jan 8, 2026
1 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants