cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

425
Views
0
Helpful
3
Replies
Beginner

Pulling MAC address from jtapi

I am working with a vendor that I currently have setup with an application user that is able to pull names and extensions from CUCM 9.1.2.  What they are telling me is they cannot pull the MAC address information from the jtapi integration so they can tie user to extension to physical phone.

I am not a programmer and don't understand what it takes to pull this information but is it possible to do such a query?

3 REPLIES 3
Cisco Employee

Re: Pulling MAC address from jtapi

You can use JTAPI to get the names of the devices.  With some exceptions, the device name is usually 3 letters (SEP, for example) followed by the MAC address.  I don't know of a way to directly access the MAC address for all devices with JTAPI, but you can use JTAPI to get the IP address and then use Java to get the MAC address from the IP address. 

Get Mac address in java - Stack Overflow

Highlighted
Contributor

Re: Pulling MAC address from jtapi

Using JTAPI you can pull devices from CUCM. To do this you need to create an application user in CUCM and assign devices to this application user. After configuration you need to write JTAPI application which will give you all the devices (provider.getTerminals() API ) assigned to your application user.

Regards,

Umesh

Cisco Employee

Re: Pulling MAC address from jtapi

This is correct.  You getTerminals() and then for each terminal you getIPV4Address(), after which you use Java's NetworkInterface to getHardwareAddress() (the MAC address).  See the Stack Overflow link above for an example on how to use getHardwareAddress(). 

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here