/
header_data.go
154 lines (141 loc) · 9.95 KB
/
header_data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
//go:generate stringer -type=CommandStatusType,CommandIDType -output header_data_string.go
package data
// CommandStatusType is type of command status
type CommandStatusType int32
// CommandIDType is type of command id.
type CommandIDType int32
// nolint
const (
// SMPP Command ID Set
GENERIC_NACK = CommandIDType(-2147483648)
BIND_RECEIVER = CommandIDType(0x00000001)
BIND_RECEIVER_RESP = CommandIDType(-2147483647)
BIND_TRANSMITTER = CommandIDType(0x00000002)
BIND_TRANSMITTER_RESP = CommandIDType(-2147483646)
QUERY_SM = CommandIDType(0x00000003)
QUERY_SM_RESP = CommandIDType(-2147483645)
SUBMIT_SM = CommandIDType(0x00000004)
SUBMIT_SM_RESP = CommandIDType(-2147483644)
DELIVER_SM = CommandIDType(0x00000005)
DELIVER_SM_RESP = CommandIDType(-2147483643)
UNBIND = CommandIDType(0x00000006)
UNBIND_RESP = CommandIDType(-2147483642)
REPLACE_SM = CommandIDType(0x00000007)
REPLACE_SM_RESP = CommandIDType(-2147483641)
CANCEL_SM = CommandIDType(0x00000008)
CANCEL_SM_RESP = CommandIDType(-2147483640)
BIND_TRANSCEIVER = CommandIDType(0x00000009)
BIND_TRANSCEIVER_RESP = CommandIDType(-2147483639)
OUTBIND = CommandIDType(0x0000000B)
ENQUIRE_LINK = CommandIDType(0x00000015)
ENQUIRE_LINK_RESP = CommandIDType(-2147483627)
SUBMIT_MULTI = CommandIDType(0x00000021)
SUBMIT_MULTI_RESP = CommandIDType(-2147483615)
ALERT_NOTIFICATION = CommandIDType(0x00000102)
DATA_SM = CommandIDType(0x00000103)
DATA_SM_RESP = CommandIDType(-2147483389)
)
// nolint
const (
// Command_Status Error Codes
ESME_ROK = CommandStatusType(0x00000000) // No Error
ESME_RINVMSGLEN = CommandStatusType(0x00000001) // Message Length is invalid
ESME_RINVCMDLEN = CommandStatusType(0x00000002) // Command Length is invalid
ESME_RINVCMDID = CommandStatusType(0x00000003) // Invalid Command ID
ESME_RINVBNDSTS = CommandStatusType(0x00000004) // Incorrect BIND Status for given command
ESME_RALYBND = CommandStatusType(0x00000005) // ESME Already in Bound State
ESME_RINVPRTFLG = CommandStatusType(0x00000006) // Invalid Priority Flag
ESME_RINVREGDLVFLG = CommandStatusType(0x00000007) // Invalid Registered Delivery Flag
ESME_RSYSERR = CommandStatusType(0x00000008) // System Error
ESME_RINVSRCADR = CommandStatusType(0x0000000A) // Invalid Source Address
ESME_RINVDSTADR = CommandStatusType(0x0000000B) // Invalid Dest Addr
ESME_RINVMSGID = CommandStatusType(0x0000000C) // Message ID is invalid
ESME_RBINDFAIL = CommandStatusType(0x0000000D) // Bind Failed
ESME_RINVPASWD = CommandStatusType(0x0000000E) // Invalid Password
ESME_RINVSYSID = CommandStatusType(0x0000000F) // Invalid System ID
ESME_RCANCELFAIL = CommandStatusType(0x00000011) // Cancel SM Failed
ESME_RREPLACEFAIL = CommandStatusType(0x00000013) // Replace SM Failed
ESME_RMSGQFUL = CommandStatusType(0x00000014) // Message Queue Full
ESME_RINVSERTYP = CommandStatusType(0x00000015) // Invalid Service Type
ESME_RADDCUSTFAIL = CommandStatusType(0x00000019) // Failed to Add Customer
ESME_RDELCUSTFAIL = CommandStatusType(0x0000001A) // Failed to delete Customer
ESME_RMODCUSTFAIL = CommandStatusType(0x0000001B) // Failed to modify customer
ESME_RENQCUSTFAIL = CommandStatusType(0x0000001C) // Failed to Enquire Customer
ESME_RINVCUSTID = CommandStatusType(0x0000001D) // Invalid Customer ID
ESME_RINVCUSTNAME = CommandStatusType(0x0000001F) // Invalid Customer Name
ESME_RINVCUSTADR = CommandStatusType(0x00000021) // Invalid Customer Address
ESME_RINVADR = CommandStatusType(0x00000022) // Invalid Address
ESME_RCUSTEXIST = CommandStatusType(0x00000023) // Customer Exists
ESME_RCUSTNOTEXIST = CommandStatusType(0x00000024) // Customer does not exist
ESME_RADDDLFAIL = CommandStatusType(0x00000026) // Failed to Add DL
ESME_RMODDLFAIL = CommandStatusType(0x00000027) // Failed to modify DL
ESME_RDELDLFAIL = CommandStatusType(0x00000028) // Failed to Delete DL
ESME_RVIEWDLFAIL = CommandStatusType(0x00000029) // Failed to View DL
ESME_RLISTDLSFAIL = CommandStatusType(0x00000030) // Failed to list DLs
ESME_RPARAMRETFAIL = CommandStatusType(0x00000031) // Param Retrieve Failed
ESME_RINVPARAM = CommandStatusType(0x00000032) // Invalid Param
ESME_RINVNUMDESTS = CommandStatusType(0x00000033) // Invalid number of destinations
ESME_RINVDLNAME = CommandStatusType(0x00000034) // Invalid Distribution List name
ESME_RINVDLMEMBDESC = CommandStatusType(0x00000035) // Invalid DL Member Description
ESME_RINVDLMEMBTYP = CommandStatusType(0x00000038) // Invalid DL Member Type
ESME_RINVDLMODOPT = CommandStatusType(0x00000039) // Invalid DL Modify Option
ESME_RINVDESTFLAG = CommandStatusType(0x00000040) // Destination flag is invalid (submit_multi)
ESME_RINVSUBREP = CommandStatusType(0x00000042) // Invalid ‘submit with replace’ request (i.e. submit_sm with replace_if_present_flag set)
ESME_RINVESMCLASS = CommandStatusType(0x00000043) // Invalid esm_class field data
ESME_RCNTSUBDL = CommandStatusType(0x00000044) // Cannot Submit to Distribution List
ESME_RSUBMITFAIL = CommandStatusType(0x00000045) // submit_sm or submit_multi failed
ESME_RINVSRCTON = CommandStatusType(0x00000048) // Invalid Source address TON
ESME_RINVSRCNPI = CommandStatusType(0x00000049) // Invalid Source address NPI
ESME_RINVDSTTON = CommandStatusType(0x00000050) // Invalid Destination address TON
ESME_RINVDSTNPI = CommandStatusType(0x00000051) // Invalid Destination address NPI
ESME_RINVSYSTYP = CommandStatusType(0x00000053) // Invalid system_type field
ESME_RINVREPFLAG = CommandStatusType(0x00000054) // Invalid replace_if_present flag
ESME_RINVNUMMSGS = CommandStatusType(0x00000055) // Invalid number of messages
ESME_RTHROTTLED = CommandStatusType(0x00000058) // Throttling error (ESME has exceeded allowed message limits)
ESME_RPROVNOTALLWD = CommandStatusType(0x00000059) // Provisioning Not Allowed
ESME_RINVSCHED = CommandStatusType(0x00000061) // Invalid Scheduled Delivery Time
ESME_RINVEXPIRY = CommandStatusType(0x00000062) // Invalid message validity period (Expiry time)
ESME_RINVDFTMSGID = CommandStatusType(0x00000063) // Predefined Message Invalid or Not Found
ESME_RX_T_APPN = CommandStatusType(0x00000064) // ESME Receiver Temporary App Error Code
ESME_RX_P_APPN = CommandStatusType(0x00000065) // ESME Receiver Permanent App Error Code
ESME_RX_R_APPN = CommandStatusType(0x00000066) // ESME Receiver Reject Message Error Code
ESME_RQUERYFAIL = CommandStatusType(0x00000067) // query_sm request failed
ESME_RINVPGCUSTID = CommandStatusType(0x00000080) // Paging Customer ID Invalid No such subscriber
ESME_RINVPGCUSTIDLEN = CommandStatusType(0x00000081) // Paging Customer ID length Invalid
ESME_RINVCITYLEN = CommandStatusType(0x00000082) // City Length Invalid
ESME_RINVSTATELEN = CommandStatusType(0x00000083) // State Length Invalid
ESME_RINVZIPPREFIXLEN = CommandStatusType(0x00000084) // Zip Prefix Length Invalid
ESME_RINVZIPPOSTFIXLEN = CommandStatusType(0x00000085) // Zip Postfix Length Invalid
ESME_RINVMINLEN = CommandStatusType(0x00000086) // MIN Length Invalid
ESME_RINVMIN = CommandStatusType(0x00000087) // MIN Invalid (i.e. No such MIN)
ESME_RINVPINLEN = CommandStatusType(0x00000088) // PIN Length Invalid
ESME_RINVTERMCODELEN = CommandStatusType(0x00000089) // Terminal Code Length Invalid
ESME_RINVCHANNELLEN = CommandStatusType(0x0000008A) // Channel Length Invalid
ESME_RINVCOVREGIONLEN = CommandStatusType(0x0000008B) // Coverage Region Length Invalid
ESME_RINVCAPCODELEN = CommandStatusType(0x0000008C) // Cap Code Length Invalid
ESME_RINVMDTLEN = CommandStatusType(0x0000008D) // Message delivery time Length Invalid
ESME_RINVPRIORMSGLEN = CommandStatusType(0x0000008E) // Priority Message Length Invalid
ESME_RINVPERMSGLEN = CommandStatusType(0x0000008F) // Periodic Messages Length Invalid
ESME_RINVPGALERTLEN = CommandStatusType(0x00000090) // Paging Alerts Length Invalid
ESME_RINVSMUSERLEN = CommandStatusType(0x00000091) // int16 Message User Group Length Invalid
ESME_RINVRTDBLEN = CommandStatusType(0x00000092) // Real Time Data broadcasts Length Invalid
ESME_RINVREGDELLEN = CommandStatusType(0x00000093) // Registered Delivery Length Invalid
ESME_RINVMSGDISTLEN = CommandStatusType(0x00000094) // Message Distribution Length Invalid
ESME_RINVPRIORMSG = CommandStatusType(0x00000095) // Priority Message Length Invalid
ESME_RINVMDT = CommandStatusType(0x00000096) // Message delivery time Invalid
ESME_RINVPERMSG = CommandStatusType(0x00000097) // Periodic Messages Invalid
ESME_RINVMSGDIST = CommandStatusType(0x00000098) // Message Distribution Invalid
ESME_RINVPGALERT = CommandStatusType(0x00000099) // Paging Alerts Invalid
ESME_RINVSMUSER = CommandStatusType(0x0000009A) // int16 Message User Group Invalid
ESME_RINVRTDB = CommandStatusType(0x0000009B) // Real Time Data broadcasts Invalid
ESME_RINVREGDEL = CommandStatusType(0x0000009C) // Registered Delivery Invalid
ESME_RINVOPTPARLEN = CommandStatusType(0x0000009F) // Invalid Optional Parameter Length
ESME_RINVOPTPARSTREAM = CommandStatusType(0x000000C0) // KIF IW Field out of data
ESME_ROPTPARNOTALLWD = CommandStatusType(0x000000C1) // Optional Parameter not allowed
ESME_RINVPARLEN = CommandStatusType(0x000000C2) // Invalid Parameter Length.
ESME_RMISSINGOPTPARAM = CommandStatusType(0x000000C3) // Expected Optional Parameter missing
ESME_RINVOPTPARAMVAL = CommandStatusType(0x000000C4) // Invalid Optional Parameter Value
ESME_RDELIVERYFAILURE = CommandStatusType(0x000000FE) // Delivery Failure (used for data_sm_resp)
ESME_RUNKNOWNERR = CommandStatusType(0x000000FF) // Unknown Error
ESME_LAST_ERROR = CommandStatusType(0x0000012C) // THE VALUE OF THE LAST ERROR CODE
)