version: '2'

networks:
  testbed:
    driver: bridge
    ipam:
      config:
        - subnet: 172.29.0.0/16

services:

  drachtio-sut:
    image: drachtio/drachtio-server:latest
    command: drachtio --contact "sip:*;transport=udp" --loglevel info --sofia-loglevel 3
    container_name: drachtio-sut
    ports:
      - "9061:9022/tcp"
    networks:
      testbed:
        ipv4_address: 172.29.0.10

  sipp-uas-cancel:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-cancel.xml
    container_name: sipp-uas-cancel
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.12

  sipp-uas:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas.xml
    container_name: sipp-uas
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.13

  sipp-uas-404:
    image: drachtio/sipp:latest
    container_name: sipp-uas-404
    command: sipp -sf /tmp/uas-404.xml
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.14

  sipp-uas-auth:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-auth.xml
    container_name: sipp-uas-auth
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.15

  sipp-uas-auth-register:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-auth-register.xml
    container_name: sipp-uas-auth-register
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.16

  sipp-uas-auth-register-no-realm:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-auth-register-no-realm.xml
    container_name: sipp-uas-auth-register-no-realm
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.17

  sipp-uas-refer:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-refer.xml
    container_name: sipp-uas-refer
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.18

  drachtio-uas:
    image: drachtio/drachtio-server:0.8.2
    command: drachtio --contact "sip:*;transport=udp" --loglevel debug --sofia-loglevel 9
    container_name: drachtio-uas
    ports:
      - "9062:9022/tcp"
    networks:
      testbed:
        ipv4_address: 172.29.0.19

  sipp-uas-fast-reinvite:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-reinvite.xml
    container_name: sipp-uas-fast-reinvite
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.20

  sipp-uas-reinvite-overlap:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-reinvite-overlap.xml
    container_name: sipp-uas-reinvite-overlap
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.21

  sipp-uas-302:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-302.xml
    container_name: sipp-uas-302
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.22


  sipp-uas-prack:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-prack.xml
    container_name: sipp-uas-prack
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.23

  sipp-uas-bye-with-auth:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-bye-with-auth.xml
    container_name: sipp-uas-bye-with-auth
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.24

  sipp-uas-reinvite-with-auth:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-reinvite-with-auth.xml
    container_name: sipp-uas-reinvite-with-auth
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.25

  sipp-uas-options:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-options-expect-200.xml
    container_name: sipp-uas-options
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.26

  sipp-uas-407-no-auth-header:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-407-no-auth-header.xml
    container_name: sipp-uas-407-no-auth-header
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.27

  sipp-uas-200-ok-no-contact-cancel:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-200-ok-no-contact-cancel.xml
    container_name: sipp-uas-200-ok-no-contact-cancel
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.28

  sipp-uas-fast-update:
    image: drachtio/sipp:latest
    command: sipp -sf /tmp/uas-update-with-sdp.xml
    container_name: sipp-uas-fast-update
    volumes:
      - ./scenarios:/tmp
    tty: true
    networks:
      testbed:
        ipv4_address: 172.29.0.29
