node-pdu
    Preparing search index...

    Class SCAType

    Defines the Service Centre Address (SCA) format in SMS messages.

    Specifies the SCA format, crucial for SMS routing and delivery. Types may include international, national, and others, ensuring compatibility across networks.

    Index

    Constructors

    Properties

    PLAN_ERMES: 10 = 0x0a
    PLAN_INDIVIDUAL: 9 = 0x09
    PLAN_ISDN: 1 = 0x01
    PLAN_NATIONAL: 8 = 0x08
    PLAN_RESERVED: 15 = 0x0f
    PLAN_TELEX: 3 = 0x03
    PLAN_UNKNOWN: 0 = 0x00
    PLAN_X_121: 2 = 0x02
    TYPE_ACCEPTER_INTO_NET: 3 = 0x03
    TYPE_ALPHANUMERICAL: 5 = 0x05
    TYPE_INTERNATIONAL: 1 = 0x01
    TYPE_NATIONAL: 2 = 0x02
    TYPE_RESERVED: 7 = 0x07
    TYPE_SUBSCRIBER_NET: 4 = 0x04
    TYPE_TRIMMED: 6 = 0x06
    TYPE_UNKNOWN: 0 = 0x00

    Accessors

    • get plan(): number

      Retrieves the numbering plan identification of the Service Centre Address (SCA). The plan indicates the numbering plan used for the SCA, such as ISDN, national, or individual.

      Returns number

      The numbering plan identification of the SCA

    • get type(): number

      Retrieves the type of the Service Centre Address (SCA). The type indicates the format or category of the SCA, such as international, national, or alphanumeric.

      Returns number

      The type of the SCA

    Methods

    • Retrieves the numerical value representing the SCAType. This value is used internally and for PDU encoding.

      Returns number

      The numerical value representing the SCAType

    • Sets the numbering plan identification of the Service Centre Address (SCA). This method allows updating the numbering plan used for the SCA, ensuring compatibility and proper routing.

      Parameters

      • plan: number

        The new numbering plan identification for the SCA

      Returns SCAType

      The instance of this SCAType, allowing for method chaining

    • Sets the type of the Service Centre Address (SCA). This method allows updating the type of the SCA, ensuring compatibility and proper routing.

      Parameters

      • type: number

        The new type of the SCA

      Returns SCAType

      The instance of this SCAType, allowing for method chaining

    • Converts the SCAType instance to its hexadecimal string representation.

      This method converts the SCAType instance to its hexadecimal string representation suitable for inclusion in PDUs.

      Returns string

      The hexadecimal string representation of the SCAType