public interface DialPlan
Modifier and Type | Method and Description |
---|---|
DialPlan |
byCcc(java.lang.String ccc)
Find best match for given CCC.
|
DialPlan |
byCccAsInt(int ccc)
Find best match for given CCC.
|
DialPlan[] |
getAllList()
Returns a list of all known dial plans.
|
java.lang.String |
getCountry()
Returns the country name of the dialplan.
|
java.lang.String |
getCountryCallingCode()
Returns the country calling code of the dialplan.
|
java.lang.String |
getInternationalCallPrefix()
Returns the international call prefix of the dialplan.
|
java.lang.String |
getIsoCountryCode()
Returns the iso country code of the dialplan.
|
int |
getNationalNumberLength()
Returns the national number length of the dialplan.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isGeneric()
Return if given plan is generic.
|
int |
lookupCccFromE164(java.lang.String e164)
Function to get call country code from an e164 number, ex: +33952650121 will
return 33. |
int |
lookupCccFromIso(java.lang.String iso)
Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns
33. |
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
java.lang.String getCountry()
@NonNull java.lang.String getCountryCallingCode()
@NonNull java.lang.String getInternationalCallPrefix()
boolean isGeneric()
@NonNull java.lang.String getIsoCountryCode()
int getNationalNumberLength()
@NonNull DialPlan byCcc(@NonNull java.lang.String ccc)
ccc
- The country calling code @NonNull DialPlan byCccAsInt(@NonNull int ccc)
ccc
- the country calling code @NonNull DialPlan[] getAllList()
int lookupCccFromE164(@NonNull java.lang.String e164)
e164
- phone number int lookupCccFromIso(@NonNull java.lang.String iso)
iso
- country code alpha2 void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object