-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAZOO-3247: Adding schema for provisioner, adding new merge field to
provisioner data, add the merge flag to the envelope
- Loading branch information
1 parent
ce7d1b5
commit 1814f6c
Showing
2 changed files
with
317 additions
and
39 deletions.
There are no files selected for viewing
167 changes: 167 additions & 0 deletions
167
applications/crossbar/priv/couchdb/schemas/provisioner_v5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.