Picture of Juna 5577
Registered 3 years 341 days
Juna 5577 Tuesday, 7 November 2023, 01:01 PM
Use the PbxTableUsers API to replicate the user presence
Hi,
I have a question, I`m trying to replicate users with the PbxTableUsers API.
conn.send(JSON.stringify({ api: "PbxTableUsers", mt: "ReplicateStart", columns:
{ guid: { "update": true }, dn: { "update": true }, h323: { "update": true }, cn: { "update": true }, presence: { "update": true }, grps: { "update": true }, cds: { "update": true }, pseudo: { "update": true }, allows: { "update": true }, loc: { "update": true } }, pseudo: [""] }));

An example of a replicated user:
{"mt":"ReplicateNextResult","api":"PbxTableUsers","columns":{"guid":string,"dn":string,"h323":string,"cn":string,"presence":[{"c":string,"a":string,"n":string}],"grps":[],"loc":string}}
My problem is that c in presence (contact) only shows me "tel:" and "calendar:" but not "im:". So that I can`t get the status of the user.

Why is that? And is there a way to get the status with the PbxTableUsers API?
Andreas Fink
Moderator Registered 13 years 166 days
Andreas Fink (innovaphone) Wednesday, 6 December 2023, 01:37 PM
Re: Use the PbxTableUsers API to replicate the user presence
Hello Juna,

there are two types of infos that handled in different ways while replication:
  • persistent - are replicated
  • not persistent - are not replicated
In case of the im: presence the better way to get users im: presence info is to subscribe for presence updates via the PbxApi.

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