Hi,
Is it possible to check if one of the lines is set to DND using REST API available on phone?
Management.PollForStatus only tells if the phone is active or idle. How do I poll if the line has been set on DND using REST API
Solved! Go to Solution.
Hello @GVB ,
welcome to the Poly Community.
Both the communities Must Read First and the FAQ reference the basic minimum information a new or follow up post should contain.
This ensures the questions having to be asked are limited and any new or follow up post contains the right amount of details to ensure any voluntary participant within the community does not spend additional time chasing basic information.
As a reminder the basic information asked for:
UC Software 4.0.0 or later via the Web Interface Utilities > Phone Backup & Restore > Phone Backup > Phone Backup. Please rename into .TXT or Zip the file to attach.
Since UC Software 5.9.0 simply provide this via the Web Interface Diagnostics > Download Support Information Package
Whilst providing some of these details may not directly impact any possible answer the community can provide, it does enable Poly to have an overview of the current software used. In addition, providing all details at the same time allow us to check logs or look up potential support partners if an issue needs to come into support. It also enables us to verify the entitlement for using features.
An important detail would be the currently used Software Version so we can possibly advise a later version which for example has this functionality.
I suggest you check UC Software 6.0.0 REST API Guide for the /api/v2/mgmt/lineInfo
Earlier versions may already have the same functionality,
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
Apologies for insufficient information.
Polycom VVX 301 with fw 5.8.0 with standard SIP registration, no platform for Skype or Broadsoft. I referred to the documentation.
Hello @GVB ,
as already replied the relevant API quoted in my original post is also available in 5.8.0
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier
That tells the registration status:
/api/v1/mgmt/lineInfo
{ "LineNumber": "<LINE_NUMBER>", "Protocol": "<SIP/H323>", "SIPAddress": "<SIP_ADDRESS>", "ProxyAddress": "<PROXY_ADDRESS>", "UserID": "<USER_ID>", "Label": "<LABEL>", "LineType": "<Shared/Private>", "RegistrationStatus": "<Registered/Unregistered>", "Port": "<PORT>" },
This individual line data only tells the registration status. How do we poll for DND?
I checked the WebCallControl.GetCurrentPresence but it is only available for SkypeforBusiness.
Hello @GVB ,
In danger of repeating myself:
Example queries: <PHONE_IP>/api/v2/ mgmt/lineInfo?line=1
Response:
{ "data": [ { "ID": "<LINE_NUMBER>", "Label": "<LABEL>", "Username": "<USERNAME>", "Assigned": "<True/False>", "RegistrationStatus": "<Registered/Unregistered>", "Type": "<Private/Shared>", "Active": "<True/False>", "DoNotDisturb": "<True/False>", "CallAppearances": [ "<CALL_REFRENCE>", "<CALL_REFRENCE>", ... ], "CallServers": [ { "ID": "<SERVER_INDEX>", "Address": "<SERVER_ADDRESS>", "RegistrationStatus": "<Registered/Unregistered>", "Port": "<SERVER_PORT>", "Expires": "<REGISTRATION_PERIOD>", "Transport": "<DNSnaptr/TcpPreferred/TcpOnly/UdpOnly/TLS/Invalid>" "Working": "<True/False>" } ], "ForwardingConfig": { "Always": "<CONTACT_NUMBER>", "DoNotDisturb": "<CONTACT_NUMBER>", "Busy": "<CONTACT_NUMBER>", "NoAnswer": "<CONTACT_NUMBER>" },
Please ensure to provide some feedback if this reply has helped you so other users can profit from your experience.
Best Regards
Steffen Baier