{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/verbs/dtmf",
  "minVersion": "0.9.6",
  "title": "DTMF",
  "description": "Sends DTMF tones on the call. Used to interact with IVR systems on the far end, or to signal systems that respond to DTMF.",
  "type": "object",
  "properties": {
    "verb": {
      "const": "dtmf"
    },
    "id": {
      "type": "string",
      "description": "An optional unique identifier for this verb instance."
    },
    "dtmf": {
      "type": "string",
      "description": "The DTMF digits to send. Valid characters are 0-9, *, #, and A-D. Use 'w' for a 500ms pause between digits.",
      "examples": [
        "1234#",
        "1w2w3",
        "5551212"
      ]
    },
    "duration": {
      "type": "number",
      "description": "Duration in milliseconds for each DTMF tone.",
      "default": 500,
      "examples": [
        250,
        500
      ]
    }
  },
  "required": [
    "dtmf"
  ],
  "examples": [
    {
      "verb": "dtmf",
      "dtmf": "1234#"
    },
    {
      "verb": "dtmf",
      "dtmf": "1w2w3w4",
      "duration": 250
    }
  ]
}
