{
  "template_data":{
    "category":[
      {
        "name":"general",
        "subcategory":[
          {
            "name":"Internet Port (WAN)",
            "item":[
              {
                "category":"general",
                "variable":"$contact_list_address",
                "default_value":"",
                "description":"Contact List URL",
                "type":"input"
              },
              {
                "type":"break"
              },
              {
                "category":"handset",
                "variable":"$ringtone_url",
                "default_value":"",
                "description":"Ringtone URL",
                "type":"input"
              },
              {
                "type":"break"
              },
              {
                "category":"system",
                "variable":"$firmware_server",
                "default_value":"{$server.ip.1}",
                "description":"Firmware Server IP",
                "type":"input"
              },
              {
                "category":"system",
                "variable":"$firmware_name",
                "default_value":"",
                "description":"Firmware File Name",
                "type":"input"
              },
              {
                "type":"break"
              },
              {
                "category":"system",
                "variable":"$update_mode",
                "default_value":"7",
                "description":"Config Update Mode",
                "type":"list",
                "data":[
                  {
                    "text":"Disabled",
                    "value":"0",
                    "disable":"$update_frequency"
                  },
                  {
                    "text":"Power on",
                    "value":"1",
                    "disable":"$update_frequency"
                  },
                  {
                    "text":"Repeatedly",
                    "value":"4",
                    "enable":"$update_frequency"
                  },
                  {
                    "text":"Weekly",
                    "value":"5",
                    "disable":"$update_frequency"
                  },
                  {
                    "text":"Power on + Repeatedly",
                    "value":"6",
                    "enable":"$update_frequency"
                  },
                  {
                    "text":"Power on + Weekly",
                    "value":"7",
                    "disable":"$update_frequency"
                  }
                ]
              },
              {
                "category":"system",
                "variable":"$update_frequency",
                "description":"Update Frequency (mins)",
                "default_value":"1440",
                "type":"input",
                "max_len":"5"
              },
              {
                "type":"break"
              },
              {
                "category":"system",
                "variable":"$call_pickup",
                "default_value":"**",
                "description":"Call Pickup Value (For BLF)",
                "type":"input"
              },
              {
                "type":"break"
              },
              {
                "category":"system",
                "variable":"$adminpw",
                "default_value":"",
                "description":"Web administration password",
                "type":"input"
              },
              {
                "category":"system",
                "variable":"$tones_country",
                "default_value":"United States",
                "description":"Tones Country",
                "type":"input"
              },
              {
                "description":"Remote Phone Books (0-4)",
                "type":"loop",
                "loop_start":"0",
                "loop_end":"4",
                "data":{
                  "item":[
                    {
                      "variable":"$remotephonebook_name",
                      "default_value":"",
                      "description":"Remote Phone Book {$count} Name",
                      "type":"input"
                    },
                    {
                      "variable":"$remotephonebook_url",
                      "default_value":"",
                      "description":"Remote Phone Book {$count} URL",
                      "type":"input"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    ]
  }
}
