Presence change event
Hi,
We have developed an app in node.js which stores a history of the changes in the presence of contacts.
The App works correctly, but does not capture the presence changes when the user talks on the phone. The contacts have associated a physical extension of Alcatel-Oxo, such as a softphone. If we consult the status of the contact from the Rainbow client, it appears as unknown, and no event is triggered. However, if the contact uses WebRtc then the change of presence is correctly recorded when speaking on the phone.
We do not know if it is an issue of the system, or a configuration issue, we would appreciate any help.
Thanks
-
Hello,
You should see a "busy" state on the Rainbow client and in the rainbow node sdk you have an event rainbow_onpresencechanged.
For example :
019-5-10 15:55:25 [1557496525897] - debug: vincent01 - EVENTS - (publishEvent) param 0 for event rainbow_onpresencechanged data : { fulljid:
'tel_xxxx@openrainbow.com/phone',
jid:
'xxxx@openrainbow.com',
resource: 'phone',
status: 'chat',
message: 'EVT_ESTABLISHED',
type: 'phone' }So it looks to be a bad configuration.
You should note that the PBX has to be connected to rainbow, and that the rainbow user should be associeted to a phoneset in this PBX (system in rainbow config).
Regards,
Vincent.
-
Hi,
In fact, we are not using the onPresenceChaged event, but we use the onContactPresenceChanged event (because it is triggered when the presence of a contact changes).
The fact is that the presence is set to 'unknown' if we consult it from the Rainbow cli, and there is no event received on the app we have developed (all other events are correctly received but phone calls).
Regards,
Josep Mª
-
Hello,
Ok, so let me describe the use case to see if i understood.
Alice is your account logged in the node sdk to listen the "onContactPresenceChanged" event.
Bob is a user with the OXO link.
Your need is to follow from Alice the Presence of Bob.
And then you do not received the Bob presence status when he is talking with he OXO phone.
Did i undserstood your issue ?
Vincent.
-
So Here some news :
* You need to add in Alice roster's the bob contact to receive events about PBX telephony state (busy...). You can add a contact in the roster from node SDK with contacts::addToContactsList .
Or you can to do it from web UI (The (+) icon 'invite to join your network').
* Then you will see the busy state for bob in the Web Client when logged in with Alice.
Current issue :
The SDK also do not yet treat these received events. So you can only verify it on UI for now :(.
Vincent.
-
Hi Vincent,
Have tried to invite contacts from web UI, but can't (they are part of our company, ans a message appears saying the it's on our contact list).
We have developed this app and it's ready to production. Before starting we made a query asking how to carry on the development, and they explained this way to do it.
My customer is waiting, will be possible to catch this events? And if this will be possible, when is expected to be available?
Thanks.
-
Hello,
With the informations you give us, you should receive presence on the UI. So do you have some informations (user login, company) And log, that the support can analyse to find the issue.
And for the event treatment in Rainbow Node SDK, we are evaluating the developpement needed to be done.
BR,
Vincent.
-
I tried to update rainbow-node-sdk, this is what I get
PS C:\Program Files (x86)\ondaraRainbowService> npm update --save rainbow-node-sdk
npm WARN presence-history@0.0.1 No repository field.
npm WARN presence-history@0.0.1 No license field.Is this ok?
Please sign in to leave a comment.
Comments
11 comments