{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/callbacks/dial-hold",
  "title": "Dial OnHoldHook Payload",
  "description": "Payload sent to the dial onHoldHook when the remote party places the call on hold. The response should contain say, play, and/or pause verbs to play as hold music. The hook is called repeatedly until the hold ends.",
  "allOf": [
    { "$ref": "base" }
  ],
  "type": "object",
  "properties": {
    "hold_detail": {
      "type": "object",
      "description": "Details of the hold event.",
      "properties": {
        "from": { "type": "string", "description": "SIP From header value." },
        "to": { "type": "string", "description": "SIP To header value." }
      }
    }
  },
  "required": ["hold_detail"],
  "additionalProperties": true
}
