Skip to content

Commit

Permalink
KAZOO-3247: Adding schema for provisioner, adding new merge field to
Browse files Browse the repository at this point in the history
provisioner data, add the merge flag to the envelope
  • Loading branch information
Peter Defebvre authored and k-anderson committed Jan 28, 2015
1 parent ce7d1b5 commit 1814f6c
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 39 deletions.
167 changes: 167 additions & 0 deletions applications/crossbar/priv/couchdb/schemas/provisioner_v5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"_id": "provisioner_v5",
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "object",
"required": true,
"name": "Provisioner V5",
"description": "Provisioner schema",
"properties": {
"brand": {
"type": "string",
"required": false,
"name": "Brand",
"description": "Brand of the phone",
"default": ""
},
"family": {
"type": "string",
"required": false,
"name": "Family",
"description": "Family name of the phone",
"default": ""
},
"model": {
"type": "string",
"required": false,
"name": "Model",
"description": "Model name of the phone",
"default": ""
},
"name": {
"type": "string",
"required": true,
"name": "Name",
"description": "Name of the phone"
},
"settings": {
"type": "object",
"required": true,
"name": "Settings",
"description": "Phone's settings",
"properties": {
"lines": {
"type": "array",
"minItems": 1,
"name": "Lines",
"description": "Phone lines",
"items": {
"type": "object",
"required": true,
"properties": {
"basic": {
"type": "object",
"required": true,
"name": "Basic",
"description": "Basic settings",
"properties": {
"display_name": {
"type": "string",
"required": true,
"name": "Display Name",
"description": "Friendly name for phone"
},
"enabled": {
"type": "boolean",
"required": false,
"name": "Enabled",
"description": "Enable line",
"default": true
}
}
},
"sip": {
"type": "object",
"required": true,
"name": "Sip",
"description": "Sip settings",
"properties": {
"username": {
"type": "string",
"required": true,
"name": "Username",
"description": "Line's username"
},
"register_name": {
"type": "string",
"required": true,
"name": "Register Name",
"description": "Line's register_name"
},
"password": {
"type": "string",
"required": true,
"name": "Password",
"description": "Line's password"
},
"sip_server_1": {
"type": "string",
"required": true,
"name": "Sip Server 1",
"description": "Line's Sip Server 1"
}
}
},
"advanced": {
"type": "object",
"required": true,
"name": "advanced",
"description": "Advanced settings",
"properties": {
"expire": {
"type": "integer",
"required": false,
"name": "Expire",
"default": 360
},
"srtp": {
"type": "boolean",
"required": false,
"name": "srtp",
"default": false
}
}
}
}
}
},
"codecs": {
"type": "array",
"minItems": 1,
"name": "Codecs",
"description": "Phone's codecs",
"items": {
"type": "object",
"properties": {
"audio": {
"type": "object",
"required": true,
"name": "Audio",
"description": "Audio codecs",
"properties": {
"primary_codec": {
"type": "string",
"required": true,
"name": "Primary Codec",
"description": "First codec"
},
"secondary_codec": {
"type": "string",
"required": false,
"name": "Secondary Codec",
"description": "Second codec"
}
}
}
}
}
},
"timezone": {
"type": "string",
"required": true,
"name": "Timezone",
"description": "Phone's timezone"
}
}
}
}
}
Loading

0 comments on commit 1814f6c

Please sign in to comment.