GET http://[host-proxy]/api/device/spark/LocationCallingDetails/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"id": {
"title": "ID",
"description": "A unique identifier for the location.",
"readonly": true,
"type": "string"
},
"name": {
"title": "Name",
"description": "The name of the location.",
"type": "string"
},
"announcementLanguage": {
"title": "Announcement Language",
"description": "Location's phone announcement language.",
"type": "string"
},
"callingLineId": {
"title": "Calling Line ID",
"description": "Location calling line information.",
"required": false,
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Group calling line ID name. By default the Org nam"
},
"phoneNumber": {
"type": "string",
"title": "Main Number",
"description": "Directory Number / Main number in E.164 Format."
}
}
},
"connection": {
"title": "Connection",
"description": "Connection details are only returned for local PSTN types of TRUNK or ROUTE_GROUP.",
"required": false,
"type": "object",
"properties": {
"type": {
"type": "string",
"title": "Type",
"description": "Webex Calling location only suppports TRUNK and ROUTE_GROUP connection type.",
"choices": [
{
"value": "ROUTE_GROUP",
"title": "ROUTE_GROUP"
},
{
"value": "TRUNK",
"title": "TRUNK"
}
]
},
"id": {
"type": "string",
"title": "ID",
"description": "A unique identifier of route type."
}
}
},
"externalCallerIdName": {
"title": "External Caller ID Name",
"description": "External Caller ID Name value. Unicode characters.",
"type": "string"
},
"userLimit": {
"title": "User Limit",
"type": "integer",
"description": "Limit on the number of people at the location, Read-Only.",
"readonly": true
},
"pAccessNetworkInfo": {
"title": "PSTN Access Network Info",
"description": "Emergency Location Identifier for a location. Set this field to provide the SIP access network information to the provider which will be used to populate the SIP P-Access-Network-Info header. This is helpful to establish the location of a device when you make an emergency call.",
"type": "string"
},
"outsideDialDigit": {
"title": "Outside Dial Digit",
"description": "Must dial to reach an outside line, default is None.",
"type": "string"
},
"routingPrefix": {
"title": "Routing Prefix",
"description": "Must dial a prefix when calling between locations having same extension within same location.",
"type": "string"
},
"defaultDomain": {
"title": "Default Domain",
"description": "IP Address, hostname, or domain. Read-Only.",
"type": "string"
},
"chargeNumber": {
"title": "Charge Number",
"description": "Chargeable number for the line placing the call. When this is set, all calls placed from this location will include a P-Charge-Info header with the selected number in the SIP INVITE.",
"type": "string"
},
"musicOnHold": {
"title": "Music On Hold",
"description": "Location's music on hold settings.",
"required": false,
"type": "object",
"properties": {
"callHoldEnabled": {
"type": "boolean",
"title": "Call Hold Enabled",
"description": "If enabled, music will be played when call is placed on hold."
},
"callParkEnabled": {
"type": "boolean",
"title": "Call Park Enabled",
"description": "If enabled, music will be played when call is parked."
},
"greeting": {
"type": "string",
"title": "Greeting",
"description": "Greeting type for the location.",
"choices": [
{
"value": "SYSTEM",
"title": "SYSTEM"
},
{
"value": "CUSTOM",
"title": "CUSTOM"
}
]
},
"audioFile": {
"title": "Audio File",
"description": "Announcement Audio File details when greeting is selected to be CUSTOM.",
"required": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "ID",
"description": "A unique identifier for the announcement."
},
"fileName": {
"type": "string",
"title": "File Name",
"description": "Audio announcement file name."
},
"mediaFileType": {
"type": "string",
"title": "Media File Type",
"description": "Audio announcement file type",
"choices": [
{
"value": "WAV",
"title": "WAV"
},
{
"value": "WMA",
"title": "WMA"
},
{
"value": "3GP",
"title": "3GP"
}
]
},
"level": {
"type": "string",
"title": "Level",
"description": "Audio announcement file type location.",
"choices": [
{
"value": "ORGANIZATION",
"title": "ORGANIZATION"
},
{
"value": "LOCATION",
"title": "LOCATION"
}
]
}
}
}
}
},
"callingPermissions": {
"title": "Location Outgoing Calling Permissions",
"description": "A location's outgoing call settings allow you to determine the types of calls the people/workspaces at the location are allowed to make, as well as configure the default calling permission for each call type at the location.",
"required": false,
"type": "object",
"properties": {
"callingPermissions": {
"description": "Location's calling permissions settings.",
"title": "Calling Permissions",
"type": "array",
"items": {
"type": "object",
"properties": {
"callType": {
"type": "string",
"title": "Call Type",
"custom_value_allowed": true,
"description": "Call Type Values",
"choices": [
{
"value": "INTERNAL_CALL",
"title": "INTERNAL_CALL"
},
{
"value": "TOLL_FREE",
"title": "TOLL_FREE"
},
{
"value": "INTERNATIONAL",
"title": "INTERNATIONAL"
},
{
"value": "OPERATOR_ASSISTED",
"title": "OPERATOR_ASSISTED"
},
{
"value": "CHARGEABLE_DIRECTORY_ASSISTED",
"title": "CHARGEABLE_DIRECTORY_ASSISTED"
},
{
"value": "SPECIAL_SERVICES_I",
"title": "SPECIAL_SERVICES_I"
},
{
"value": "SPECIAL_SERVICES_II",
"title": "SPECIAL_SERVICES_II"
},
{
"value": "PREMIUM_SERVICES_I",
"title": "PREMIUM_SERVICES_I"
},
{
"value": "PREMIUM_SERVICES_II",
"title": "PREMIUM_SERVICES_II"
},
{
"value": "NATIONAL",
"title": "NATIONAL"
}
]
},
"action": {
"type": "string",
"title": "Action",
"description": "Allows to configure settings for each call type.",
"choices": [
{
"value": "ALLOW",
"title": "ALLOW"
},
{
"value": "BLOCK",
"title": "BLOCK"
},
{
"value": "AUTH_CODE",
"title": "AUTH_CODE"
},
{
"value": "TRANSFER_NUMBER_1",
"title": "TRANSFER_NUMBER_1"
},
{
"value": "TRANSFER_NUMBER_2",
"title": "TRANSFER_NUMBER_2"
},
{
"value": "TRANSFER_NUMBER_2",
"title": "TRANSFER_NUMBER_2"
}
]
},
"transferEnabled": {
"type": "boolean",
"title": "Transfer Enabled",
"description": "If enabled, allow the person to transfer or forward internal calls."
}
}
}
}
}
},
"internalDialing": {
"title": "Internal Dialing",
"description": "Internal Dialing settings for a location",
"required": false,
"type": "object",
"properties": {
"enableUnknownExtensionRoutePolicy": {
"type": "boolean",
"title": "Enable Unknown Extension Route Policy",
"description": "When enabled, calls made by users at the location to an unknown extension (between 2-6 digits) are routed to the selected route group/trunk as premises calls."
},
"unknownExtensionRouteIdentity": {
"title": "Unknown Extension Route Identity",
"description": "The selected route group/trunk as premises calls.",
"required": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "ID",
"description": "ID of the route type."
},
"name": {
"type": "string",
"title": "Name",
"description": "A unique name for the route identity."
},
"type": {
"type": "string",
"title": "Type",
"description": "Type associated with the identity.",
"choices": [
{
"title": "ROUTE_GROUP",
"value": "ROUTE_GROUP"
},
{
"title": "TRUNK",
"value": "TRUNK"
}
]
}
}
}
}
},
"intercept": {
"title": "Intercept",
"description": "Location's intercept settings.",
"required": false,
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Enable/disable location intercept. Enable this feature to override any Location's Call Intercept settings that person configures."
},
"incoming": {
"title": "Incoming",
"description": "Inbound call details.",
"required": false,
"type": "object",
"properties": {
"type": {
"type": "string",
"title": "Type",
"description": "Select inbound call options.",
"choices": [
{
"value": "INTERCEPT_ALL",
"title": "INTERCEPT_ALL"
},
{
"value": "ALLOW_ALL",
"title": "ALLOW_ALL"
}
]
},
"voicemailEnabled": {
"type": "boolean",
"title": "Voicemail Enabled",
"description": "Enable/disable to route voice mail."
},
"announcements": {
"title": "Announcements",
"description": "Announcements details.",
"required": false,
"type": "object",
"properties": {
"greeting": {
"type": "string",
"title": "Greeting",
"description": "Greeting type for location intercept.",
"choices": [
{
"value": "DEFAULT",
"title": "DEFAULT"
},
{
"value": "CUSTOM",
"title": "CUSTOM"
}
]
},
"fileName": {
"type": "string",
"title": "File Name",
"description": "If set to CUSTOM for greeting, filename of previously uploaded file."
},
"newNumber": {
"title": "New Number",
"description": "Settings for new number announcement.",
"required": false,
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Enable/disable to play new number announcement."
},
"destination": {
"type": "string",
"title": "Destination",
"description": "Incoming destination phone number to be announced."
}
}
},
"zeroTransfer": {
"title": "Zero Transfer",
"description": "Transfer number details.",
"required": false,
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Enable/disable to transfer to phone number."
},
"destination": {
"type": "string",
"title": "Destination",
"description": "Transfer phone number to be called when '0' is dialed."
}
}
}
}
}
}
},
"outgoing": {
"title": "Outgoing",
"description": "Outbound Call details",
"required": false,
"type": "object",
"properties": {
"type": {
"type": "string",
"title": "Type",
"description": "Outbound call modes",
"choices": [
{
"value": "INTERCEPT_ALL",
"title": "INTERCEPT_ALL"
},
{
"value": "ALLOW_LOCAL_ONLY",
"title": "ALLOW_LOCAL_ONLY"
}
]
},
"transferEnabled": {
"type": "boolean",
"title": "Transfer Enabled",
"description": "Enable/disable to route all outbound calls to phone number."
},
"destination": {
"type": "string",
"title": "Destination",
"description": "If enabled, set outgoing destination phone number."
}
}
}
}
},
"emergencyCallbackNumber": {
"title": "Emergency Callback Number",
"description": "Location's Emergency Callback Number settings.",
"required": false,
"type": "object",
"properties": {
"locationInfo": {
"title": "Location Info",
"description": "Data relevant to this location.",
"required": false,
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"title": "Phone Number",
"readonly": true,
"description": "The location DN."
},
"name": {
"type": "string",
"title": "Name",
"readonly": true,
"description": "The name of the location."
},
"effectiveLevel": {
"type": "string",
"title": "Effective Level",
"readonly": true,
"description": "The source from which the emergency calling line ID (CLID) is selected for an actual emergency call, applying fallback rules as necessary.",
"choices": [
{
"value": "LOCATION_NUMBER",
"title": "LOCATION_NUMBER"
},
{
"value": "LOCATION_MEMBER_NUMBER",
"title": "LOCATION_MEMBER_NUMBER"
},
{
"value": "'NONE'",
"title": "'NONE'"
}
]
},
"effectiveValue": {
"type": "string",
"title": "Effective Value",
"readonly": true,
"description": "Location calling line ID (CLID) number. Avaliable only when number is present and quality would be invalid."
},
"quality": {
"type": "string",
"title": "Quality",
"readonly": true,
"description": "Used to represent whether a number is a recommended ECBN.",
"choices": [
{
"value": "RECOMMENDED",
"title": "RECOMMENDED"
},
{
"value": "NOT_RECOMMENDED",
"title": "NOT_RECOMMENDED"
},
{
"value": "INVALID",
"title": "INVALID"
}
]
}
}
},
"locationMemberInfo": {
"title": "Location Member Info",
"description": "Data relevant to the user/place (member) selected for ECBN.",
"required": false,
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"title": "Phone Number",
"readonly": true,
"description": "The member DN."
},
"firstName": {
"type": "string",
"readonly": true,
"title": "First Name",
"description": "The member first name."
},
"lastName": {
"type": "string",
"readonly": true,
"title": "Last Name",
"description": "The member last name. Always contains . if the member is a place"
},
"memberId": {
"type": "string",
"title": "Member ID",
"description": "Member ID of user/place within the location."
},
"memberType": {
"type": "string",
"readonly": true,
"title": "Member Type",
"description": "Member Type.",
"choices": [
{
"value": "PEOPLE",
"title": "PEOPLE"
},
{
"value": "PLACE",
"title": "PLACE"
}
]
},
"quality": {
"type": "string",
"readonly": true,
"title": "Quality",
"description": "Used to represent whether a number is a recommended ECBN.",
"choices": [
{
"value": "RECOMMENDED",
"title": "RECOMMENDED"
},
{
"value": "NOT_RECOMMENDED",
"title": "NOT_RECOMMENDED"
},
{
"value": "INVALID",
"title": "INVALID"
}
]
},
"effectiveLevel": {
"type": "string",
"title": "Effective Level",
"description": "The source from which the emergency calling line ID (CLID) is selected for an actual emergency call, applying fallback rules as necessary.",
"choices": [
{
"value": "LOCATION_NUMBER",
"title": "LOCATION_NUMBER"
},
{
"value": "LOCATION_MEMBER_NUMBER",
"title": "LOCATION_MEMBER_NUMBER"
},
{
"value": "'NONE'",
"title": "'NONE'"
}
]
},
"effectiveValue": {
"type": "string",
"title": "Effective Value",
"readonly": true,
"description": "Location CLID number. Avaliable only when number is present and quality would be invalid."
}
}
}
}
},
"voicemailTranscriptionEnabled": {
"title": "Voicemail Transcription Enabled",
"description": "Voicemail Transcription settings.",
"required": false,
"type": "object",
"properties": {
"voicemailTranscriptionEnabled": {
"type": "boolean",
"title": "Voicemail Transcription Enabled",
"description": "Voicemail Transcription Enabled"
}
}
},
"voicePortal": {
"title": "Voice Portal",
"description": "Location's Voice Portal settings.",
"required": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "ID",
"readonly": true,
"description": "Voice Portal ID"
},
"name": {
"type": "string",
"title": "Name",
"description": "Voice Portal Name."
},
"language": {
"type": "string",
"title": "Language",
"description": "Language for audio announcements."
},
"languageCode": {
"type": "string",
"title": "Language Code",
"description": "Language code for voicemail group audio announcement."
},
"extension": {
"type": "string",
"title": "Extension",
"description": "Extension of incoming call."
},
"phoneNumber": {
"type": "string",
"title": "Phone Number",
"description": "Phone Number of incoming call."
},
"firstName": {
"type": "string",
"title": "First Name",
"description": "Caller ID First Name."
},
"lastName": {
"type": "string",
"title": "Last Name",
"description": "Caller ID Last Name."
}
}
}
},
"schema_version": "1.0.0"
}