Skip to main content

TOML

The following is an example, and default settings, of a TOML configuration:


[about]
  mascot = false

[debug]
  logging = false
  profile-cpu = false

[rtp]
  srtp = "none"

  [rtp.bleed]
    bleed-config = []
    conn-count = 10
    output = []
    port-ranges = "10000-20000,35000-65000"
    probe-all-ports = false
    probe-during-attack = false
    proto = ""
    rate = ""
    rounds = 0
    rtcp-payload = ""
    rtp-payload = ""

  [rtp.flood]
    auth-config = []
    ca-cert = ""
    call-mode = "caller"
    client-cert = ""
    client-key = ""
    codec = ["opus", "alaw", "ulaw", "opus", "gsm", "g723", "lpc", "g722", "g728", "g729", "h261", "h263"]
    conn-count = 1
    credentials = ""
    domain = ""
    extension = ""
    from = ""
    rate = ""
    register = false
    rtp-payload = "music.wav"
    templates = "."
    tls-key-log = ""

  [rtp.inject]
    conn-count = 1
    inject-config = []
    port-ranges = "10000-20000,35000-65000"
    probe-all-ports = false
    rate = ""
    rounds = 0
    rtp-payload = ""

[sip]
  ca-cert = ""
  client-cert = ""
  client-key = ""
  srtp = "none"
  templates = "."
  tls-key-log = ""

  [sip.crack]

    [sip.crack.digestleak]
      auth-config = []
      call-mode = "caller"
      challenge-config = []
      codec = ["alaw", "ulaw", "opus", "gsm", "g723", "lpc", "g722", "g728", "g729", "h261", "h263"]
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      methods = ["BYE", "INVITE"]
      output = []
      register = false
      rtp-payload = "music.wav"

    [sip.crack.online]
      auth-config = []
      close-conn = false
      conn-count = 30
      credentials-file = ""
      dictionary = ""
      domain = ""
      extensions = []
      extensions-file = ""
      from = ""
      method = "register"
      pattern = ["ext"]
      range = []
      range-fmt = ""
      rate = ""
      to = ""

  [sip.dos]

    [sip.dos.flood]
      auth-config = []
      auth-mode = ""
      caller-mode = []
      close-conn = false
      conn-count = 30
      credentials = ""
      domain = ""
      extension = ""
      extensions-file = ""
      flood-config = []
      from = ""
      max-requests = 0
      method = "REGISTER"
      no-prober = false
      rate = ""
      register = false

  [sip.enumerate]

    [sip.enumerate.extensions]
      auth-config = []
      auth-mode = "ignore"
      conn-count = 30
      credentials = ""
      domain = ""
      ext-fmt = ""
      extensions = ["0-9999", "admin"]
      extensions-file = ""
      from = ""
      method = ""
      no-prober = false
      probe-methods = ["REGISTER", "SUBSCRIBE", "NOTIFY", "PUBLISH", "MESSAGE", "INVITE", "OPTIONS"]
      probe-only = false
      rate = ""
      register = false
      to-domain = ""

    [sip.enumerate.methods]
      auth-config = []
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      methods = ["REGISTER", "SUBSCRIBE", "NOTIFY", "PUBLISH", "MESSAGE", "INVITE", "OPTIONS", "BYE", "CANCEL", "ACK", "PRACK", "INFO", "REFER", "UPDATE"]
      rate = ""
      register = false

  [sip.fuzz]

    [sip.fuzz.request]
      auth-config = []
      caller-mode = []
      close-conn = false
      conn-count = 30
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      fuzz-mode = ""
      max-requests = 0
      method = ""
      mutator = "radamsa"
      no-prober = false
      rate = ""
      register = false

  [sip.utils]

    [sip.utils.call]
      auth-config = []
      caller-mode = ["hangup-call:30s"]
      codec = ["ulaw", "alaw", "opus"]
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      register = false
      rtp-payload = "music.wav"

    [sip.utils.callee]
      auth-config = []
      callee-mode = "never-hangup"
      codec = ["ulaw", "alaw", "opus"]
      credentials = ""
      domain = ""
      from = ""
      max-calls = 0
      register = false
      rtp-payload = "music.wav"

    [sip.utils.ping]
      auth-config = []
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      interval = "1s"
      max-requests = 0
      method = "OPTIONS"
      register = false
      show = ["warning"]
      timeout = "2s"

    [sip.utils.repeater]
      auth-config = []
      credentials = ""
      domain = ""
      extension = ""
      from = ""
      method = "options"
      register = false
      timeout = "1s"

    [sip.utils.templates]

      [sip.utils.templates.dump]
        methods = ["REGISTER", "ACK", "BYE", "CANCEL", "INFO", "INVITE", "MESSAGE", "NOTIFY", "OPTIONS", "PUBLISH", "SUBSCRIBE", "PRACK", "REFER", "UPDATE"]

      [sip.utils.templates.test]
        auth-config = []
        codec = ["ulaw", "alaw", "opus"]
        credentials = ""
        domain = ""
        extension = ""
        from = ""
        methods = ["OPTIONS"]

[telemetry]
  bind-addr = ""
  ca-cert = ""
  cert-file = ""
  cert-key = ""