Range

Function

This API is used to get Intercom > SIP Recipient parameter range.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx"string arrayThe channels supported by the device.

Sample:

POST /API/Intercom/SIPRecipient/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel_infoobjectTotal channel information see Table 3.
channel_maxintThe maximum number of channels.
Table 3
ParameterRangeTypeDescription
CH1…CHxobjectSee Table 4
Table 4
ParameterRangeTypeDescription
recipients0-16array参见 Table 5
Table 5
ParameterRangeTypeDescription
name0-127stringName
selectboolSelect
domain0-127stringDomain
schedule_list0-8json arraydefense planning table data,show as follow Table 6

Table 6

ParameterRangeTypeDescription
enabletrue, falseboolWhether the current schedule takes effect
start_time0 – 1439(23*60+59)intSchedule start time (minutes relative to 00:00)
end_time0 – 1439(23*60+59)intSchedule end time (minutes relative to 00:00)
weekday"Sunday"
"Monday"
"Tuesday"
"Wednesday"
"Thursday"
"Friday"
"Saturday"
arrayIndicates the day of a week when the current schedule takes effect. You can select multiple days

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 1,
        "channel_info": {
            "type": "object",
            "items": {"CH1": {
                "type": "object",
                "items": {"recipients": {
                    "type": "array",
                    "min_size": 0,
                    "max_size": 16,
                    "items": {
                        "name": {
                            "type": "string",
                            "min_len": 0,
                            "max_len": 127
                        },
                        "select": {"type": "bool"},
                        "domain": {
                            "type": "string",
                            "min_len": 0,
                            "max_len": 127
                        },
                        "schedule_list": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 8,
                            "items": {
                                "enable": {"type": "bool"},
                                "start_time": {
                                    "type": "int32",
                                    "min": 0,
                                    "max": 1439
                                },
                                "end_time": {
                                    "type": "int32",
                                    "min": 0,
                                    "max": 1440
                                },
                                "weekday": {
                                    "type": "array",
                                    "min_size": 1,
                                    "max_size": 7,
                                    "items": [{
                                        "type": "string",
                                        "items": [
                                            "Sunday",
                                            "Monday",
                                            "Tuesday",
                                            "Wednesday",
                                            "Thursday",
                                            "Friday",
                                            "Saturday"
                                        ]
                                    }]
                                }
                            }
                        }
                    }
                }}
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.