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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382

#[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, ToPrimitive)]
pub enum Error {
	/// unknown error code
	Ok = 0x0000,
	/// undefined error
	Undefined = 0x0001,
	/// not implemented
	NotImplemented = 0x0002,
	OkNoUpdate = 0x0003,
	DontNotify = 0x0004,
	/// library time limit reached
	LibTimeLimitReached = 0x0005,
	/// command not found
	CommandNotFound = 0x0100,
	/// unable to bind network port
	UnableToBindNetworkPort = 0x0101,
	/// no network port available
	NoNetworkPortAvailable = 0x0102,
	/// invalid clientID
	ClientInvalidId = 0x0200,
	/// nickname is already in use
	ClientNicknameInuse = 0x0201,
	/// invalid error code
	ClientInvalidErrorCode = 0x0202,
	/// max clients protocol limit reached
	ClientProtocolLimitReached = 0x0203,
	/// invalid client type
	ClientInvalidType = 0x0204,
	/// already subscribed
	ClientAlreadySubscribed = 0x0205,
	/// not logged in
	ClientNotLoggedIn = 0x0206,
	/// could not validate client identity
	ClientCouldNotValidateIdentity = 0x0207,
	/// invalid loginname or password
	ClientInvalidPassword = 0x0208,
	/// too many clones already connected
	ClientTooManyClonesConnected = 0x0209,
	/// client version outdated, please update
	ClientVersionOutdated = 0x020a,
	/// client is online
	ClientIsOnline = 0x020b,
	/// client is flooding
	ClientIsFlooding = 0x020c,
	/// client is modified
	ClientHacked = 0x020d,
	/// can not verify client at this moment
	ClientCannotVerifyNow = 0x020e,
	/// client is not permitted to log in
	ClientLoginNotPermitted = 0x020f,
	/// client is not subscribed to the channel
	ClientNotSubscribed = 0x0210,
	/// invalid channelID
	ChannelInvalidId = 0x0300,
	/// max channels protocol limit reached
	ChannelProtocolLimitReached = 0x0301,
	/// already member of channel
	ChannelAlreadyIn = 0x0302,
	/// channel name is already in use
	ChannelNameInuse = 0x0303,
	/// channel not empty
	ChannelNotEmpty = 0x0304,
	/// can not delete default channel
	ChannelCanNotDeleteDefault = 0x0305,
	/// default channel requires permanent
	ChannelDefaultRequirePermanent = 0x0306,
	/// invalid channel flags
	ChannelInvalidFlags = 0x0307,
	/// permanent channel can not be child of non permanent channel
	ChannelParentNotPermanent = 0x0308,
	/// channel maxclient reached
	ChannelMaxclientsReached = 0x0309,
	/// channel maxfamily reached
	ChannelMaxfamilyReached = 0x030a,
	/// invalid channel order
	ChannelInvalidOrder = 0x030b,
	/// channel does not support filetransfers
	ChannelNoFiletransferSupported = 0x030c,
	/// invalid channel password
	ChannelInvalidPassword = 0x030d,
	/// channel is private channel
	ChannelIsPrivateChannel = 0x030e,
	/// invalid security hash supplied by client
	ChannelInvalidSecurityHash = 0x030f,
	/// invalid serverID
	ServerInvalidId = 0x0400,
	/// server is running
	ServerRunning = 0x0401,
	/// server is shutting down
	ServerIsShuttingDown = 0x0402,
	/// server maxclient reached
	ServerMaxclientsReached = 0x0403,
	/// invalid server password
	ServerInvalidPassword = 0x0404,
	/// deployment active
	ServerDeploymentActive = 0x0405,
	/// unable to stop own server in your connection class
	ServerUnableToStopOwnServer = 0x0406,
	/// server is virtual
	ServerIsVirtual = 0x0407,
	/// server wrong machineID
	ServerWrongMachineid = 0x0408,
	/// server is not running
	ServerIsNotRunning = 0x0409,
	/// server is booting up
	ServerIsBooting = 0x040a,
	/// server got an invalid status for this operation
	ServerStatusInvalid = 0x040b,
	/// server modal quit
	ServerModalQuit = 0x040c,
	/// server version is too old for command
	ServerVersionOutdated = 0x040d,
	/// database error
	Database = 0x0500,
	/// database empty result set
	DatabaseEmptyResult = 0x0501,
	/// database duplicate entry
	DatabaseDuplicateEntry = 0x0502,
	/// database no modifications
	DatabaseNoModifications = 0x0503,
	/// database invalid constraint
	DatabaseConstraint = 0x0504,
	/// database reinvoke command
	DatabaseReinvoke = 0x0505,
	/// invalid quote
	ParameterQuote = 0x0600,
	/// invalid parameter count
	ParameterInvalidCount = 0x0601,
	/// invalid parameter
	ParameterInvalid = 0x0602,
	/// parameter not found
	ParameterNotFound = 0x0603,
	/// convert error
	ParameterConvert = 0x0604,
	/// invalid parameter size
	ParameterInvalidSize = 0x0605,
	/// missing required parameter
	ParameterMissing = 0x0606,
	/// invalid checksum
	ParameterChecksum = 0x0607,
	/// virtual server got a critical error
	VsCritical = 0x0700,
	/// Connection lost
	ConnectionLost = 0x0701,
	/// not connected
	NotConnected = 0x0702,
	/// no cached connection info
	NoCachedConnectionInfo = 0x0703,
	/// currently not possible
	CurrentlyNotPossible = 0x0704,
	/// failed connection initialization
	FailedConnectionInitialisation = 0x0705,
	/// could not resolve hostname
	CouldNotResolveHostname = 0x0706,
	/// invalid server connection handler ID
	InvalidServerConnectionHandlerId = 0x0707,
	/// could not initialize Input Manager
	CouldNotInitialiseInputManager = 0x0708,
	/// client library not initialized
	ClientlibraryNotInitialised = 0x0709,
	/// server library not initialized
	ServerlibraryNotInitialised = 0x070a,
	/// too many whisper targets
	WhisperTooManyTargets = 0x070b,
	/// no whisper targets found
	WhisperNoTargets = 0x070c,
	/// invalid file name
	FileInvalidName = 0x0800,
	/// invalid file permissions
	FileInvalidPermissions = 0x0801,
	/// file already exists
	FileAlreadyExists = 0x0802,
	/// file not found
	FileNotFound = 0x0803,
	/// file input/output error
	FileIoError = 0x0804,
	/// invalid file transfer ID
	FileInvalidTransferId = 0x0805,
	/// invalid file path
	FileInvalidPath = 0x0806,
	/// no files available
	FileNoFilesAvailable = 0x0807,
	/// overwrite excludes resume
	FileOverwriteExcludesResume = 0x0808,
	/// invalid file size
	FileInvalidSize = 0x0809,
	/// file already in use
	FileAlreadyInUse = 0x080a,
	/// could not open file transfer connection
	FileCouldNotOpenConnection = 0x080b,
	/// no space left on device (disk full?)
	FileNoSpaceLeftOnDevice = 0x080c,
	/// file exceeds file system's maximum file size
	FileExceedsFileSystemMaximumSize = 0x080d,
	/// file transfer connection timeout
	FileTransferConnectionTimeout = 0x080e,
	/// lost file transfer connection
	FileConnectionLost = 0x080f,
	/// file exceeds supplied file size
	FileExceedsSuppliedSize = 0x0810,
	/// file transfer complete
	FileTransferComplete = 0x0811,
	/// file transfer canceled
	FileTransferCanceled = 0x0812,
	/// file transfer interrupted
	FileTransferInterrupted = 0x0813,
	/// file transfer server quota exceeded
	FileTransferServerQuotaExceeded = 0x0814,
	/// file transfer client quota exceeded
	FileTransferClientQuotaExceeded = 0x0815,
	/// file transfer reset
	FileTransferReset = 0x0816,
	/// file transfer limit reached
	FileTransferLimitReached = 0x0817,
	/// preprocessor disabled
	SoundPreprocessorDisabled = 0x0900,
	/// internal preprocessor
	SoundInternalPreprocessor = 0x0901,
	/// internal encoder
	SoundInternalEncoder = 0x0902,
	/// internal playback
	SoundInternalPlayback = 0x0903,
	/// no capture device available
	SoundNoCaptureDeviceAvailable = 0x0904,
	/// no playback device available
	SoundNoPlaybackDeviceAvailable = 0x0905,
	/// could not open capture device
	SoundCouldNotOpenCaptureDevice = 0x0906,
	/// could not open playback device
	SoundCouldNotOpenPlaybackDevice = 0x0907,
	/// ServerConnectionHandler has a device registered
	SoundHandlerHasDevice = 0x0908,
	/// invalid capture device
	SoundInvalidCaptureDevice = 0x0909,
	/// invalid clayback device
	SoundInvalidPlaybackDevice = 0x090a,
	/// invalid wave file
	SoundInvalidWave = 0x090b,
	/// wave file type not supported
	SoundUnsupportedWave = 0x090c,
	/// could not open wave file
	SoundOpenWave = 0x090d,
	/// internal capture
	SoundInternalCapture = 0x090e,
	/// device still in use
	SoundDeviceInUse = 0x090f,
	/// device already registerred
	SoundDeviceAlreadyRegisterred = 0x0910,
	/// device not registered/known
	SoundUnknownDevice = 0x0911,
	/// unsupported frequency
	SoundUnsupportedFrequency = 0x0912,
	/// invalid channel count
	SoundInvalidChannelCount = 0x0913,
	/// read error in wave
	SoundReadWave = 0x0914,
	/// sound need more data
	SoundNeedMoreData = 0x0915,
	/// sound device was busy
	SoundDeviceBusy = 0x0916,
	/// there is no sound data for this period
	SoundNoData = 0x0917,
	/// Channelmask set bits count (speakers) is not the same as (count)
	SoundChannelMaskMismatch = 0x0918,
	/// invalid group ID
	PermissionInvalidGroupId = 0x0a00,
	/// duplicate entry
	PermissionDuplicateEntry = 0x0a01,
	/// invalid permission ID
	PermissionInvalidPermId = 0x0a02,
	/// empty result set
	PermissionEmptyResult = 0x0a03,
	/// access to default group is forbidden
	PermissionDefaultGroupForbidden = 0x0a04,
	/// invalid size
	PermissionInvalidSize = 0x0a05,
	/// invalid value
	PermissionInvalidValue = 0x0a06,
	/// group is not empty
	PermissionsGroupNotEmpty = 0x0a07,
	/// insufficient client permissions
	PermissionsClientInsufficient = 0x0a08,
	/// insufficient group modify power
	PermissionsInsufficientGroupPower = 0x0a09,
	/// insufficient permission modify power
	PermissionsInsufficientPermissionPower = 0x0a0a,
	/// template group is currently used
	PermissionTemplateGroupIsUsed = 0x0a0b,
	/// permission error
	Permissions = 0x0a0c,
	/// virtualserver limit reached
	AccountingVirtualserverLimitReached = 0x0b00,
	/// max slot limit reached
	AccountingSlotLimitReached = 0x0b01,
	/// license file not found
	AccountingLicenseFileNotFound = 0x0b02,
	/// license date not ok
	AccountingLicenseDateNotOk = 0x0b03,
	/// unable to connect to accounting server
	AccountingUnableToConnectToServer = 0x0b04,
	/// unknown accounting error
	AccountingUnknownError = 0x0b05,
	/// accounting server error
	AccountingServerError = 0x0b06,
	/// instance limit reached
	AccountingInstanceLimitReached = 0x0b07,
	/// instance check error
	AccountingInstanceCheckError = 0x0b08,
	/// license file invalid
	AccountingLicenseFileInvalid = 0x0b09,
	/// virtualserver is running elsewhere
	AccountingRunningElsewhere = 0x0b0a,
	/// virtualserver running in same instance already
	AccountingInstanceDuplicated = 0x0b0b,
	/// virtualserver already started
	AccountingAlreadyStarted = 0x0b0c,
	/// virtualserver not started
	AccountingNotStarted = 0x0b0d,
	AccountingToManyStarts = 0x0b0e,
	/// invalid message id
	MessageInvalidId = 0x0c00,
	/// invalid ban id
	BanInvalidId = 0x0d00,
	/// connection failed, you are banned
	ConnectFailedBanned = 0x0d01,
	/// rename failed, new name is banned
	RenameFailedBanned = 0x0d02,
	/// flood ban
	BanFlooding = 0x0d03,
	/// unable to initialize tts
	TtsUnableToInitialize = 0x0e00,
	/// invalid privilege key
	PrivilegeKeyInvalid = 0x0f00,
	VoipPjsua = 0x1000,
	VoipAlreadyInitialized = 0x1001,
	VoipTooManyAccounts = 0x1002,
	VoipInvalidAccount = 0x1003,
	VoipInternalError = 0x1004,
	VoipInvalidConnectionId = 0x1005,
	VoipCannotAnswerInitiatedCall = 0x1006,
	VoipNotInitialized = 0x1007,
	/// invalid password
	ProvisioningInvalidPassword = 0x1100,
	/// invalid request
	ProvisioningInvalidRequest = 0x1101,
	/// no(more) slots available
	ProvisioningNoSlotsAvailable = 0x1102,
	/// pool missing
	ProvisioningPoolMissing = 0x1103,
	/// pool unknown
	ProvisioningPoolUnknown = 0x1104,
	/// unknown ip location(perhaps LAN ip?)
	ProvisioningUnknownIpLocation = 0x1105,
	/// internal error(tried exceeded)
	ProvisioningInternalTriesExceeded = 0x1106,
	/// too many slots requested
	ProvisioningTooManySlotsRequested = 0x1107,
	/// too many reserved
	ProvisioningTooManyReserved = 0x1108,
	/// could not connect to provisioning server
	ProvisioningCouldNotConnect = 0x1109,
	/// authentication server not connected
	ProvisioningAuthServerNotConnected = 0x1110,
	/// authentication data too large
	ProvisioningAuthDataTooLarge = 0x1111,
	/// already initialized
	ProvisioningAlreadyInitialized = 0x1112,
	/// not initialized
	ProvisioningNotInitialized = 0x1113,
	/// already connecting
	ProvisioningConnecting = 0x1114,
	/// already connected
	ProvisioningAlreadyConnected = 0x1115,
	ProvisioningNotConnected = 0x1116,
	/// io_error
	ProvisioningIoError = 0x1117,
	ProvisioningInvalidTimeout = 0x1118,
	ProvisioningTs3serverNotFound = 0x1119,
	/// unknown permissionID
	ProvisioningNoPermission = 0x111A,
}