imsdroid icon indicating copy to clipboard operation
imsdroid copied to clipboard

GetName from sip

Open marwensniper opened this issue 7 years ago • 1 comments

Hi,

How can i get the name of caller when he's incall.

mSession.getRemotePartyDisplayName() give me only the number.

Thx

marwensniper avatar Oct 29 '18 16:10 marwensniper

Try something like this: We had to make our own utility functions - To retrieve Contacts. Maybe you need to make your own.

image

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.

SamarthaKV29 avatar Jul 18 '20 20:07 SamarthaKV29