Picture of Wim 4127
Registered 7 years 1 day
Wim 4127 Monday, 3 July 2023, 10:30 AM
Get DECT IPEI number via replicator
Hi, we use the replicator to get informed about user changes. When I change the IPEI number for a DECT device, I get notified of a change, but, I cannot figure out which info I have to add to the replicator API start method (the columns) to get the IPEI number also in the information that is reported by the replicator. Currently it looks like

...

jsonMessage.add_object(columnsObject, "guid");
jsonMessage.add_object(columnsObject, "longName");
jsonMessage.add_object(columnsObject, "displayName");
jsonMessage.add_object(columnsObject, "h323");
jsonMessage.add_object(columnsObject, "e164");
jsonMessage.add_object(columnsObject, "pwd");
jsonMessage.add_object(columnsObject, "devices");

_connection.JsonApiMessage(jsonMessage, buffer);

What do I have to add to also get the IPEI number in the update?

Kr,

Wim

Picture of Elias Lievens (innovaphone)
Moderator Registered 4 years 153 days
Elias Lievens (innovaphone) Saturday, 8 July 2023, 08:54 PM
Re: Get DECT IPEI number via replicator
Hello Wim,

You can add "gws" to the replicator API start method to be informed about the DECT-config of a user.
This will return an array of "gw" objects.

{
"mt": "ReplicateNextResult",
"src": "ReplicationObjects",
"api": "PbxTableUsers",
"columns": {
"guid": "195645fcffff00ff0000ff00ff0000ff",
"cn": "Common Name",
"h323": "h323",
"e164": "222",
"node": "root",
"loc": "pbx",
"gws": [
{
"name": "Gateway",
"dsp": "Idle Display",
"ac": "1234",
"ipei": "1234567890"
}
]
}
}

More info:
* Overview of the colums: https://sdk.innovaphone.com/13r3/doc/appwebsocket/PbxAdminApi.htm#UpdateObject
* Details of the "gw"-object: https://sdk.innovaphone.com/13r3/doc/appwebsocket/PbxAdminApi.htm#gw
(I guess there's a typo in the documentation: the documentation mentions 'idle', while the ReplicatorNextResult mentions 'dsp' (see example above)).

Elias
← You can define your color theme preference here