Picture of Ralf 5242
Registered 4 years 124 days
Ralf 5242 Friday, 10 November 2023, 01:12 PM
PbxAdminApi - Option "Call forward based on Presence"
Hello,

we use the PbxAdminApi and would like to check the setting "Call forward based on Presence" and update/change this value.
The function "GetObject" does not return this value (the GetObject function returns always the same values - no indication that the "Call forward based on Presence" is set). How can we access this value and change it.

Thanks,
Ralf
Picture of mitop
Registered 3 years 348 days
mitop Monday, 4 December 2023, 06:29 PM
Re: PbxAdminApi - Option "Call forward based on Presence"
Hello Ralf,

have you tried to get the information from TableUsers? (https://sdk.innovaphone.com/13r3/doc/appwebsocket/PbxTableUsers.htm)

Maybe you get the value you want from replicating the users and can change it with UpdateObject from the PbxAdminApi.


Kind regards
Mladen
Picture of Ralf 5242
Registered 4 years 124 days
Ralf 5242 Tuesday, 5 December 2023, 09:40 AM
Re: PbxAdminApi - Option "Call forward based on Presence"
According to the documentation the flag is returned (have not tried).

But this seems not to be a interface to use for my use case. According to documentation: "When the replication starts, the complete table is replicated from the publisher to the replicator.". This is not what I can use because I need to retrieve the "current" setting of 1 user. To always get the whole users list is not performant and therefore not useful for me. This would be ok, if I could search for only 1 entry.
Picture of mitop
Registered 3 years 348 days
mitop Tuesday, 5 December 2023, 11:12 AM
Re: PbxAdminApi - Option "Call forward based on Presence"
Are you planning a feature/app that should only be used by one user of the system?

The documentation is somewhat outdated or has not yet been adapted. In the meantime, a USN flag exists with which only the changes are replicated at startup and no longer the entire user table. What exactly is to be replicated can also be determined so that the current values are always available for certain flags when an interaction is to take place. But of course, there may be use cases where this is not needed.
It was worth a try to point this out to you, happy hacking
Picture of Ralf 5242
Registered 4 years 124 days
Ralf 5242 Tuesday, 5 December 2023, 11:22 AM
Re: PbxAdminApi - Option "Call forward based on Presence"
We monitor the presence status of ALL the user of the system - so this could be many.

When the status changes we would like to check what the flag "Call forward based on Presence" of the user is - and maybe handle this differently.
So it does not make sense to always get all the users (or even all the changes of all the users) which wouldn't scale.

For me the only sensible option would be to get this flag with the normal call to GetObject and also maybe set the flag. This would be only 1 call for 1 user and this would scale.
Picture of mitop
Registered 3 years 348 days
mitop Tuesday, 5 December 2023, 11:53 AM
Re: PbxAdminApi - Option "Call forward based on Presence"
Sorry but i do not get your understanding of scaling.

If you monitor user presence with replication (or another mechanism?) and only get the updates and changes, and every time each user's presence status changes you want to check some other flags that can also only be replicated when changes occur, then why bother and query the pbx yourself with a command? The PbxAdminApi fires against the Pbx, which can also load the Pbx if there are too many commands, and makes the system unscalable. Or am I remembering this wrong?

But well, I'll stay out of it now smile
Picture of Ralf 5242
Registered 4 years 124 days
Ralf 5242 Tuesday, 5 December 2023, 12:06 PM
Re: PbxAdminApi - Option "Call forward based on Presence"
We don not use replication at all (I don't think this scales). The Flag USN I could not find so I'm not sure how it works. But it sound like I had to poll which also does not scale and is no option for us.

We use PbxApi - SubscribePresence. Here we only get an event when the presence status changes.So only for the user whose presence status changes an event is received.

About the point "The PbxAdminApi fires against the Pbx..." - I'm not sure what you mean. How the pbx internally operates I don't know (and doesn't bother me). For me it is important:
- no polling
- scaling (so only query/... the information needed)
Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Wednesday, 13 December 2023, 03:24 PM in response to Ralf 5242
Re: PbxAdminApi - Option "Call forward based on Presence"
Hello Ralf,

I was not able to reproduce the missing option for "Call forward based on Presence" - it is indicated as "cfpr" property:

{
"api": "PbxAdminApi",
"mt": "GetObjectResult",
"cn": "John Doe",
"cfpr": true,
}

Which PBX version is used in your case?

Best Regards
Andreas Fink
Picture of Ralf 5242
Registered 4 years 124 days
Ralf 5242 Monday, 8 January 2024, 10:00 AM
Re: PbxAdminApi - Option "Call forward based on Presence"
Hello,

we use the cloud instance with version: 13r2 sr30 IPVA[13.6448], Bootcode[1000], Hardware[0]

Attached is a screenshot where you can see on the left the return from GetObjectResult and on the right the settings ("Depends on the Presence ststus" is active).

Best Regards,
Ralf Kloth
Screenshot-1.png

Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Wednesday, 10 January 2024, 04:38 PM
Re: PbxAdminApi - Option "Call forward based on Presence"
Hello Ralf,

this explains the missing properties - the PBX Admin API was extended in 13r3:



This means, in order to be able to work with the properties you are asking for, you will need to upgrade the PBX to 13r3 software.


You have to update anyway, since with the release of 14r1 the support for 13r2 was terminated:

Best Regards
Andreas Fink

← You can define your color theme preference here