Open marwensniper opened 6 years ago
Try something like this: We had to make our own utility functions - To retrieve Contacts. Maybe you need to make your own.
mSession.getRemotePartyDisplayName() give me only the number. This is correct, because as long as its not a contact, you will get only URI or number in this case. However you could probably use this function too:
mDisplayName = NgnUriUtils.getDisplayName(getRemoteParty());
This will give you a contact name if it exists, or else just the uri. You can only get the name of the caller if he is a contact. If he is, use the above to get his name.
Hi,
How can i get the name of caller when he's incall.
mSession.getRemotePartyDisplayName() give me only the number.
Thx