Add IMDN Threshold

This commit is contained in:
Benoit Martins 2025-03-04 11:46:55 +01:00
parent 63a1886ff5
commit 0b81887728
6 changed files with 79 additions and 56 deletions

View file

@ -153,6 +153,8 @@ final class CoreContext: ObservableObject {
self.mCore.config!.setString(section: "misc", key: "file_transfer_server_url", value: "https://files.linphone.org:443/http-file-transfer-server/hft.php") self.mCore.config!.setString(section: "misc", key: "file_transfer_server_url", value: "https://files.linphone.org:443/http-file-transfer-server/hft.php")
self.mCore.config!.setString(section: "misc", key: "version_check_url_root", value: "https://download.linphone.org/releases") self.mCore.config!.setString(section: "misc", key: "version_check_url_root", value: "https://download.linphone.org/releases")
self.mCore.imdnToEverybodyThreshold = 1
let shortcutsCount = self.mCore.config!.getInt(section: "ui", key: "shortcut_count", defaultValue: 0) let shortcutsCount = self.mCore.config!.getInt(section: "ui", key: "shortcut_count", defaultValue: 0)
if shortcutsCount > 0 { if shortcutsCount > 0 {
var shortcuts: [ShortcutModel] = [] var shortcuts: [ShortcutModel] = []

View file

@ -1,37 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd"> <config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd">
<section name="proxy_default_values"> <section name="proxy_default_values">
<entry name="avpf" overwrite="true">1</entry> <entry name="avpf" overwrite="true">1</entry>
<entry name="dial_escape_plus" overwrite="true">0</entry> <entry name="dial_escape_plus" overwrite="true">0</entry>
<entry name="publish" overwrite="true">1</entry> <entry name="publish" overwrite="true">1</entry>
<entry name="publish_expires" overwrite="true">120</entry> <entry name="publish_expires" overwrite="true">120</entry>
<entry name="quality_reporting_collector" overwrite="true">sip:voip-metrics@sip.linphone.org;transport=tls</entry> <entry name="quality_reporting_collector" overwrite="true">sip:voip-metrics@sip.linphone.org;transport=tls</entry>
<entry name="quality_reporting_enabled" overwrite="true">1</entry> <entry name="quality_reporting_enabled" overwrite="true">1</entry>
<entry name="quality_reporting_interval" overwrite="true">180</entry> <entry name="quality_reporting_interval" overwrite="true">180</entry>
<entry name="reg_expires" overwrite="true">31536000</entry> <entry name="reg_expires" overwrite="true">31536000</entry>
<entry name="reg_identity" overwrite="true">sip:?@sip.linphone.org</entry> <entry name="reg_identity" overwrite="true">sip:?@sip.linphone.org</entry>
<entry name="reg_proxy" overwrite="true">&lt;sip:sip.linphone.org;transport=tls&gt;</entry> <entry name="reg_proxy" overwrite="true">&lt;sip:sip.linphone.org;transport=tls&gt;</entry>
<entry name="reg_route" overwrite="true">&lt;sip:sip.linphone.org;transport=tls&gt;</entry> <entry name="reg_route" overwrite="true">&lt;sip:sip.linphone.org;transport=tls&gt;</entry>
<entry name="reg_sendregister" overwrite="true">1</entry> <entry name="reg_sendregister" overwrite="true">1</entry>
<entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry> <entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry>
<entry name="realm" overwrite="true">sip.linphone.org</entry> <entry name="realm" overwrite="true">sip.linphone.org</entry>
<entry name="conference_factory_uri" overwrite="true">sip:conference-factory@sip.linphone.org</entry> <entry name="conference_factory_uri" overwrite="true">sip:conference-factory@sip.linphone.org</entry>
<entry name="audio_video_conference_factory_uri" overwrite="true">sip:videoconference-factory@sip.linphone.org</entry> <entry name="audio_video_conference_factory_uri" overwrite="true">sip:videoconference-factory@sip.linphone.org</entry>
<entry name="push_notification_allowed" overwrite="true">1</entry> <entry name="push_notification_allowed" overwrite="true">1</entry>
<entry name="remote_push_notification_allowed" overwrite="true">1</entry> <entry name="remote_push_notification_allowed" overwrite="true">1</entry>
<entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">1</entry> <entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">1</entry>
<entry name="rtp_bundle" overwrite="true">1</entry> <entry name="rtp_bundle" overwrite="true">1</entry>
<entry name="lime_server_url" overwrite="true">https://lime.linphone.org/lime-server/lime-server.php</entry> <entry name="lime_server_url" overwrite="true">https://lime.linphone.org/lime-server/lime-server.php</entry>
<entry name="lime_algo" overwrite="true">c25519</entry>
<entry name="supported" overwrite="true"></entry>
</section> </section>
<section name="nat_policy_default_values"> <section name="nat_policy_default_values">
<entry name="stun_server" overwrite="true">stun.linphone.org</entry> <entry name="stun_server" overwrite="true">stun.linphone.org</entry>
<entry name="protocols" overwrite="true">stun,ice</entry> <entry name="protocols" overwrite="true">stun,ice</entry>
</section> </section>
<section name="sip"> <section name="sip">
<entry name="media_encryption" overwrite="true">zrtp</entry> <entry name="media_encryption" overwrite="true">zrtp</entry>
<entry name="media_encryption_mandatory">1</entry> <entry name="media_encryption_mandatory">1</entry>
</section> </section>
<section name="net"> <section name="net">
<entry name="friendlist_subscription_enabled" overwrite="true">1</entry> <entry name="friendlist_subscription_enabled" overwrite="true">1</entry>
</section> </section>
</config> </config>

View file

@ -1,33 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd"> <config xmlns="http://www.linphone.org/xsds/lpconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.linphone.org/xsds/lpconfig.xsd lpconfig.xsd">
<section name="proxy_default_values"> <section name="proxy_default_values">
<entry name="avpf" overwrite="true">0</entry> <entry name="avpf" overwrite="true">0</entry>
<entry name="dial_escape_plus" overwrite="true">0</entry> <entry name="dial_escape_plus" overwrite="true">0</entry>
<entry name="publish" overwrite="true">0</entry> <entry name="publish" overwrite="true">0</entry>
<entry name="publish_expires" overwrite="true">-1</entry> <entry name="publish_expires" overwrite="true">-1</entry>
<entry name="quality_reporting_collector" overwrite="true"></entry> <entry name="quality_reporting_collector" overwrite="true"></entry>
<entry name="quality_reporting_enabled" overwrite="true">0</entry> <entry name="quality_reporting_enabled" overwrite="true">0</entry>
<entry name="quality_reporting_interval" overwrite="true">0</entry> <entry name="quality_reporting_interval" overwrite="true">0</entry>
<entry name="reg_expires" overwrite="true">3600</entry> <entry name="reg_expires" overwrite="true">3600</entry>
<entry name="reg_identity" overwrite="true"></entry> <entry name="reg_identity" overwrite="true"></entry>
<entry name="reg_proxy" overwrite="true"></entry> <entry name="reg_proxy" overwrite="true"></entry>
<entry name="reg_route" overwrite="true"></entry> <entry name="reg_route" overwrite="true"></entry>
<entry name="reg_sendregister" overwrite="true">1</entry> <entry name="reg_sendregister" overwrite="true">1</entry>
<entry name="nat_policy_ref" overwrite="true"></entry> <entry name="nat_policy_ref" overwrite="true"></entry>
<entry name="realm" overwrite="true"></entry> <entry name="realm" overwrite="true"></entry>
<entry name="conference_factory_uri" overwrite="true"></entry> <entry name="conference_factory_uri" overwrite="true"></entry>
<entry name="audio_video_conference_factory_uri" overwrite="true"></entry> <entry name="audio_video_conference_factory_uri" overwrite="true"></entry>
<entry name="push_notification_allowed" overwrite="true">0</entry> <entry name="push_notification_allowed" overwrite="true">0</entry>
<entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">0</entry> <entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">0</entry>
<entry name="rtp_bundle" overwrite="true">0</entry> <entry name="rtp_bundle" overwrite="true">0</entry>
<entry name="lime_server_url" overwrite="true"></entry> <entry name="lime_server_url" overwrite="true"></entry>
<entry name="lime_algo" overwrite="true"></entry>
<entry name="supported" overwrite="true">outbound</entry>
</section> </section>
<section name="nat_policy_default_values"> <section name="nat_policy_default_values">
<entry name="stun_server" overwrite="true">stun.linphone.org</entry> <entry name="stun_server" overwrite="true">stun.linphone.org</entry>
<entry name="protocols" overwrite="true">stun,ice</entry> <entry name="protocols" overwrite="true">stun,ice</entry>
</section> </section>
<section name="sip"> <section name="sip">
<entry name="media_encryption">srtp</entry> <entry name="media_encryption">srtp</entry>
<entry name="media_encryption_mandatory" overwrite="true">0</entry> <entry name="media_encryption_mandatory" overwrite="true">0</entry>
</section> </section>
</config> </config>

View file

@ -11,6 +11,8 @@ sip_tcp_port=-1
sip_tls_port=-1 sip_tls_port=-1
media_encryption=none media_encryption=none
update_presence_model_timestamp_before_publish_expires_refresh=1 update_presence_model_timestamp_before_publish_expires_refresh=1
use_rfc2833=1
use_info=1
[net] [net]
#Because dynamic bitrate adaption can increase bitrate, we must allow "no limit" #Because dynamic bitrate adaption can increase bitrate, we must allow "no limit"
@ -28,19 +30,29 @@ tunnel=disabled
auto_download_incoming_voice_recordings=1 auto_download_incoming_voice_recordings=1
auto_download_incoming_icalendars=1 auto_download_incoming_icalendars=1
[tunnel] [tunnel]
host= host=
port=443 port=443
[misc] [misc]
log_collection_upload_server_url=https://files.linphone.org:443/http-file-transfer-server/hft.php log_collection_upload_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
file_transfer_server_url=https://files.linphone.org:443/http-file-transfer-server/hft.php file_transfer_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
version_check_url_root=https://download.linphone.org/releases version_check_url_root=https://download.linphone.org/releases
max_calls=10 max_calls=10
history_max_size=100
conference_layout=1 conference_layout=1
hide_empty_chat_rooms=1
[fec] [fec]
fec_enabled=1 fec_enabled=1
[magic_search]
return_empty_friends=1
[chat]
imdn_to_everybody_threshold=1
[ui]
contacts_filter=sip.linphone.org
## End of default rc ## End of default rc

View file

@ -15,10 +15,10 @@ accept_any_encryption=1
guess_hostname=1 guess_hostname=1
register_only_when_network_is_up=1 register_only_when_network_is_up=1
auto_net_state_mon=1 auto_net_state_mon=1
auto_answer_replacing_calls=0 auto_answer_replacing_calls=1
ping_with_options=0 ping_with_options=0
use_cpim=1 use_cpim=1
zrtp_key_agreements_suites=MS_ZRTP_KEY_AGREEMENT_K255_KYB512 zrtp_key_agreements_suites=MS_ZRTP_KEY_AGREEMENT_K255_MLK512,MS_ZRTP_KEY_AGREEMENT_K255_KYB512
chat_messages_aggregation_delay=1000 chat_messages_aggregation_delay=1000
chat_messages_aggregation=1 chat_messages_aggregation=1
update_presence_model_timestamp_before_publish_expires_refresh=1 update_presence_model_timestamp_before_publish_expires_refresh=1
@ -27,6 +27,9 @@ rls_uri=sips:rls@sip.linphone.org
[sound] [sound]
#remove this property for any application that is not Linphone public version itself #remove this property for any application that is not Linphone public version itself
ec_calibrator_cool_tones=1 ec_calibrator_cool_tones=1
disable_ringing=1
[audio]
[video] [video]
auto_resize_preview_to_keep_ratio=1 auto_resize_preview_to_keep_ratio=1

View file

@ -128,8 +128,10 @@ class AccountLoginViewModel: ObservableObject {
// Also set the newly added account as default // Also set the newly added account as default
core.defaultAccount = account core.defaultAccount = account
self.domain = "sip.linphone.org" DispatchQueue.main.async {
self.transportType = "TLS" self.domain = "sip.linphone.org"
self.transportType = "TLS"
}
} catch { NSLog(error.localizedDescription) } } catch { NSLog(error.localizedDescription) }
} }