cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1132
Views
0
Helpful
2
Replies

Getting contact info

ivanapantelic
Level 1
Level 1

How can I get contact name and phone number if get-user-config returns only IMAddress, userName, listName and Calendar, and get-contact-info returns nothing? I use wsdl EPASSoap file from server.

2 Replies 2

npetrele
Cisco Employee
Cisco Employee

Get-contact-info returns vCard data if it is set.  It's not set by default.  You can set it with modify-contact-info to include things like phone number, etc.

Here's the page where you can find the documentation for your version of Cisco IM&Presence.

Cisco CUPAPI

You can find get-contact-info and samples in the documentation.

There is a setting in IM&P to build vCards from LDAP, but I have never gotten it to work.  It should work, so I'm obviously doing something wrong, but I haven't had time to explore what that is.  I suspect it's this caveat:  "A user’s vCard will become available only when it is published, typically on the client side."

Assuming there is a CUCM as part of the system, you may be able to retrieve that kind of info from CUCM (based on the user ID) via the AXL (server-to-server model) or UDS (user client model) APIs:

https://developer.cisco.com/site/axl/overview/

User Data Service - Cisco UDS