I took the "official" PHP sample and modified it so it sends the "GetStunResult" message to the PBX. The login to the PBX works well but there is no response to the PbxAdminResult.
25.03.2020 22:40:20.8373 0.012 0000.012 smsg AppPlatform\Transitioner: sent->PBXWS {"mt":"Login","type":"session","userAgent":"websocket.class.php (PHP WebSocket CKL-CELSIUS-W11)"} 25.03.
25.03.2020 22:40:20.8377 0.000 0000.013 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"Authenticate","type":"session","method":"digest","domain":"dvl-ckl2.net","challenge":"12ee8cabc6ecb09f"} 25.03.
25.03.2020 22:40:20.8379 0.000 0000.013 smsg AppPlatform\Transitioner: sent->PBXWS {"mt":"Login","method":"digest","type":"session","username":"fe2f0cd5c27b5e0119980090334000b3","nonce":"8cd1584f38fd23c4","userAgent":"websocket.class.php (PHP WebSocket CKL-CELSIUS-W11)","response":"9ca09872b31117a581bbf0171e21f4cab46cf7e527ab07850fc5d59f2d74971d"} 25.03.
25.03.2020 22:40:20.8391 0.001 0000.014 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"LoginResult","info":{"user":{"domain":"dvl-ckl2.net","sip":"ckl","guid":"6fedb5cfe9435e01d0c70090334000b3","dn":"Christoph Künkel","num":"","email":"dvl-ckl2@class.local","prefix":{"intl":"000","ntl":"00","subs":"0","area":"621","country":"49"}}},"digest":"aa0fed9564d57451822ec790a73a3bf8e6827d79a0898fb93467a0cf542b3f76"} 25.03.
25.03.2020 22:40:20.8392 0.000 0000.014 runtime AppPlatform\UserPBXLoginWithAppAutomaton(UserPBXLogin): Successfully logged-in to PBX 172.31.31.2 as ckl 25.03.
25.03.2020 22:40:20.8392 0.000 0000.014 smsg AppPlatform\Transitioner: sent->PBXWS {"mt":"SubscribeApps"} 25.03.
25.03.2020 22:40:20.8393 0.000 0000.014 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"SessionAdded","id":"fe2f0cd5c27b5e0119980090334000b3","info":{"current":true,"userAgent":"websocket.class.php (PHP WebSocket CKL-CELSIUS-W11)","timestamp":1585172421000,"code":5027}} etc. 25.03.
25.03.2020 22:40:20.8400 0.000 0000.015 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"UpdateOwnPresence","presence":[{"contact":"tel:","activity":"","status":"closed"},{"contact":"im:","activity":"","status":"open"}]} 25.03.
25.03.2020 22:40:20.8401 0.000 0000.015 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"UpdateAppsInfo","app":{"name":"alarms","title":"Alarms","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/events/innovaphone-alarms"}} 25.03.
25.03.2020 22:40:20.8402 0.000 0000.015 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"UpdateAppsInfo","app":{"name":"ap","title":"AP","url":"https://apps.dvl-ckl2.net/manager/manager-domain-api","info":{ "hidden":true,"apis":{"com.innovaphone.manager":{}}}}} etc. 25.03.
25.03.2020 22:40:20.9090 0.000 0000.084 smsg AppPlatform\Transitioner: received<-PBXWS {"mt":"UpdateAppsComplete","deviceApps":[{"name":"phone","title":"Phone","deviceapp":"phone"},{"name":"rcc","title":"Rcc","deviceapp":"rcc"},{"name":"softphone","title":"Softphone","deviceapp":"softphone"}],"selected":"pbxmanager,chat,businesshours,apps,devices,users,users-admin,events,alarms,logging,voicemail-en,files,backup-files,reporting,calllist,fax,contacts,contacts-admin,calendar-admin"} 25.03.
25.03.2020 22:40:20.9091 0.000 0000.084 smsg AppPlatform\UserPBXLoginWithAppAutomaton(UserPBXLogin): posting UserPBXLogin->: {"mt":"LoginResult","info":{"user":{"domain":"dvl-ckl2.net","sip":"ckl","guid":"6fedb5cfe9435e01d0c70090334000b3","dn":"Christoph Künkel","num":"","email":"dvl-ckl2@class.local","prefix":{"intl":"000","ntl":"00","subs":"0","area":"621","country":"49"}}},"digest":"aa0fed9564d57451822ec790a73a3bf8e6827d79a0898fb93467a0cf542b3f76","_sourcename":"UserPBXLogin","sessionkeys":null} 25.03.
25.03.2020 22:40:20.9091 0.000 0000.084 runtime AppPlatform\UserPBXLoginWithAppAutomaton(UserPBXLogin): Successfully logged-in to PBX 172.31.31.2 as ckl 25.03.
25.03.2020 22:40:20.9093 0.000 0000.084 smsg AppPlatform\Transitioner: sent->PBXWS {"mt":"SubscribeApps"} 25.03.
25.03.2020 22:40:20.9094 0.000 0000.084 smsg AppPlatform\UserPBXLoginWithAppAutomaton(UserPBXLogin): posting UserPBXLogin->: {"mt":"UserPBXLoginSuccess","results":{"loginMsg":{"mt":"Login","method":"digest","type":"session","username":"fe2f0cd5c27b5e0119980090334000b3","nonce":"8cd1584f38fd23c4","userAgent":"websocket.class.php (PHP WebSocket CKL-CELSIUS-W11)","response":"9ca09872b31117a581bbf0171e21f4cab46cf7e527ab07850fc5d59f2d74971d","password":"rkg+1iDszg1E+emIIcKrga8"},"loginResultMsg":{"mt":"LoginResult","info":{"user":{"domain":"dvl-ckl2.net","sip":"ckl","guid":"6fedb5cfe9435e01d0c70090334000b3","dn":"Christoph Künkel","num":"","email":"dvl-ckl2@class.local","prefix":{"intl":"000","ntl":"00","subs":"0","area":"621","country":"49"}}},"digest":"aa0fed9564d57451822ec790a73a3bf8e6827d79a0898fb93467a0cf542b3f76","_sourcename":"UserPBXLogin","sessionkeys":null},"UpdateAppsMsg":{"apps":[{"name":"alarms","title":"Alarms","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/events/innovaphone-alarms"},{"name":"ap","title":"AP","url":"https://apps.dvl-ckl2.net/manager/manager-domain-api","info":{"hidden":true,"apis":{"com.innovaphone.manager":{}}}},{"name":"apps","title":"Apps","url":"https://apps.dvl-ckl2.net/manager/manager"},{"name":"backup-files","title":"Backup Files","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/backup-files/innovaphone-files"},{"name":"businesshours","title":"Business hours","url":"../../APPS/businesshours/app_bool","inline":true,"info":{"presence":true}},{"name":"calendar-admin","title":"Calendar Admin","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/calendar/innovaphone-calendaradmin"},{"name":"calllist","title":"Call List","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/reporting/innovaphone-calllist","info":{}},{"name":"calllist-api","title":"CallListApi","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/reporting/innovaphone-calllistapi","info":{"hidden":true,"apis":{"com.innovaphone.calllist":{}}}},{"name":"chat","title":"Chat","url":"../../APPS/chat/chat","inline":true,"info":{"apis":{"com.innovaphone.chat":{},"com.innovaphone.notificationhandler":{}},"wake":["chat"],"presence":true}},{"name":"contacts","title":"Contacts","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/contacts/innovaphone-contacts"},{"name":"contacts-admin","title":"Contacts Admin","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/contacts/innovaphone-contacts-admin"},{"name":"contacts-api","title":"ContactsApi","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/contacts/innovaphone-contacts-searchapi","info":{"hidden":true,"apis":{"com.innovaphone.search":{}}}},{"name":"devices","title":"Devices","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/devices/innovaphone-devices","info":{"apis":{"com.innovaphone.devicesui":{}}}},{"name":"devices-api","title":"DevicesApi","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/devices/innovaphone-devices-api","info":{"hidden":true,"apis":{"com.innovaphone.devices":{}}}},{"name":"events","title":"Events","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/events/innovaphone-eventsapp"},{"name":"fax","title":"Fax","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/fax/innovaphone-fax","inline":true,"info":{"presence":true}},{"name":"files","title":"Files","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/files/innovaphone-files"},{"name":"files-api","title":"FilesApi","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/files/innovaphone-files-api","info":{"hidden":true,"apis":{"com.innovaphone.files":{"info":{"announcements":{"url":""}}}}}},{"name":"logging","title":"Logging","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/events/innovaphone-logging"},{"name":"pbxmanager","title":"PbxManager","url":"../../APPS/app_manager/app_manager","inline":true},{"name":"profile","title":"Profile","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/usersapp/innovaphone-profile","info":{}},{"name":"reporting","title":"Reporting","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/reporting/innovaphone-reporting"},{"name":"users","title":"Users","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/usersapp/innovaphone-users"},{"name":"users-admin","title":"Users Admin","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/usersapp/innovaphone-usersadmin"},{"name":"users-apis","title":"UsersApi","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/usersapp/innovaphone-usersapis","info":{"hidden":true,"apis":{"com.innovaphone.search":{},"com.innovaphone.avatar":{"info":{"filename":"picture","token":"fa37JncCHryDsbzayy4cBWDxS22JjzhMaiRrV41mtzxlYvKWrO72tK0LK0e1zLOZ","domain":"dvl-ckl2.net"}}}}},{"name":"voicemail-en","title":"Voicemail en","url":"https://apps.dvl-ckl2.net/dvl-ckl2.net/voicemail_en/innovaphone-voicemail","inline":true,"info":{"presence":true}}]},"updateAppsComplete":true},"_sourcename":"UserPBXLogin"} 25.03.
25.03.2020 22:40:20.9600 0.050 0000.135 runtime script: Logged in to PBX 25.03.
25.03.2020 22:40:20.9601 0.000 0000.135 debug AppPlatform\Transitioner: transitioning PbxApiSample(PBX) from Initial via ReceiveInitialStart 25.03.
25.03.2020 22:40:20.9603 0.000 0000.135 smsg AppPlatform\Transitioner: sent->PBXWS {"mt":"GetStun","api":"PbxAdminApi"} 25.03.
25.03.2020 22:40:20.9604 0.000 0000.135 debug AppPlatform\Transitioner: callable 'ReceiveInitialStart' returns '' 25.03.
25.03.2020 22:40:25.9614 5.000 0005.136 debug AppPlatform\Transitioner: socket select timeout 25.03.
25.03.2020 22:40:25.9615 0.000 0005.136 debug AppPlatform\Transitioner: all but 1 automatons finished - end
I think the difference is that here we log in to the PBX as a user and you are logging in as an App. Is that right?