Liblinphone  5.5.0
Linphone.DialPlan Class Reference
Inheritance diagram for Linphone.DialPlan:
Linphone.LinphoneObject

Public Member Functions

string FormatPhoneNumber (string phoneNumber, bool escapePlus)
 

Static Public Member Functions

static Linphone.DialPlan ByCcc (string ccc)
 
static Linphone.DialPlan ByCccAsInt (int ccc)
 
static int LookupCccFromE164 (string e164)
 
static int LookupCccFromIso (string iso)
 

Properties

static IEnumerable< Linphone.DialPlanAllList [get]
 
string Country [get]
 
string CountryCallingCode [get]
 
string Flag [get]
 
string InternationalCallPrefix [get]
 
bool IsGeneric [get]
 
string IsoCountryCode [get]
 
int NationalNumberLength [get]
 
string TrunkPrefix [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Linphone.LinphoneObject
static String linphone_pointer_to_string (IntPtr ptr)
 
static IntPtr linphone_string_to_pointer ([MarshalAs(LinphoneWrapper.ByteStringMarshalling)] String str)
 
IntPtr StringArrayToBctbxList (IEnumerable< string > stringlist)
 
void CleanStringArrayPtrs (IntPtr l)
 

Detailed Description

Represents a dial plan.

Member Function Documentation

static Linphone.DialPlan Linphone.DialPlan.ByCcc ( string  ccc)
inlinestatic

Find best match for given CCC.

Parameters
cccThe country calling code
Returns
the matching dial plan, or a generic one if none found
static Linphone.DialPlan Linphone.DialPlan.ByCccAsInt ( int  ccc)
inlinestatic

Find best match for given CCC.

Parameters
cccthe country calling code
Returns
the matching dial plan, or a generic one if none found
string Linphone.DialPlan.FormatPhoneNumber ( string  phoneNumber,
bool  escapePlus 
)
inline

Formats a phone number using dial plan informations.

Parameters
phoneNumberthe phone number to format.
escapePluswhether 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.
static int Linphone.DialPlan.LookupCccFromE164 ( string  e164)
inlinestatic

Function to get call country code from an e164 number, ex: +33952650121 will return 33.

Parameters
e164phone number
Returns
call country code or -1 if not found
static int Linphone.DialPlan.LookupCccFromIso ( string  iso)
inlinestatic

Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns

Parameters
isocountry code alpha2
Returns
call country code or -1 if not found

Property Documentation

IEnumerable<Linphone.DialPlan> Linphone.DialPlan.AllList
staticget

Returns a list of all known dial plans.

Returns
The list of all known dial plans. A list of Linphone.DialPlan objects.
string Linphone.DialPlan.Country
get

Returns the country name of the dialplan.

Returns
the country name
string Linphone.DialPlan.CountryCallingCode
get

Returns the country calling code of the dialplan.

Returns
the country calling code
string Linphone.DialPlan.Flag
get

Returns the flag of the teritory as unicode characters.

Returns
the flag as unicode characters
string Linphone.DialPlan.InternationalCallPrefix
get

Returns the international call prefix of the dialplan.

Returns
the international call prefix
bool Linphone.DialPlan.IsGeneric
get

Return if given plan is generic.

Returns
true if generic, false otherwise
string Linphone.DialPlan.IsoCountryCode
get

Returns the iso country code of the dialplan.

Returns
the iso country code
int Linphone.DialPlan.NationalNumberLength
get

Returns the national number length of the dialplan.

Returns
the national number length
string Linphone.DialPlan.TrunkPrefix
get

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, null otherwise

The documentation for this class was generated from the following file: