Use vga as default video size for tablets + fix for proxy config settings
This commit is contained in:
parent
0c9c75af60
commit
485ae02ee1
2 changed files with 18 additions and 10 deletions
|
@ -10,7 +10,7 @@ use_ipv6=0
|
|||
keepalive_period=30000
|
||||
|
||||
[video]
|
||||
size=qvga
|
||||
size=vga
|
||||
|
||||
[app]
|
||||
sharing_server=https://www.linphone.org:444/upload.php
|
||||
|
|
|
@ -86,16 +86,12 @@ public class LinphonePreferences {
|
|||
}
|
||||
|
||||
public String getRingtone(String defaultRingtone) {
|
||||
String ringtone = getLc().getRing();
|
||||
String ringtone = getConfig().getString("app", "ringtone", defaultRingtone);
|
||||
if (ringtone == null || ringtone.length() == 0)
|
||||
ringtone = defaultRingtone;
|
||||
return ringtone;
|
||||
}
|
||||
|
||||
public void setRingtone(String ringtone) {
|
||||
getLc().setRing(ringtone);
|
||||
}
|
||||
|
||||
public boolean shouldAutomaticallyAcceptFriendsRequests() {
|
||||
return false; //TODO
|
||||
}
|
||||
|
@ -177,7 +173,15 @@ public class LinphonePreferences {
|
|||
}
|
||||
|
||||
public void setAccountUsername(int n, String username) {
|
||||
String identity = "sip:" + username + "@" + getAccountDomain(n);
|
||||
try {
|
||||
LinphoneProxyConfig prxCfg = getProxyConfig(n);
|
||||
prxCfg.setIdentity(identity);
|
||||
prxCfg.done();
|
||||
getAuthInfo(n).setUsername(username);
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public String getAccountUsername(int n) {
|
||||
|
@ -223,6 +227,7 @@ public class LinphonePreferences {
|
|||
LinphoneProxyConfig prxCfg = getProxyConfig(n);
|
||||
prxCfg.setIdentity(identity);
|
||||
prxCfg.setProxy(proxy);
|
||||
prxCfg.done();
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -243,6 +248,7 @@ public class LinphonePreferences {
|
|||
try {
|
||||
LinphoneProxyConfig prxCfg = getProxyConfig(n);
|
||||
prxCfg.setProxy(proxy);
|
||||
prxCfg.done();
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -262,15 +268,17 @@ public class LinphonePreferences {
|
|||
|
||||
public void setAccountOutboundProxyEnabled(int n, boolean enabled) {
|
||||
try {
|
||||
LinphoneProxyConfig prxCfg = getProxyConfig(n);
|
||||
if (enabled) {
|
||||
String route = getAccountProxy(n);
|
||||
String route = prxCfg.getProxy();
|
||||
if (!route.startsWith("sip:")) {
|
||||
route = "sip:" + route;
|
||||
}
|
||||
getProxyConfig(n).setRoute(route);
|
||||
prxCfg.setRoute(route);
|
||||
} else {
|
||||
getProxyConfig(n).setRoute(null);
|
||||
prxCfg.setRoute(null);
|
||||
}
|
||||
prxCfg.done();
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue