- Joined
- Jan 8, 2020
- Messages
- 17
- Reaction score
- 8
I'm attempting to get the 3CX JSON integration to work with the ldap2json python module so that incoming CID can be looked up against AD to display caller name. I was able to get the web service set up and I can query my AD and get a JSON return, but I can't for the life of me figure out how to use the XML template wizard to validate a config before I try to upload it to the PBX.
The response tree for my query shows 2 nodes, [0] which contains the DN of the AD object, and [1] which has all the attributes. The tree shows, under [1], mobile = 'xxxxxxxxxx', but the tool won't show it as bold, so I don't think it's matching when I do a contact lookup. If I look at the raw JSON response, the path looks like it should be [1].mobile.[0] because mobile contains a single element array but that doesn't seem to work either.
Any chance someone can offer some guidance on how to get the matching rules to work so this thing can read the values I'm pulling? I tried to paste the output of my query into jsonpath.com but to get the mobile number in that tool I have to use $.0.1.mobile.0
The response tree for my query shows 2 nodes, [0] which contains the DN of the AD object, and [1] which has all the attributes. The tree shows, under [1], mobile = 'xxxxxxxxxx', but the tool won't show it as bold, so I don't think it's matching when I do a contact lookup. If I look at the raw JSON response, the path looks like it should be [1].mobile.[0] because mobile contains a single element array but that doesn't seem to work either.
Any chance someone can offer some guidance on how to get the matching rules to work so this thing can read the values I'm pulling? I tried to paste the output of my query into jsonpath.com but to get the mobile number in that tool I have to use $.0.1.mobile.0
