Issue websocket connection to innovaphone
We do websocket connection tests with an innovaphone control unit.
We are referring to this documentation:
https://github.com/innovaphone/13r1-SDK/blob/master/doc/appwebsocket/AppWebsocket.htm
And we are using the following example that was made available:
https://github.com/innovaphone/13r1-SDK/blob/master/doc/appwebsocket/Samples/RCC.htm
The purpose of this test is to make a websocket connection using a test user.
The test works only partially.
We can make an initial connection by passing this message:
{"mt":"AppChallenge"}
and the answer is returned:
{"mt":"AppChallengeResult","challenge":"c181d2c3c181d253"}
So to complete the authentication we send this message:
{"mt":"AppLogin","app":"test-1","digest":"4fac20bdb56040e202ac627df739dc07930ad9c785281259014f04ed477f0d9c"}
From here on the request remains pending and after a while the connection falls without giving any answer.
However, the parameters we need to pass are not clear from the documentation.
In particular it is not clear what value we have to pass through the "app" field in the last message we send.
The example I linked above populates the "app" field with the user's username, then with "test-1". But in the documentation the description of the field is the following:
"The service as it is uniquely identified on the server system. For Apps communicating with their App Service, the name of the initially loaded HTML file (without the .htm file extension) is used. The App Service can use this property to define which operations are allowed on this session. This way by granting access to a given App to a user on the PBX, the user can only access what is defined for this App.
In case the login is done to a PBX Api, which is assigned to an App Object, this property should contain the Name of the App object. The properties 'domain', 'sip', 'guid' or 'dn' need not to be set in this case."
This description is very vague and prevents us from proceeding.
Can anyone help us?