Skip to content
Aug 10 / Greg

Access Yealink’s Rest API

Yealink has a pretty useful Rest API that allows for some fun manipulation to phones. You can do things like start speaker phone and initiate a call or in my case, you can have it enable/disable DND.

To enable/disable DND via cURL it’s as simple as:
ON

1
curl -X POST --ciphers 'DEFAULT:!DH' -d "" --user Username:MyPassword https://192.168.51.251/cgi-bin/ConfigManApp.com?key=DNDOn -k -s

OFF

1
curl -X POST --ciphers 'DEFAULT:!DH' -d "" --user Username:MyPassword https://192.168.51.251/cgi-bin/ConfigManApp.com?key=DNDOff -k -s

My github playbook based on this is here:

If your system throws an error about the old cipher in use you might have a look at this post.

Leave a Comment

 

*