Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.32 KB

asterisk.md

File metadata and controls

52 lines (38 loc) · 1.32 KB

SIPssert Testing Framework Asterisk PBX Task

Task used to execute Asterisk PBX server.

Behavior

The task runs the Asterisk PBX server in a daemon container. One may provide a few custom configuration files, which are by default mounted in the /etc/asterisk directory.

Defaults

The variables overwritten by default by the task are:

  • image: default image to run is yaroslavonline/asterisk

Settings

Additional settings that can be passed to the task:

  • config_files: optional, list of paths to configuration files. List item should be formed as asterisk config:local config. For example, if you've got a dialplan config in scenario dir, called extensions.conf, task config_files param will look like:
config_files:
  - "extensions.conf:extensions.conf"

Example

Imagine, you've got subfolder, named asterisk, in scenario dir. Execute an asterisk task:

- name: Asterisk
  type: asterisk
  config_files:
    - "ari.conf:asterisk/ari.conf"
    - "http.conf:asterisk/http.conf"
    - "keys/cert.pem:asterisk/keys/cert.pem"
    - "keys/key.pem:asterisk/keys/key.pem"
  ready:
    wait: 3

- name: Curl
  image: alpine/curl 
  args:
    - "-f"
    - "-k"
    - "-I"
    - "https://{{ asterisk_ip }}:8089/httpstatus"
  require:
    Ready: Asterisk