Define user agent.

This commit is contained in:
Ghislain MARY 2012-12-12 15:13:06 +01:00
parent 615e08ef89
commit d3adfb4512

View file

@ -414,6 +414,11 @@ public final class LinphoneManager implements LinphoneCoreListener {
mLc = LinphoneCoreFactory.instance().createLinphoneCore(
this, mLinphoneConfigFile, mLinphoneInitialConfigFile, null);
mLc.setContext(c);
try {
mLc.setUserAgent("LinphoneAndroid", c.getPackageManager().getPackageInfo(c.getPackageName(), 0).versionName);
} catch (NameNotFoundException e) {
Log.e(e, "cannot get version name");
}
mLc.enableIpv6(getPrefBoolean(R.string.pref_ipv6_key, false));
mLc.setZrtpSecretsCache(basePath+"/zrtp_secrets");