Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Friday, 18 June 2021, 10:29 AM
Agenda SDK Dialog: Follow Up on WebSocket questions
Hello Jérémy,

I would like to clarify your questions later here in the Forum.

The questions was following:

10:07:26 – Jérémy BAUDRIN | CEOS-IT
We have some ideas for websockets used on the SDK, especially to get some datas
10:07:58 – Jérémy BAUDRIN | CEOS-IT
For instance, for calls in progress, it could be interesting to have these informations : the caller, the called, the direction of the call (incoming / outgoing), the date of the communication and the object (waiting queue or user)
10:09:55 – Jérémy BAUDRIN | CEOS-IT
When we get connected users list, we have an issue when the user pick up the handset, because he disappear from the list, and we need more data like : the number dialed, current time of communication, the status of user (busy, in communication, ...)

Stay tuned
Andreas Fink
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Friday, 18 June 2021, 10:58 AM
Re: Agenda SDK Dialog: Follow Up on WebSocket questions
> For instance, for calls in progress, it could be interesting
> to have these informations : the caller, the called, the
> direction of the call (incoming / outgoing),
> the date of the communication and the object (waiting queue or user)

We have defined the RCC API (https://sdk.innovaphone.com/13r2/doc/appwebsocket/RCC.htm) for this purpose.

However this API do not give you a list of users, like you would expect it from a REST API. The RCC API is based on signalling messages, that must be tracked by your API consumer application. In other words, you build up a list of current calls by receiving incoming messages from RCC API. Also any changes to the list of current calls inside of your application must be applied from the received RCC API messages.
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Friday, 18 June 2021, 11:01 AM in response to Andreas Fink (innovaphone)
Re: Agenda SDK Dialog: Follow Up on WebSocket questions
> When we get connected users list, we have an issue
> when the user pick up the handset, because he disappear
> from the list, and we need more data like : the number
> dialed, current time of communication, the status of user
> (busy, in communication, ...)

To be able to understand what exactly is not working as expected, we need some input from you. If possible, please post here complete communication (messages from/to API) of described use case.
Picture of Jérémy BAUDRIN 5493
Registered 3 years 297 days
Jérémy BAUDRIN 5493 Friday, 18 June 2021, 11:08 AM in response to Andreas Fink (innovaphone)
Re: Agenda SDK Dialog: Follow Up on WebSocket questions
Hello Andreas,

To clarify my questions, I'll give you an example below.

We are using websockets with Javascript directly on a HTML page, like the BusinessCard exemple. When we are connected to websocket and sending messages like "EndpointPresence" to the server, we only have some data like this : {"messageType":"EndpointPresence","name":"Adrien","phoneStatus":"open","imStatus":"open","activity":""}, which is not enough.

We need to get more datas like : number dialed, call direction and more.

The objective is to retrieve the list of users of a PBX and to follow their status "in real time", a bit like the software Operator.

Currently, we use SOAP to do this, because we get more data with this method.

Regards.
2013
Moderator Registered 16 years 15 days
Guntram Diehl (innovaphone) Friday, 18 June 2021, 11:15 AM
Re: Agenda SDK Dialog: Follow Up on WebSocket questions
I guess you should use the RCC Api then. The RCC Api supports the functionality of the SOAP Api.
Could you have look at RCC and check if this does what you need?
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Friday, 18 June 2021, 11:36 AM in response to Jérémy BAUDRIN 5493
Re: Agenda SDK Dialog: Follow Up on WebSocket questions
Or the API Messages you are looking for, that are most compatible to the older Toolkit API, are following:

SubscribePresence / UnsubscribePresence / UpdatePresence
SubscribeDialog / UnsubscribeDialog / DialogInfo (here you will get infos about current calls)

Reference => APIs => myApps
sdk.innovaphone.com/13r2/doc/appwebsocket/myApps.htm

In case you are hosting the application on a public web page, this will be the better way, probably.
← You can define your color theme preference here