Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Monday, 13 June 2022, 09:50 AM
Using RCC API from C++ backend with groups seems not usable
Hi,

I implemented the RCC API in my C++ backend and initialize the API on the connection with the PBX as soon as I receive the PbxInfo message (same as in the documentation). This works as described, however, I would like the "group" feature (setting the grp attribute in the Initialize message to true) te configure the users I see and get notifications about. Problem is that this is then the group the app object itself belongs to, which I set to "xqting" (actively). However, the app object is always in the root node of the master PBX, and, this is not configurable. The users of the PBX are added to a specific node, but, cannot be added to the pbx "master".

Because this, it seems impossible to define a group where the app object itself belongs to, that can also be assigned to one or more users, because the groups are not assignable, only to the same node/pbx.

Is this correct, or, am I seeing this wrong or is there another way. If not, I guess I'm force to use with the config templates? (which I find not a pretty solution unfortunatly in this case for monitoring certain users)

Please advise on how to solve this
Picture of Rubins Selmanaj (innovaphone)
Registered 4 years 192 days
Rubins Selmanaj (innovaphone) Monday, 20 June 2022, 01:07 PM
Re: Using RCC API from C++ backend with groups seems not usable
Hello Wim,

You are trying to create a group that can be assigned to different PBX Users/Apps (for example a user from the slave PBX can be in the same
group as another user from the master PBX).
Is that correct?
I assume you are using the Master-Slave setup?

Best Regards
Rubins Selmanaj
Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Tuesday, 21 June 2022, 08:27 PM
1 of 1 users consider this post helpful
Re: Using RCC API from C++ backend with groups seems not usable
I figured it out in the meantime and it is is a bug/error in the visual studio extension of innovaphone.

If you create a new app with the visual studio extension, then the extension will create an app object in the PBX and sets all properties. However, it also sets the "PBX" property of the object to "master"... no matter what you do. If you create an app object yourself, the "PBX" property will be empty.

Normally, this is not a problem, but, if you want to use the RCC API in combination with a group name to monitor certain objects, you must put the app object actively in a group, and put all monitored users in that same group. This does NOT work if your app object has the PBX property set to master. When the PBX property is set to master, and you assign a group to the app object, the group cannot be selected for anything else.

I solved the problem by deleting the app object that was created by the visual studio extension and create it manually again with the same properties. This way, the PBX property is empty, and, group configuration for the RCC API can be used. If the app object is created using the Admin PBX plugins, the PBX property is also empty.

Conclusion: fix the visual studio extension and make sure that it creates an app object without setting the PBX property to master
Picture of Rubins Selmanaj (innovaphone)
Registered 4 years 192 days
Rubins Selmanaj (innovaphone) Thursday, 23 June 2022, 04:08 PM
Re: Using RCC API from C++ backend with groups seems not usable
Hello Wim,

thanks for the feedback, the problem has been fixed, the fix will be available on the next Service-Release.


Best Regards
Rubins Selmanaj
← You can define your color theme preference here