# Functions
FindEncoding returns suitable encoding for a string.
FromDataCoding returns encoding from DataCoding value.
GetDefaultNpi get default npi.
GetDefaultTon get default ton.
GetEscapeChars returns the escape characters in the given text, that doesn't exist in GSM 7-bit DEFAULT alphabet table.
GSM7 returns a GSM 7-bit Bit Encoding.
IsEscapeChar checks if the given rune is an escape char.
NewCustomEncoding creates new custom encoding.
SetDefaultNpi set default npi.
SetDefaultTon set default ton.
ValidateGSM7Buffer returns the bytes, in the given buffer, that are outside of the GSM 7-bit encoding range.
ValidateGSM7String returns the characters, in the given text, that can not be represented in GSM 7-bit encoding.
# Constants
nolint.
nolint.
ASCIICoding is ascii coding.
BINARY8BIT1Coding is 8-bit binary coding.
BINARY8BIT2Coding is 8-bit binary coding.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
CYRILLICCoding is iso-8859-5 coding.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
not set.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
THE VALUE OF THE LAST ERROR CODE.
Failed to Add Customer.
Failed to Add DL.
ESME Already in Bound State.
Bind Failed.
Cancel SM Failed.
Cannot Submit to Distribution List.
Customer Exists.
Customer does not exist.
Failed to delete Customer.
Failed to Delete DL.
Delivery Failure (used for data_sm_resp).
Failed to Enquire Customer.
Invalid Address.
Incorrect BIND Status for given command.
Cap Code Length Invalid.
Channel Length Invalid.
City Length Invalid.
Invalid Command ID.
Command Length is invalid.
Coverage Region Length Invalid.
Invalid Customer Address.
Invalid Customer ID.
Invalid Customer Name.
Destination flag is invalid (submit_multi).
Predefined Message Invalid or Not Found.
Invalid DL Member Description.
Invalid DL Member Type.
Invalid DL Modify Option.
Invalid Distribution List name.
Invalid Dest Addr.
Invalid Destination address NPI.
Invalid Destination address TON.
Invalid esm_class field data.
Invalid message validity period (Expiry time).
Message delivery time Invalid.
Message delivery time Length Invalid.
MIN Invalid (i.e.
MIN Length Invalid.
Message Distribution Invalid.
Message Distribution Length Invalid.
Message ID is invalid.
Message Length is invalid.
Invalid number of destinations.
Invalid number of messages.
Invalid Optional Parameter Value.
Invalid Optional Parameter Length.
KIF IW Field out of data.
Invalid Param.
Invalid Parameter Length.
Invalid Password.
Periodic Messages Invalid.
Periodic Messages Length Invalid.
Paging Alerts Invalid.
Paging Alerts Length Invalid.
Paging Customer ID Invalid No such subscriber.
Paging Customer ID length Invalid.
PIN Length Invalid.
Priority Message Length Invalid.
Priority Message Length Invalid.
Invalid Priority Flag.
Registered Delivery Invalid.
Registered Delivery Length Invalid.
Invalid Registered Delivery Flag.
Invalid replace_if_present flag.
Real Time Data broadcasts Invalid.
Real Time Data broadcasts Length Invalid.
Invalid Scheduled Delivery Time.
Invalid Service Type.
int16 Message User Group Invalid.
int16 Message User Group Length Invalid.
Invalid Source Address.
Invalid Source address NPI.
Invalid Source address TON.
State Length Invalid.
Invalid ‘submit with replace’ request (i.e.
Invalid System ID.
Invalid system_type field.
Terminal Code Length Invalid.
Zip Postfix Length Invalid.
Zip Prefix Length Invalid.
Failed to list DLs.
Expected Optional Parameter missing.
Failed to modify customer.
Failed to modify DL.
Message Queue Full.
No Error.
Optional Parameter not allowed.
Param Retrieve Failed.
Provisioning Not Allowed.
query_sm request failed.
Replace SM Failed.
submit_sm or submit_multi failed.
System Error.
Throttling error (ESME has exceeded allowed message limits).
Unknown Error.
Failed to View DL.
ESME Receiver Permanent App Error Code.
ESME Receiver Reject Message Error Code.
ESME Receiver Temporary App Error Code.
SMPP Command ID Set.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
Address_NPI.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
Address_TON.
GSM7BITCoding is gsm-7bit coding.
HEBREWCoding is iso-8859-8 coding.
LATIN1Coding is iso-8859-1 coding.
nolint.
nolint.
nolint.
nolint.
Additional Status Info Text.
nolint.
nolint.
Message Delivery Alert.
Callback Number.
Callback Number Alphanumeric Tag.
nolint.
nolint.
nolint.
nolint.
Callback Number Presentation Indicator.
Delivery Failure Reason.
int16(0x8082).
nolint.
nolint.
Destination Subaddress.
nolint.
nolint.
Display Time.
DPF Result.
Destination Address Subunit.
Destination Bearer Type.
Destination Network Type.
Destination Port.
Destination Telematics ID.
ITS Reply Type.
ITS Session Info.
Language Indicator.
More Messages to Follow.
MS Availability Status.
Validity Information.
Message Payload.
nolint.
nolint.
Message State.
nolint.
Number of messages in Mailbox.
Network Error Code.
nolint.
nolint.
int16(0x8081).
nolint.
nolint.
Payload Type.
Privacy Indicator.
QOS Time to Live.
nolint.
nolint.
Receipted Message ID.
nolint.
nolint.
Concat Msg Ref Num.
Concat Segment Seqnums.
Concat Total Segments.
SC Interface Version.
Set DPF.
SMS Received Alert.
Source Address Subunit.
Source Bearer Type.
Source Network Type.
Source Port.
Source Subaddress.
nolint.
nolint.
Source Telematics ID.
Unused Tag.
User Message Reference.
User Response Code.
USSD Service Op.
nolint.
4 integers.
nolint.
nolint.
nolint.
nolint.
all times in milliseconds.
nolint.
nolint.
nolint.
nolint.
Service_Type.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
Recv Msg contains conversation abort (Korean CDMA).
nolint.
Use one-shot express mode.
nolint.
nolint.
Destination flag.
nolint.
Default SMSC Mode or Message Type.
Send/Recv Msg contains ESME delivery acknowledgement.
Send/Recv Msg contains manual/user acknowledgment.
Do not use.
GSM specific, short message must be no larger than 140 octets.
Recv Msg contains intermediate notification.
nolint.
Higher Layer Message Type.
nolint.
nolint.
nolint.
nolint.
No specific features selected.
Priority.
Replace if Present flag.
Intermediate notification (bit 5).
nolint.
nolint.
Operation Class.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
Reply path set.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
SME originated acknowledgement (bits 3 & 2).
nolint.
Recv Msg contains SMSC delivery receipt.
Registered delivery SMSC Delivery Receipt (bits 1 & 0).
nolint.
nolint.
nolint.
nolint.
message is in accepted state.
message has been deleted.
message is delivered.
default state for messages in transit.
validity period expired.
message is in invalid state.
message is in rejected state.
undeliverable.
Use store & forward.
nolint.
nolint.
nolint.
User Data Header indicator set.
Both UDH & Reply path.
nolint.
Interface_Version.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
2 int16s: tag & length.
UCS2Coding is UCS2 coding.
nolint.
User Data Header.
nolint.
nolint.
nolint.
# Variables
ASCII is ascii encoding.
BINARY8BIT1 is binary 8-bit encoding.
BINARY8BIT2 is binary 8-bit encoding.
CYRILLIC encoding.
ErrInvalidByte means that a given byte is outside of the GSM 7-bit encoding range.
ErrInvalidCharacter means a given character can not be represented in GSM 7-bit encoding.
ErrNotImplDecode indicates that encoding does not support Decode method.
ErrNotImplEncode indicates that encoding does not support Encode method.
ErrNotImplSplitterInterface indicates that encoding does not support Splitter interface.
GSM7BIT is gsm-7bit encoding.
GSM7BITPACKED is packed gsm-7bit encoding.
HEBREW encoding.
LATIN1 encoding.
UCS2 encoding.
UTF16BE is UTF-16 Big Endian without BOM.
UTF16BEM is UTF-16 Big Endian with BOM (byte order mark).
UTF16LE is UTF-16 Little Endian without BOM.
UTF16LEM is UTF-16 Little Endian with BOM.
# Structs
CustomEncoding is wrapper for user-defined data encoding.
# Type aliases
CommandIDType is type of command id.
CommandStatusType is type of command status.