Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetName from sip #620

Open
marwensniper opened this issue Oct 29, 2018 · 1 comment
Open

GetName from sip #620

marwensniper opened this issue Oct 29, 2018 · 1 comment

Comments

@marwensniper
Copy link

Hi,

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

mSession.getRemotePartyDisplayName() give me only the number.

Thx

@SamarthaKV29
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants