Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble getting device configuration #22

Open
svenvanhees opened this issue Jun 9, 2018 · 0 comments
Open

Trouble getting device configuration #22

svenvanhees opened this issue Jun 9, 2018 · 0 comments

Comments

@svenvanhees
Copy link

svenvanhees commented Jun 9, 2018

Hello,

I have trouble using the GetDeviceConfig function. From within my app I would like the user to permanently change settings for a specific tapi line without going to the control panel an searching for the tsp provider.

I have a sub with the following:

Public Shared Sub OpenConfigDialog()

        ' Get the current active tapi line
        Dim ActiveTapiLine As TapiLine = GetActiveTapiLine()

        ' Open the config dialog for the line
        ActiveTapiLine.Config(Nothing, "tapi/line")

        ' Get the config as byteArray
        Dim LineConfigByteArray As Byte() = ActiveTapiLine.GetDeviceConfig("tapi/line")

        ' Store updated config as byteArray
        ActiveTapiLine.SetDeviceConfig("tapi/line", LineConfigByteArray)

End Sub

The problem is that the GetDeviceConfig returns {Length=0}. However, I expect that to return an updated config so it can be used again with the SetDeviceConfig function.

Am I doing something wrong? Hope you can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant