{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-trunk-schema.json",
  "title": "Trunk",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-trunks-api-openapi.yml#/components/schemas/Trunk",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of Trunk"
    },
    "uri": {
      "pattern": "^SIP(.+)@(.+)$",
      "description": "URI of Trunk (in the form of SIP/user@host.com:port)"
    },
    "max_concurrent_calls": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Max concurrent calls. Default is 10"
    },
    "max_minutes_per_month": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Max minutes per month. Default is 750."
    },
    "max_call_duration": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 10,
      "maximum": 131000,
      "description": "Max call duration. Default is 10800"
    },
    "codecs": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "enum": [
          "g711u 64k",
          "g711u 56k",
          "g711a 64k",
          "g711a 56k",
          "g7231",
          "g728",
          "g729",
          "g729A",
          "g729B",
          "g729AB",
          "gms full",
          "rfc2833",
          "t38",
          "ilbc",
          "h263",
          "g722",
          "g722_1",
          "g729D",
          "g729E",
          "amr",
          "amr_wb",
          "efr",
          "evrc",
          "h264",
          "mpeg4",
          "red",
          "cng",
          "SIP Info to 2833"
        ]
      },
      "description": "Custom audio codec configuration"
    }
  },
  "required": [
    "name",
    "uri"
  ]
}