Hi. We are using YS300 for notification and want to get every line status using api. But api/v1.1.0/trunklist/query returns only "Idle/Unavailable" info. Is there any way to get more verbose status data like in web PBX monitor window (lte provider name, registration info, gsm signal level) ?
2 comments
-
Eric Jiang Hi Alexandr,
Here is the interface of API 2.0 please check if it works for you:
https://help.yeastar.com/en/s-series-developer-v2/api-v2/trunklist-query.html
-
Alexandr Shutko Checked it. API 2.0 data is same as v1.1.0 - only short trunk status available. In PBX monitor I can see LTE operator name (MTS RUS), but API shows only:
{'status': 'Success', 'trunklist': [{'trunkname': 'FXO1-2', 'id': '1', 'status': 'Idle', 'type': 'FXO', 'port': 'Span1-Port2'}, {'trunkname': 'FXO1-4', 'id': '2', 'status': 'Idle', 'type': 'FXO', 'port': 'Span1-Port4'}, {'trunkname': 'FXO1-6', 'id': '3', 'status': 'Idle', 'type': 'FXO', 'port': 'Span1-Port6'}, {'trunkname': 'FXO1-8', 'id': '4', 'status': 'Idle', 'type': 'FXO', 'port': 'Span1-Port8'}, {'trunkname': 'LTE2-1', 'id': '5', 'status': 'IDLE', 'type': 'LTE', 'port': 'Span2-Port1'}, {'trunkname': 'GSM2-3', 'id': '6', 'status': 'NO SIM Card', 'type': 'GSM', 'port': 'Span2-Port3'}, {'trunkname': 'FXO2-6', 'id': '7', 'status': 'Fault', 'type': 'FXO', 'port': 'Span2-Port6'}, {'trunkname': 'DIGIT3', 'id': '8', 'status': 'Fault', 'type': 'E1', 'port': 'Span3-Port1'}, {'trunkname': 'Trunk_to_BKMU-SIP', 'id': '12', 'status': 'registered', 'type': 'SIP'}]}Before this device we used GSM cards for asterisk and there was and ability to get signal strength and operator name for external system :(