Improved file transfer server url handling

This commit is contained in:
Sylvain Berfini 2016-04-29 10:31:02 +02:00
parent a3ad1105e2
commit d399aaeda6
6 changed files with 12 additions and 10 deletions

View file

@ -12,10 +12,13 @@ keepalive_period=30000
size=vga
[app]
sharing_server=https://www.linphone.org:444/lft.php
tunnel=disabled
push_notification=1
[tunnel]
host=
port=443
[misc]
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
file_transfer_server_url=https://www.linphone.org:444/lft.php

View file

@ -32,4 +32,3 @@ ec_calibrator_cool_tones=1
[misc]
max_calls=10
log_collection_upload_server_url=https://www.linphone.org:444/lft.php

View file

@ -12,7 +12,6 @@ keepalive_period=30000
size=qvga
[app]
sharing_server=https://www.linphone.org:444/lft.php
tunnel=disabled
push_notification=1
auto_start=1
@ -20,3 +19,7 @@ auto_start=1
[tunnel]
host=
port=443
[misc]
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
file_transfer_server_url=https://www.linphone.org:444/lft.php

View file

@ -32,5 +32,3 @@ ec_calibrator_cool_tones=1
[misc]
max_calls=10
log_collection_upload_server_url=https://www.linphone.org:444/lft.php

View file

@ -690,7 +690,6 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
}
resetCameraFromPreferences();
mLc.setFileTransferServer(LinphonePreferences.instance().getSharingPictureServerUrl());
}
private void copyAssetsFromPackage() throws IOException {

View file

@ -1039,11 +1039,11 @@ public class LinphonePreferences {
}
public String getSharingPictureServerUrl() {
return getConfig().getString("app", "sharing_server", null);
return getLc().getFileTransferServer();
}
public void setSharingPictureServerUrl(String url) {
getConfig().setString("app", "sharing_server", url);
getLc().setFileTransferServer(url);
}
public void setRemoteProvisioningUrl(String url) {