You are here

function sms_clickatell_response_codes in SMS Framework 6

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

Return value

Associative array of response codes and text.

1 string reference to 'sms_clickatell_response_codes'
sms_clickatell_gateway_info in modules/sms_clickatell/sms_clickatell.module
Implement hook_gateway_info()

File

modules/sms_clickatell/sms_clickatell.module, line 594
Clickatell gateway module for Drupal SMS Framework. Outbound+Inbound+Receipts

Code

function sms_clickatell_response_codes() {
  return array(
    '001' => 'Authentication failed',
    '002' => 'Unknown username or password',
    '003' => 'Session ID expired',
    '004' => 'Account frozen',
    '005' => 'Missing session ID',
    '007' => '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',
    '121' => 'Destination mobile number blocked',
    '122' => 'Destination mobile opted out',
    '123' => 'Invalid Sender ID',
    '128' => 'Number delisted',
    '201' => 'Invalid batch ID',
    '202' => 'No batch template',
    '301' => 'No credit left',
    '302' => 'Max allowed credit',
  );
}