Module: PduSms

Defined in:
lib/pdu_sms.rb,
lib/pdu_sms/phone.rb,
lib/pdu_sms/helpers.rb,
lib/pdu_sms/version.rb,
lib/pdu_sms/pdu_type.rb,
lib/pdu_sms/user_data.rb,
lib/pdu_sms/validity_period.rb,
lib/pdu_sms/packet_data_unit.rb,
lib/pdu_sms/user_data_length.rb,
lib/pdu_sms/message_reference.rb,
lib/pdu_sms/data_coding_scheme.rb,
lib/pdu_sms/destination_address.rb,
lib/pdu_sms/originating_address.rb,
lib/pdu_sms/protocol_identifier.rb,
lib/pdu_sms/service_center_address.rb,
lib/pdu_sms/service_center_time_stamp.rb

Defined Under Namespace

Modules: Helpers Classes: DataCodingScheme, DestinationAddress, MessageReference, OriginatingAddress, PDUType, PacketDataUnit, Phone, ProtocolIdentifier, ServiceCenterAddress, ServiceCenterTimeStamp, UserData, UserDataLength, ValidityPeriod

Constant Summary collapse

ID_UNKNOWN =

Type of number (TON):

0b000
ID_INTERNATIONAL =

Unknown

0b001
ID_NATIONAL =

International number

0b010
ID_NETWORK =

National number

0b011
ID_SUBSCRIBER =

Network specific number

0b100
ID_ALPHANUMERIC =

Subscriber number

0b101
ID_ABBREVIATED =

Alphanumeric, (coded according to 3GPP TS 23.038 [9] GSM 7 bit default alphabet)

0b110
ID_RESERVED =

Abbreviated number

0b111
TP_UNKNOWN =

Numbering plan identification (NPI):

0b0000
TP_ISDN =

Unknown

0b0001
TP_DATA =

ISDN/telephone numbering plan (E.164/E.163)

0b0011
TP_TELEX =

Data numbering plan (X.121)

0b100
TP_SERVICE_CENTER_SPECIFIC1 =

Telex numbering plan

0b0101
TP_SERVICE_CENTER_SPECIFIC2 =

Service Centre Specific plan 1)

0b0110
TP_NATIONAL =

Service Centre Specific plan 1)

0b1000
TP_PRIVATE =

National numbering plan

0b1001
TP_ERMES =

Private numbering plan

0b1010
TP_RESERVED =

ERMES numbering plan (ETSI DE/PS 3 01 3)

0b1111
PROTOCOL_IDENTIFIER =

Protocol Identifier

0x00
BIT0 =

Data Coding Scheme 6,7 bit

0b00
COMPRESSED =

Default

0b1
UNCOMPRESSED =

Indicates the text is compressed using the GSM standard compression algorithm

0b0
MESSAGE_CLASS_OFF =

Indicates the text is uncompressed

0b0
MESSAGE_CLASS_ON =
0b1
ALPHABET_7BIT =

GSM 7 bit

0b00
ALPHABET_8BIT =

8 bit data

0b01
ALPHABET_16BIT =

UCS2(16bit)

0b10
RESERVED =

Reserved

0b11
CLASS_0_IMMEDIATE_DISPLAY =

Flash messages are received by a mobile phone even though it has full memory. They are not stored in the phone, they just displayed on the phone display.

0b00
CLASS_1_ME_SPECIFIC =

ME-specific

0b01
CLASS_2_SIM_SPECIFIC =

SIM / USIM specific

0b10
CLASS_3_TE_SPECIFIC =

TE-specific

0b11
REPLY_PATH_0 =

PDU TYPE

0b0
REPLY_PATH_1 =

Reply Path parameter is not set in this SMS-SUBMIT

0b1
USER_DATA_HEADER_INCLUDED_0 =
0b0
USER_DATA_HEADER_INCLUDED_1 =

User Data field contains only the short message

0b1
STATUS_REPORT_REQUEST_0 =
0b0
STATUS_REPORT_REQUEST_1 =

A status report is not requested

0b1
VALIDITY_PERIOD_FORMAT_00 =
0b00
VALIDITY_PERIOD_FORMAT_01 =

Validity Period not present

0b01
VALIDITY_PERIOD_FORMAT_10 =

Validity Period present- relative format

0b10
VALIDITY_PERIOD_FORMAT_11 =

Validity Period present - enhanced format (reserved)

0b11
REJECT_DUPLICATES_0 =
0b0
REJECT_DUPLICATES_1 =

Instruct the SC to accept SMS-SUBMIT for a SM still held in the SC which has the same MR and the same DA as a previously submitted SM from the same OA

0b1
MESSAGE_TYPE_INDICATOR_00 =
0b00
MESSAGE_TYPE_INDICATOR_01 =

SMS-DELIVER (in the direction SC to MS) SMS-DELIVER REPORT (in the direction MS to SC)

0b01
MESSAGE_TYPE_INDICATOR_10 =

SMS-STATUS-REPORT (in the direction SC to MS) SMS-COMMAND (in the direction MS to SC)

0b10
MESSAGE_TYPE_INDICATOR_11 =

SMS-SUBMIT (in the direction MS to SC) SMS-SUBMIT-REPORT (in the direction SC to MS)

0b11
MORE_MESSAGES_TO_SEND_0 =

Reserved

0b0
MORE_MESSAGES_TO_SEND_1 =

More Message are waiting for the MS in the SMSC

0b1
STATUS_REPORT_INDICATION_0 =

No more Message are waiting for the MS in the SMSC

0b0
STATUS_REPORT_INDICATION_1 =

A status report will not be returned to the SME

0b1
UDHL_SIZE_5 =

A status report will be returned to the SME

0b0000101
UDHL_SIZE_6 =
0b0000110
VERSION =
"1.1.8"