DialPlan

public class DialPlan : LinphoneObject

Represents a dial plan.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> DialPlan
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Find best match for given CCC.

    Declaration

    Swift

    public static func byCcc(ccc: String) -> DialPlan?

    Parameters

    ccc

    The country calling code

    Return Value

    the matching dial plan, or a generic one if none found

  • Find best match for given CCC.

    Declaration

    Swift

    public static func byCccAsInt(ccc: Int) -> DialPlan?

    Parameters

    ccc

    the country calling code

    Return Value

    the matching dial plan, or a generic one if none found

  • Returns a list of all known dial plans.

    Declaration

    Swift

    public static var getAllList: [DialPlan] { get }

    Return Value

    The list of all known dial plans.

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

    Declaration

    Swift

    public static func lookupCccFromE164(e164: String) -> Int

    Parameters

    e164

    phone number

    Return Value

    call country code or -1 if not found

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

    Declaration

    Swift

    public static func lookupCccFromIso(iso: String) -> Int

    Parameters

    iso

    country code alpha2

    Return Value

    call country code or -1 if not found

  • Returns the country name of the dialplan.

    Declaration

    Swift

    public var country: String { get }

    Return Value

    the country name

  • Returns the country calling code of the dialplan.

    Declaration

    Swift

    public var countryCallingCode: String { get }

    Return Value

    the country calling code

  • Returns the international call prefix of the dialplan.

    Declaration

    Swift

    public var internationalCallPrefix: String { get }

    Return Value

    the international call prefix

  • Return if given plan is generic.

    Declaration

    Swift

    public var isGeneric: Bool { get }

    Return Value

    true if generic, false otherwise

  • Returns the iso country code of the dialplan.

    Declaration

    Swift

    public var isoCountryCode: String { get }

    Return Value

    the iso country code

  • Returns the national number length of the dialplan.

    Declaration

    Swift

    public var nationalNumberLength: Int { get }

    Return Value

    the national number length