Get Address through Specific Terminal by using Jtapi?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2018 06:31 AM
Hi,
I'm new with Jtapi. We get addresses and terminals through jtapi library by using following method( provider.getAddresses(); provider.getTerminals(); ).
My question is that can we get address of specific user through jtapi.
Like I will give terminal (John) and get back address of that terminal (20001).
- Labels:
-
JTAPI

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 11:43 AM
Terminal.getAddresses() will return all the addresses configured on that terminal. There is no easy way to get the Terminal for a particular user unless extension mobility is active on the device. If there is a active EM login session on the phone, getEMLoginUsername() will return the userid. You need to loop through all the terminals to find a match and works if all the users do EM.
AXL API is more appropriate to find the user<->phone configuration.
