Versions in this module Expand all Collapse all v1 v1.0.7 Apr 28, 2022 v1.0.6 Sep 15, 2021 Changes in this version + var ErrCommandFailed = errors.New("action uri command failed") + var ErrCommandFailedBadCredentials = errors.New("bad credentials") + var ErrCommandFailedUnauthorized = errors.New("missing credentials") + var ErrCouldNotParseIpString = errors.New("invalid ip string given") + func Call(device *Device, number string) error + func ConfigureDND(device *Device, toggle bool) error + func GetApiClient() *http.Client + func ReadPhoneConfigParam(device *Device) + func TriggerAutoProvision(device *Device) error + type Account struct + DisplayName string + Label string + OutgoingURI string + RegisterName string + func ReadAccounts(device *Device) ([]Account, error) + type Device struct + DefaultOutgoingURI string + IP net.IP + IsHTTPS bool + Password string + Username string + func NewDevice(ip, username, password string) (*Device, error) + func (d *Device) GetCallEndpointUrl() (*url.URL, error) + func (d *Device) GetRootUrl(path string) (*url.URL, error) + func (d *Device) SetIP(in string) error