Commit d2e6f5b6 authored by Sylvain Berfini's avatar Sylvain Berfini :cow:
Browse files

Added flags as unicode characters to dial plan

parent f2feb6b3
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/python-wrapper-tests 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/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_server_crash_me_participant fix/conference_with_all_listeners fix/copy_message_id_content_operator fix/crash_terminate fix/database fix/db_friend_list_fix fix/device_position_53 fix/didUpdatePushCredentials_debug_investigation fix/doc_upload fix/encrypted_chat_subscription_failed fix/fec-find-payload-type-number fix/flexisip-tester-2.3 fix/force_shared_lib_python_wrapper fix/gcc_14 fix/import-from-legacy-db fix/ios_foreground_push_incoming_received fix/ios_reactions_notif fix/ios_registerforpush_on_core_start_5_4 fix/itc-misuse fix/jvm_cpp_wrapper_on_android fix/message_not_sent_rework fix/moved_vibrator_to_platform_helper 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/relay_ice_candidates_conference_tests fix/remote_address_without_admin_param fix/rtt_message fix/screen_jul fix/srtp_key_length fix/startup_restart fix/stream-deletion fix/subject_not_changed fix/switch_data_sync_to_short_service fix/tone-indications fix/transfer_state fix/tunnel-crash-rtp-transport fix/unsubscribe_chatroom_on_account_unregister fix/unsubscribe_upon_core_stop fix/uuid4-generation fix/webrtc-ice fix/window_build_dec24 fix/workaround_for_sip_simple_messages_with_bad_to_header hotfix/lime-db-path hotfix/use-negotiated-extension-ids 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.5 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!2697Feature/dial plan flags
Pipeline #67336 failed with stage
in 5 seconds
Showing with 180 additions and 122 deletions
......@@ -82,6 +82,13 @@ LINPHONE_PUBLIC int linphone_dial_plan_get_national_number_length(const Linphone
*/
LINPHONE_PUBLIC const char *linphone_dial_plan_get_international_call_prefix(const LinphoneDialPlan *dial_plan);
/**
* Returns the flag of the teritory as unicode characters
* @param dial_plan the #LinphoneDialPlan object @notnil
* @return the flag as unicode characters @notnil
*/
LINPHONE_PUBLIC const char *linphone_dial_plan_get_flag(const LinphoneDialPlan *dial_plan);
/**
* Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns 33
* @param iso country code alpha2 @notnil
......
......@@ -58,6 +58,10 @@ const char *linphone_dial_plan_get_international_call_prefix(const LinphoneDialP
return L_STRING_TO_C(DialPlan::toCpp(dp)->getInternationalCallPrefix());
}
const char *linphone_dial_plan_get_flag(const LinphoneDialPlan *dp) {
return L_STRING_TO_C(DialPlan::toCpp(dp)->getFlag());
}
int linphone_dial_plan_lookup_ccc_from_e164(const char *e164) {
return DialPlan::lookupCccFromE164(L_C_TO_STRING(e164));
}
......
This diff is collapsed.
......@@ -36,7 +36,8 @@ public:
const std::string &isoCountryCode = "",
const std::string &ccc = "",
int nnl = 0,
const std::string &icp = "");
const std::string &icp = "",
const std::string &flag = "");
DialPlan(const DialPlan &other);
DialPlan *clone() const override {
......@@ -51,6 +52,7 @@ public:
void setCountryCallingCode(const std::string &ccc);
int getNationalNumberLength() const;
const std::string &getInternationalCallPrefix() const;
const std::string &getFlag() const;
bool isGeneric() const;
static const std::shared_ptr<DialPlan> MostCommon;
......@@ -67,6 +69,7 @@ private:
std::string countryCallingCode; // Country calling code.
int nationalNumberLength = 0; // Maximum national number length.
std::string internationalCallPrefix; // International call prefix, ex: 00 in europe.
std::string flag;
static const std::list<std::shared_ptr<DialPlan>> sDialPlans;
};
......
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