Commit 2dc884fb authored by Andrea Gianarda's avatar Andrea Gianarda
Browse files

In the call parameters, there are 2 ways of setting the from address

when initiating a call;
- from header
- account
These 2 parameters are dependent from each other which makes tricky for
the core to know exactly which account to use and the correct from
address.
In most scenarios, the from address is the account's identity address
but it is not always the case such as in the case of a direct call.
Moreover, the account cannot be always deduced in a straightforward
matter such as if the core has no default account (but it is registered
with one or more accounts) and the call parameters have not set one.

The algorithm for choosing an account is the following:
1) search in the call parameters
2) get the default account
3) look up for the best guessed account based on the from (if known) or
   to address

The algorithm for known the from address is the following:
1) look for the from header in the call parameters
2) look up for the identity address of the account (if known)
3) get the core primary account

Set Ik SDP attribute based on the account used for a call

Use account set in the call parameters before retrieving the NAT policy.
It may happen that a call session is buuild without passing an account
and in such a case, the SDK will do its best to get one
parent d60367ce
master compat/ios_app_5_3 deleteme feature/AEC3 feature/account_manager_services_devices_list feature/allow-raw-mwi-notification feature/audio-conference-package feature/basic_auth feature/lime_status_by_uri feature/load-static-ms2-plugins feature/media_encryption_settings_on_account feature/medialess feature/screensharing_clean feature/screensharing_packet_router feature/screensharing_signalling feature/swift_push_unit_tests feature/test-new-ccmp-deployment feature/to-delete-compile-last-wrapper fix/ECC-for-desktop fix/android_window fix/audio_routes fix/audio_video_conference_factory_crash fix/auth_info_finding fix/broadcast_flexisip fix/call_history_after_core_stop fix/chat_lesage_local_address_no_contact fix/conf_unschedule_video fix/conference_called_after_joining_5_3 fix/conference_with_all_listeners fix/copy_message_id_content_operator fix/crash_terminate fix/database fix/db_friend_list_fix fix/didUpdatePushCredentials_debug_investigation fix/doc_upload fix/encrypted_chat_subscription_failed fix/flexisip-tester-2.3 fix/force_shared_lib_python_wrapper fix/gcc_14 fix/import-from-legacy-db fix/ios_destroy_platform_helper_on_core_stop fix/ios_foreground_push_incoming_received fix/ios_reactions_notif fix/itc-misuse fix/jvm_cpp_wrapper_on_android fix/message_not_sent_rework fix/no-longer-use-deprecated-findpythoninterp-cmake-module fix/paused_by_remote_no_rtp_timeout_master fix/pdb_5_3 fix/plugin_timeout fix/python_build_macos fix/python_const_build_warning fix/qt_crash fix/rtt_message fix/screen_jul fix/srtp_key_length fix/startup_restart fix/stream-deletion fix/stream_allocation_no_label fix/subject_not_changed fix/switch_data_sync_to_short_service fix/tone-indications fix/transfer_state fix/unsubscribe_upon_core_stop fix/update-check fix/uuid4-generation fix/webrtc-ice fix/window_build_dec24 fix/workaround_for_sip_simple_messages_with_bad_to_header hotfix/lime-db-path release/5.3 release/5.4 test/ansible test/call_no_routes test/flexisip-release-candidate-2-4 test/flexisip_b2bua_h264 test/lime_double_digest_auth_challenge 5.5.0-alpha 5.4.4 5.4.3 5.4.2 5.4.1 5.4.0 5.4.0-beta 5.4.0-alpha 5.3.107 5.3.106 5.3.105 5.3.104 5.3.103 5.3.102 5.3.101 5.3.100 5.3.99 5.3.97 5.3.96 5.3.95 5.3.94 5.3.93 5.3.92 5.3.91 5.3.90 5.3.89 5.3.88 5.3.87 5.3.86 5.3.85 5.3.84 5.3.83 5.3.81 5.3.79 5.3.78 5.3.77 5.3.76 5.3.75 5.3.74 5.3.73 5.3.72 5.3.71 5.3.70 5.3.69 5.3.68 5.3.67 5.3.66 5.3.65 5.3.64 5.3.63 5.3.62 5.3.61 5.3.60 5.3.59 5.3.58 5.3.57 5.3.56 5.3.55 5.3.54 5.3.53 5.3.52 5.3.51 5.3.50 5.3.49 5.3.48 5.3.46 5.3.45 5.3.44 5.3.43 5.3.42 5.3.41 5.3.40 5.3.39 5.3.38 5.3.37 5.3.36 5.3.35 5.3.34 5.3.33 5.3.32 5.3.30 5.3.29 5.3.28 5.3.27 5.3.26 5.3.25 5.3.24 5.3.23 5.3.22 5.3.21 5.3.19 5.3.18 5.3.17 5.3.16 5.3.15 5.3.14 5.3.13 5.3.12 5.3.11 5.3.10 5.3.9 5.3.8 5.3.7 5.3.6 5.3.5 5.3.4 5.3.3 5.3.2 5.3.1 5.3.0 5.3.0-beta
1 merge request!2668Choose account whose identity address is the same as the from address of
Showing with 309 additions and 208 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment