Picture of Carsten
Registered 2 years 274 days
Carsten Monday, 11 July 2022, 03:03 PM
RCC API from browser
I would like to use RCC from the browser.

My situation:
I can connect to the PBX web socket and authenticate.

Connecting to : ws://ipva.ilink.de/PBX0/APPCLIENT/websocket
Got connect
msg sent: {"mt":"Login","type":"user"}
msg received: {"mt":"Authenticate","type":"user","method":"digest","domain":"Applikationen.com","challenge":"f42a0d6ff42a0827"}
msg sent: {"mt":"Login","type":"user","method":"digest","username":"cjg","nonce":"dc2fbb6b6bbc8ef2","response":"2814a53e43afb39d5bbf1d55d9160c5d460a7980da8cee8241faca9f3c5d96cc"}
msg received: {"mt":"LoginResult","info":{"user":{"domain":"Applikationen.com","...}

So far so good.
Now I would like to use the RCC API, not the phone API. Is there an examples? Is this possible at all?

Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Tuesday, 12 July 2022, 02:01 PM
Re: RCC API from browser
Hello Carsten,

the URL path /PBX0/APPCLIENT/websocket is only intended for myApps client WebSocket connections.

To be able to use RCC API the WebSocket connection must be established to the URL with path /PBX0/APPS/websocket.

Additionally, on this WebSocket connection an AppLogin to an App Object with enabled RCC API must be performed, in order to be able to use RCC API.

More convenient way would be to implement an App Service, that has RCC API enabled on the App Object and provides a custom JsonApi to the clients, which relays the RCC requests, if user is allowed.

Best Regards
Andreas Fink
← You can define your color theme preference here