查询呼入路由列表
查询呼入路由列表信息。
请求 URL
GET {base_url}/{api_path}/inbound_route/list?access_token={access_token}
请求参数
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | Integer | 定义显示第几个页面。 |
| page_size | 否 | Integer | 定义每页显示几项查询结果。 |
| sort_by | 否 | String | 定义排序字段。 取值范围:
|
| order_by | 否 | String | 定义显示顺序。 取值范围:
|
响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | Integer | 返回错误码。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
|
| errmsg | String | 返回信息。
|
| total_number | Integer | 呼入路由总数。 |
| last_pos | Integer | 呼入路由列表排序最大值。 |
| data | Array <Inroute_Info> | 呼入路由基本信息。 |
- Inroute_Info
-
参数 类型 说明 id Integer 呼入路由的唯一 ID。 pos Integer 呼入路由在列表中的当前位置。 name String 呼入路由名称。 default_destination String 呼入路由的默认目的地。 disabledend_call:挂断extension:分机pattern_to_ext:匹配分机range_to_ext:分机范围pattern_to_ext_list:DID 号码匹配到指定分机。ext_vm:分机语音信箱ivr:IVRcall_flow:通话流程ring_group:响铃组ai_receptionist:AI 接待员queue:队列group_vm:群语音信箱conference:会议室external_num:外部号码outroute:呼出路由play_greeting:播放问候语后挂断fax_to_email:发送传真到邮箱
default_desination_value String 呼入路由默认目的地的具体值。 current_destination String 呼入路由的当前目的地。 end_call:挂断extension:分机pattern_to_ext:DID 号码规则匹配到分机range_to_ext_dest:DID 号码范围匹配到分机范围ext_vm:分机语音信箱ivr:IVRcall_flow:通话流程ring_group:响铃组ai_receptionist:AI 接待员queue:队列group_vm:群语音信箱conference:会议室external_num:外部号码outroute:呼出路由play_greeting:播放问候语后挂断fax_to_email:发送传真到邮箱
current_desination_value String 呼入路由当前目的地的具体值。 time_condition String 时间类型。 disabled:所有来电被路由到默认目的地global:基于全局办公时间路由来电route_scope:基于自定义办公时间路由来电custom:基于自定义时间段路由来电
timezone_id Integer 时区 ID。 business_hours_destination String 办公时间内来电的目的地。 disabledend_call:挂断extension:分机pattern_to_ext:DID 号码规则匹配到分机range_to_ext:DID 号码范围匹配到分机范围pattern_to_ext_list:DID 号码匹配到指定分机。ext_vm:分机语音信箱ivr:IVRcall_flow:通话流程ring_group:响铃组ai_receptionist:AI 接待员queue:队列group_vm:群语音信箱conference:会议室external_num:外部号码outroute:呼出路由play_greeting:播放问候语后挂断fax_to_email:发送传真到邮箱
business_hours_destination_value String 办公时间内来电的具体目的地。 outside_business_hours_destination String 非办公时间内来电的目的地。 disabledend_call:挂断extension:分机pattern_to_ext:DID 号码规则匹配到分机range_to_ext:DID 号码范围匹配到分机范围pattern_to_ext_list:DID 号码匹配到指定分机。ext_vm:分机语音信箱ivr:IVRcall_flow:通话流程ring_group:响铃组ai_receptionist:AI 接待员queue:队列group_vm:群语音信箱conference:会议室external_num:外部号码outroute:呼出路由play_greeting:播放问候语后挂断fax_to_email:发送传真到邮箱
outside_business_hours_destination_value String 非办公时间内来电的具体目的地。 holidays_hours_destination String 假期时间内来电的目的地。 disabledend_call:挂断extension:分机pattern_to_ext:DID 号码规则匹配到分机range_to_ext:DID 号码范围匹配到分机范围pattern_to_ext_list:DID 号码匹配到指定分机。ext_vm:分机语音信箱ivr:IVR.call_flow:通话流程ring_group:响铃组ai_receptionist:AI 接待员queue:队列group_vm:群语音信箱conference:会议室external_num:外部号码outroute:呼出路由play_greeting:播放问候语后挂断fax_to_email:发送传真到邮箱
holidays_hours_destination_value String 假期时间内来电的具体目的地。 enb_holiday_dest_ignore Integer 是否将假期期间收到的外线来电按照办公时间目的地进行路由。 0:禁用。1:启用。
enb_play_holiday_prompt_global Integer 是否在将假期期间收到的外线来电路由至假期目的地之前播放假期提示音。 0:禁用。1:启用。
prefix_code String 用于切换呼入路由时间条件的特征码前缀。 reset_code String 将该呼入路由切换到当前时间对应目的地的特征码。 注: 仅当time_condition设置为custom时,该参数返回具体值。holiday_code String 将该呼入路由切换到假期目的地的特征码。 注: 仅当time_condition设置为custom时,该参数返回具体值。office_code String 将该呼入路由切换到默认目的地的特征码。 注: 仅当time_condition设置为custom时,该参数返回具体值。time_condition_value Array<Time_Condition_Info> 时间条件的信息。 注: 仅当time_condition设置为route_scope或custom时,才会显示此参数。timezone_options Object<Timezone_List> 时区的基本信息。 - Time_Condition_Info
-
参数 类型 说明 id Integer 时间段唯一 ID。 pos Integer 时间段显示顺序。 days_of_week Integer 时间段适用的星期。 sun:星期日mon:星期一tue:星期二wed:星期三thu:星期四fri:星期五sat:星期六
times Array<String> 时间段的时间范围。 months String 时间段适用的月份。 jan:一月feb:二月mar:三月apr:四月may:五月jun:六月jul:七月aug:八月sep:九月oct:十月nov:十一月dec:十二月
days String 时间段适用的日期。 dest String 时间段内收到的外线来电的目的地前缀。
end_call:挂断extension:分机ext_vm:分机语音信箱group_vm:群语音信箱outroute:呼出路由ai_receptionist:AI 接待员ring_group:响铃组queue:队列conference:会议室ivr:IVRcall_flow:通话流程external_num:外部号码play_greeting:播放问候语后挂断
dest_prefix String 时间段内收到的外线来电的目的地前缀。 注: 仅当time_condition设置为custom或route_scope且dest设置为external_num或play_greeting时,该参数才返回值。- 如果
dest为external_num,该参数表示外部号码的呼出前缀。 - 如果
dest为play_greeting,该参数表示提示音的播放次数。
dest_value String 时间段内收到的外线来电的详细目的地。 注: 该参数的定义取决于dest的取值。- 如果
dest为play_greeting,该参数表示自定义提示音的文件名。 - 如果
dest为extension、ext_vm、group_vm、ivr、call_flow、ring_group、conference、ai_receptionist、outroute或queue,该参数表示目的地的 ID。 - 如果
dest为external_num,该参数表示外部号码。
time_condition_switch Integer 是否启用高级时间设置,以支持按星期、月份和日期的组合方式配置时间条件。 0:禁用。1:启用。
- Timezone_List
-
参数 类型 说明 name String PBX 中配置的时区名称。 utc_offset String 时区信息,包括 UTC 偏移和时区标识符。 timezone_info String 时区显示名称。 value String 时区 ID。 type String 时区类型。 global:默认时区。custom:自定义时区。
示例
请求示例
GET /openapi/v1.0/inbound_route/list?page=1&page_size=20&sort_by=pos&order_by=asc&access_token=VpTsz7k6XSOpfjDntqetBQ7nSE9QsbAN HTTP/1.1
Host: 192.168.5.150:8088
响应示例
HTTP/1.1 200 OK { "errcode": 0, "errmsg": "SUCCESS", "total_number": 7, "last_pos": 7, "data": [ { "id": 3, "pos": 1, "name": "from-pce", "default_destination": "extension", "current_destination": "extension", "time_condition": "disabled", "default_desination_value": "1005-Ashley Gardner", "current_desination_value": "1005-Ashley Gardner", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 5, "pos": 2, "name": "20.58", "default_destination": "extension", "current_destination": "extension", "time_condition": "disabled", "default_desination_value": "1002-Terrell Smith", "current_desination_value": "1002-Terrell Smith", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 4, "pos": 3, "name": "41", "default_destination": "extension", "current_destination": "extension", "time_condition": "disabled", "default_desination_value": "1002-Terrell Smith", "current_desination_value": "1002-Terrell Smith", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 1, "pos": 4, "name": "Default_Inbound_Route", "default_destination": "extension", "current_destination": "extension", "time_condition": "disabled", "default_desination_value": "1000-Leo Ball", "current_desination_value": "1000-Leo Ball", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 2, "pos": 5, "name": "ootest", "default_destination": "disabled", "current_destination": "extension", "time_condition": "route_scope", "current_desination_value": "1000-Leo Ball", "time_condition_value": [ { "id": 6, "pos": 1, "days_of_week": "mon tue wed thu fri", "times": [ "08:45-11:45", "13:15-18:00" ], "months": "jan feb mar apr may jun jul aug sep oct nov dec", "days": "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31", "dest": "", "dest_prefix": "", "dest_value": "", "time_condition_switch": 1 }, { "id": 7, "pos": 2, "days_of_week": "mon tue wed thu fri", "times": [ "11:45-13:15" ], "months": "", "days": "", "dest": "", "dest_prefix": "", "dest_value": "", "time_condition_switch": 0 } ], "business_hours_destination": "extension", "business_hours_destination_value": "1000-Leo Ball", "outside_business_hours_destination": "group_vm", "outside_business_hours_destination_value": "6100-6100", "holidays_hours_destination": "ivr", "holidays_hours_destination_value": "6200-测试", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "*8", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 6, "pos": 6, "name": "aatest", "default_destination": "disabled", "current_destination": "ring_group", "time_condition": "custom", "current_desination_value": "6300-6300", "time_condition_value": [ { "id": 8, "pos": 1, "days_of_week": "mon tue wed thu fri", "times": [ "08:45-11:45", "13:15-18:00" ], "months": "", "days": "", "dest": "ring_group", "dest_prefix": "", "dest_value": "1", "time_condition_switch": 0 }, { "id": 9, "pos": 2, "days_of_week": "mon tue wed thu fri", "times": [ "11:45-13:15" ], "months": "", "days": "", "dest": "ivr", "dest_prefix": "", "dest_value": "1", "time_condition_switch": 0 } ], "business_hours_destination": "end_call", "outside_business_hours_destination": "end_call", "holidays_hours_destination": "end_call", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "*81", "reset_code": "*8100", "holiday_code": "*8101", "office_code": "*8102", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } }, { "id": 7, "pos": 7, "name": "bbb", "default_destination": "disabled", "current_destination": "end_call", "time_condition": "global", "business_hours_destination": "end_call", "outside_business_hours_destination": "end_call", "holidays_hours_destination": "end_call", "timezone_id": 1, "enb_holiday_dest_ignore": 0, "enb_play_holiday_prompt_global": 0, "prefix_code": "", "reset_code": "", "holiday_code": "", "office_code": "", "timezone_options": { "name": "Global Time Zone", "utc_offset": "UTC+8 Asia/Shanghai", "timezone_info": "8 China (Beijing)", "value": "1", "type": "global" } } ] }