linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] linphone-android - calling default account pas


From: Sylvain Berfini
Subject: Re: [Linphone-developers] linphone-android - calling default account password
Date: Mon, 14 Mar 2016 09:21:01 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi Leonard,

If you store the password as HA1, getPassword will return NULL.
To check if you are in this situation, open the linphonerc on your device (I guess it is Android):
$ adb shell run-as org.linphone cat files/.linphonerc

If in the [auth_info_x] section you have
password=<something>
then it is a bug, however if you have
ha1=<something>
then everything behaves as intented.

Cheers.
Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 13/03/2016 05:01, Leonard Fodje a écrit :
I am trying to retrieve password of default account. The below code is giving null. Can someone help?

String password = LinphonePreferences.instance().getAccountPassword(0);

        
However, retrieving the username below works.

        
String username = LinphonePreferences.instance().getDefaultUsername();
Thanks,
Leonard


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]