#include <dial_plan.hh>
◆ byCcc()
| static LINPHONECXX_PUBLIC std::shared_ptr< const linphone::DialPlan > linphone::DialPlan::byCcc |
( |
const std::string & |
ccc | ) |
|
|
static |
Find best match for given CCC.
- Parameters
-
| ccc | The country calling code
|
- Returns
- the matching dial plan, or a generic one if none found
◆ byCccAsInt()
| static LINPHONECXX_PUBLIC std::shared_ptr< const linphone::DialPlan > linphone::DialPlan::byCccAsInt |
( |
int |
ccc | ) |
|
|
static |
Find best match for given CCC.
- Parameters
-
| ccc | the country calling code
|
- Returns
- the matching dial plan, or a generic one if none found
◆ formatPhoneNumber()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::formatPhoneNumber |
( |
const std::string & |
phoneNumber, |
|
|
bool |
escapePlus |
|
) |
| const |
Formats a phone number using dial plan informations.
- Parameters
-
| phoneNumber | the phone number to format.
|
| escapePlus | whether or not to use + or international calling prefix |
- Returns
- the formatted phone number, or the original phone number if couldn't be formatted for some reason.
◆ getAllList()
| static LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::DialPlan > > linphone::DialPlan::getAllList |
( |
| ) |
|
|
static |
Returns a list of all known dial plans.
- Returns
- The list of all known dial plans.
◆ getCountry()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getCountry |
( |
| ) |
const |
Returns the country name of the dialplan.
- Returns
- the country name
◆ getCountryCallingCode()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getCountryCallingCode |
( |
| ) |
const |
Returns the country calling code of the dialplan.
- Returns
- the country calling code
◆ getFlag()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getFlag |
( |
| ) |
const |
Returns the flag of the teritory as unicode characters.
- Returns
- the flag as unicode characters
◆ getInternationalCallPrefix()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getInternationalCallPrefix |
( |
| ) |
const |
Returns the international call prefix of the dialplan.
- Returns
- the international call prefix
◆ getIsoCountryCode()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getIsoCountryCode |
( |
| ) |
const |
Returns the iso country code of the dialplan.
- Returns
- the iso country code
◆ getNationalNumberLength()
| LINPHONECXX_PUBLIC int linphone::DialPlan::getNationalNumberLength |
( |
| ) |
const |
Returns the national number length of the dialplan.
- Returns
- the national number length
◆ getTrunkPrefix()
| LINPHONECXX_PUBLIC std::string linphone::DialPlan::getTrunkPrefix |
( |
| ) |
const |
Returns the trunk prefix for this country.
Trunk prefix will be removed from the start of flattened phone number before adding international prefix.
- Returns
- the trunk prefix if any, nullptr otherwise
◆ isGeneric()
| LINPHONECXX_PUBLIC bool linphone::DialPlan::isGeneric |
( |
| ) |
const |
Return if given plan is generic.
- Returns
- true if generic, false otherwise
◆ lookupCccFromE164()
| static LINPHONECXX_PUBLIC int linphone::DialPlan::lookupCccFromE164 |
( |
const std::string & |
e164 | ) |
|
|
static |
Function to get call country code from an e164 number, ex: +33952650121 will return 33.
- Parameters
-
- Returns
- call country code or -1 if not found
◆ lookupCccFromIso()
| static LINPHONECXX_PUBLIC int linphone::DialPlan::lookupCccFromIso |
( |
const std::string & |
iso | ) |
|
|
static |
Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns 33.
- Parameters
-
- Returns
- call country code or -1 if not found
The documentation for this class was generated from the following file: