You are here

function sms_clickatell_error_codes in SMS Framework 5

Returns an array of error codes and messages that are generated by the Clickatell gateway

File

modules/sms_clickatell/sms_clickatell.module, line 174
Adds support for sending SMS messages using the Clickatell gateway.

Code

function sms_clickatell_error_codes() {
  return array(
    01 => 'Authentication failed',
    02 => 'Unknown username or password',
    03 => 'Session ID expired',
    04 => 'Account frozen',
    05 => 'Missing session ID',
    07 => 'IP Lockdown violation',
    101 => 'Invalid or missing parameters',
    102 => 'Invalid user data header',
    103 => 'Unknown API message ID',
    104 => 'Unknown client message ID',
    105 => 'Invalid destination address',
    106 => 'Invalid source address',
    107 => 'Empty message',
    108 => 'Invalid or missing API ID',
    109 => 'Missing message ID',
    110 => 'Error with email message',
    111 => 'Invalid protocol',
    112 => 'Invalid message type',
    113 => 'Maximum message parts exceeded',
    114 => 'Cannot route message',
    115 => 'Message expired',
    116 => 'Invalid Unicode data',
    120 => 'Invalid delivery time',
    201 => 'Invalid batch ID',
    202 => 'No batch template',
    301 => 'No credit left',
    302 => 'Max allowed credit',
  );
}