Picture of Ralf 5242
Registered 4 years 67 days
Ralf 5242 Wednesday, 3 February 2021, 09:33 AM
1 of 1 users consider this post helpful
PbxAdminApi - GetObject: No email address
Hello,

we use the PbxAdminApi funtion "GetObject" to retrieve information about a user. When we do this no email address is returned (but an email address is set in the user) - see response below. Can you extend the response so that the email address is also returned or is there another way to get the email address?

{
"api": "PbxAdminApi",
"mt": "GetObjectResult",
"guid": "b12fb8dbe909d3118a73000c295fcc3b",
"dn": "USER600",
"cn": "USER600",
"h323": "USER600",
"e164": "60",
"loc": "MASTER",
"node": "root",
"grp": [
{
"name": "agents"
},
{
"name": "gruppe2"
}
],
"filter": "FilterAll",
"hide": false,
"no-dev": false,
"mypbx": true,
"reporting": true,
"devices": [
{
"hw": "USER600"
}
],
"wakeups": [],
"critical": false
}


Thanks
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Tuesday, 16 March 2021, 02:55 PM
Re: PbxAdminApi - GetObject: No email address
Hi,

you are right, the email addresses were also missing in the message.

I added them in 13r2. It will look like that:

{
"api": "PbxAdminApi",
"mt": "GetObjectResult",
...
"h323-email": true,
"emails":[{"email":"user@example.com"}],
...
}

The h323-email flag tells, if h323@pbx-domain is also a valid email address.

BR
Matthias


Picture of Ralf 5242
Registered 4 years 67 days
Ralf 5242 Tuesday, 16 March 2021, 03:05 PM
Re: PbxAdminApi - GetObject: No email address
Hi,

what exactly do you mean by "h323@pbx-domain is also a valid email address"?

I want to get the email address of the user. How can I find the corrent one if "h323@pbx-domain" is also delivered?

Thanks,
Ralf
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 135 days
Matthias Schertler (innovaphone) Tuesday, 16 March 2021, 03:20 PM
Re: PbxAdminApi - GetObject: No email address
If the flag is true, you can build a valid email address using the following fields:
  • The h323-name of the user
    • "h323" from the GetObjectResult message
  • @
  • The PBX domain
    • "domain" from the MonitorConfigInfo message
    • See: http://sdk.innovaphone.com/doc/appwebsocket/PbxAdminApi.htm#MonitorConfig
BR
Matthias
← You can define your color theme preference here