Usage of the Yealink Manager API.
from yealink_manager import YealinkController
import time
# Program parameters
username = 'admin'
password = 'admin'
phone_ip = '192.168.1.10'
try:
yl = YealinkController(username, password, phone_ip)
yl.set_line(1)
yl.get_status()
yl.dial('1234')
yl.screenshot()
time.sleep(5)
yl.hangup()
yl.screenshot()
except Exception as e:
print(e)
TODO: DOCS