cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
620
Views
1
Helpful
1
Replies

Get Address through Specific Terminal by using Jtapi?

zain.iftikhar
Level 1
Level 1

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).

1 Reply 1

pmnkumar
Level 1
Level 1

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.