Hello Nico,
it seems to have the same origin, as the following forum thread:
https://class.innovaphone.com/moodle2/mod/forum/discuss.php?d=26519
Correct me if I'm wrong, but your App is not running in a context of myApps client, as I can understand, because of the following statement:
>> performs a login as a specific user
>
> this should be done in this way :
>
> "mt":"AppLogin","app":"myapp","domain":"my-pbx-domain",
> "sip":"User Object","guid":"User Object guid"
>
> right ?
>
> after this we received an mt "AppLoginResult", "ok":true
Are there any Login/Authenticate messages prior using AppLogin? Could you post a complete communication between your App and PBX, and additionally between your App and App Service?
There is a big difference between Login and AppLogin:
- The AppLogin method is a part of the AppWebsocket API https://sdk.innovaphone.com/13r1/doc/appwebsocket/AppWebsocket.htm
- The Login method is a part of myApps protocol API https://sdk.innovaphone.com/13r1/doc/appwebsocket/myApps.htm
As I understand correctly from the first message in this thread, you open an AppWebsocket in context of an App Object and therefore store the Profile directly on this App Object, which is not intended behaviour for you.
Instead a Login as User should be performed first (happens automatically, if you run a myApps client). After user starts your App the myApps client performs an App Login towards your App Service. The App, in context of myApps (NOT the App Service!), sends AddProfileContact via the already existing connection to the PBX from the myApps client. The myApps client reaches all required information to the App with a start object. From the App you can just consume an API, in this case PbxApi, by using send() method:
https://sdk.innovaphone.com/13r1/web1/lib1/lib1.htm#start
Best Regards
Andreas Fink