Search-API Tutorial
Hello,
I'm new to writing software on the PBX and wanted to start with some easy JS apps by following the search API tutorial (innovaphone SDK - Tutorial: Search API).
Unfortunately I'm not able to get the API requests working, the console output shows that the requests should be sent via the websocket connection but the network logging isn't showing any traffic after the app connection has been established.
In the console log I get these messages:
Forward to client:{"mt":"ApiRequest","api":"com.innovaphone.search","provider":"*","src":"9","msg":{"mt":"Search","type":"contact","search":"test"}}
Additional in the app log I get these messages when requesting:
01-18 07:07:42.327 hbsearchapitutorial@pbx-domain.de WebserverPlugin(00c6b3d0,00c6b150)::WebserverPluginWebsocketListenResult(): path = /13A107, registeredPathForRequest = , host = 192.168.17.253
01-18 07:07:42.327 hbsearchapitutorial@pbx-domain.de AppWebsocket(00c78590)::AppWebsocket
01-18 07:07:42.327 hbsearchapitutorial@pbx-domain.de WebserverPlugin(00c6b3d0,00c6b150)::WebsocketAccept(): user = 0x00c78590
01-18 07:07:42.327 hbsearchapitutorial@pbx-domain.de WebserverPlugin(connection id: 3967102)::WebsocketAccept() request accepted
01-18 07:07:42.333 hbsearchapitutorial@pbx-domain.de AppWebsocket(00c78590)::AppWebsocketRecv
01-18 07:07:42.333 hbsearchapitutorial@pbx-domain.de AppWebsocket(00c78590)::WebsocketSendResult() connected=0 sendCount=0
01-18 07:07:42.333 hbsearchapitutorial@pbx-domain.de AppWebsocket(00c78590)::AppWebsocketRecv
But the attached message handler on client side never get's any messages. I have also tried other client APIs e.g. the devices API with the same results.
I’m working with VS Code 2019 CE and SDK 13r1 13A107
Best regards,
Julian