TOML configuration

TOML example

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


[debug]
  logging = false
  profile-cpu = false

[rtp]
  srtp = "none"

  [rtp.bleed]
    conn-count = 10
    keep-probing = false
    port-ranges = "10000-20000,35000-65000"
    probe-all-ports = false
    probe-during-attack = false
    proto = ""
    rate = ""
    rounds = 1
    rtcp-attack-interval = "2s"
    rtcp-payload = ""
    rtcp-probe-count = 1
    rtcp-probe-interval = "1ms"
    rtp-attack-interval = "20ms"
    rtp-payload = ""
    rtp-probe-count = 8
    rtp-probe-interval = "1ms"
    save-pcap = ""
    save-wav = false

  [rtp.flood]
    codec = ["opus","alaw","ulaw","opus","gsm","g723","lpc","g722","g728","g729","h261","h263"]
    conn-count = 1
    credentials = ""
    domain = ""
    duration = "0s"
    extension = ""
    from = ""
    mode = "sip-caller"
    rate = ""
    register = false
    rtp-payload = "music.wav"
    templates = "."

  [rtp.inject]
    conn-count = 10
    max-time = "10s"
    port-ranges = "10000-20000,35000-65000"
    probe-all-ports = false
    send-dtmf = ""
    send-wav = ""

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

  [sip.crack]

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

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

  [sip.dos]

    [sip.dos.flood]
      auth-mode = ""
      close-conn = false
      conn-count = 30
      credentials = ""
      dictionary = ""
      domain = ""
      duration = "0s"
      extension = ""
      from = ""
      invite-mode = []
      max-requests = 0
      method = "REGISTER"
      no-prober = false
      nonce-reuse = "auto"
      rate = ""
      register = false
      static-branch = false
      static-cseq = false

  [sip.enumerate]

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

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

  [sip.utils]

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

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

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

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

    [sip.utils.templates]

      [sip.utils.templates.test]
        codec = ["ulaw","alaw","opus"]
        credentials = ""
        domain = ""
        extension = ""
        from = ""

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