Class DialPlan
Represents a dial plan.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class DialPlan : LinphoneObject
Properties
AllList
Returns a list of all known dial plans.
Declaration
public static IEnumerable<DialPlan> AllList { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DialPlan> | The list of all known dial plans. |
Country
Returns the country name of the dialplan.
Declaration
public string Country { get; }
Property Value
Type | Description |
---|---|
System.String | the country name |
CountryCallingCode
Returns the country calling code of the dialplan.
Declaration
public string CountryCallingCode { get; }
Property Value
Type | Description |
---|---|
System.String | the country calling code |
InternationalCallPrefix
Returns the international call prefix of the dialplan.
Declaration
public string InternationalCallPrefix { get; }
Property Value
Type | Description |
---|---|
System.String | the international call prefix |
IsGeneric
Return if given plan is generic.
Declaration
public bool IsGeneric { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if generic, false otherwise |
IsoCountryCode
Returns the iso country code of the dialplan.
Declaration
public string IsoCountryCode { get; }
Property Value
Type | Description |
---|---|
System.String | the iso country code |
NationalNumberLength
Returns the national number length of the dialplan.
Declaration
public int NationalNumberLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 | the national number length |
Methods
ByCcc(String)
Find best match for given CCC.
Declaration
public static DialPlan ByCcc(string ccc)
Parameters
Type | Name | Description |
---|---|---|
System.String | ccc | The country calling code |
Returns
Type | Description |
---|---|
DialPlan | the matching dial plan, or a generic one if none found |
ByCccAsInt(Int32)
Find best match for given CCC.
Declaration
public static DialPlan ByCccAsInt(int ccc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ccc | the country calling code |
Returns
Type | Description |
---|---|
DialPlan | the matching dial plan, or a generic one if none found |
LookupCccFromE164(String)
Function to get call country code from an e164 number, ex: +33952650121 will return 33.
Declaration
public static int LookupCccFromE164(string e164)
Parameters
Type | Name | Description |
---|---|---|
System.String | e164 | phone number |
Returns
Type | Description |
---|---|
System.Int32 | call country code or -1 if not found |
LookupCccFromIso(String)
Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns 33.
Declaration
public static int LookupCccFromIso(string iso)
Parameters
Type | Name | Description |
---|---|---|
System.String | iso | country code alpha2 |
Returns
Type | Description |
---|---|
System.Int32 | call country code or -1 if not found |