Net_SMPP
[ class tree: Net_SMPP ] [ index: Net_SMPP ] [ all elements ]

Source for file MIG.php

Documentation is available at MIG.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /**
  6.  * MIG vendor support class and data
  7.  *
  8.  * PHP versions 4 and 5
  9.  *
  10.  */
  11.  
  12. // Place includes, constant defines and $_GLOBAL settings here.
  13. require_once 'Net/SMPP/Vendor.php';
  14.  
  15.  /**
  16.  * Possible values for MIG_operator
  17.  *
  18.  *
  19.  * Connectionname (TLV 1600)
  20.  *
  21.  * Orange Connection - MIG01OU:     160000074D494730314F55
  22.  * O2 Connection - MIG01XU:     160000074D494730315855
  23.  * Three Connection - MIG01HU:     160000074D494730314855
  24.  * T-Mobile Connection - MIG01TU:     160000074D494730315455
  25.  * Vodafone Connection - MIG67VU:     160000074D494736375655
  26.  *
  27.  */
  28.  
  29.  /** The old mblox.php had this
  30.      So I think I should be putting in the actual characters because the hex will be converted????
  31.  **/
  32.  
  33. //define('NET_SMPP_MBLOX_OPERATOR_ATT',      '31001');
  34.  
  35. define('NET_SMPP_MIG_OPERATOR_O2',     'MIG01XU');
  36. define('NET_SMPP_MIG_OPERATOR_TMOB',   'MIG01TU');
  37. define('NET_SMPP_MIG_OPERATOR_VODA',   'MIG67VU');
  38. define('NET_SMPP_MIG_OPERATOR_ORANGE''MIG01OU');
  39. define('NET_SMPP_MIG_OPERATOR_3',      'MIG01HU');
  40.  
  41.  
  42.  
  43.  
  44. /**
  45.  * mBlox submit_sm rejection codes
  46.  *
  47.  * I do not have any MIG at the moment.
  48.  * But we are not currently sending via MIG so this can wait
  49.  */
  50. /*define('ESME_MBLOX_ERR_SYSTEM',                  0x0008);
  51. define('ESME_MBLOX_ERR_NUM_BLACKLISTED',         0x0401);
  52. define('ESME_MBLOX_ERR_CLNT_BLACKLISTED',        0x0402);
  53. define('ESME_MBLOX_ERR_PRE_BLACKLISTED',         0x0403);
  54. define('ESME_MBLOX_ERR_INVALID_ACCOUNT',         0x0404);
  55. define('ESME_MBLOX_ERR_BUSY',                    0x0406);
  56. define('ESME_MBLOX_ERR_REPLY_TYPE',              0x0407);
  57. define('ESME_MBLOX_ERR_MSIP_SYNTAX',             0x0408);
  58. define('ESME_MBLOX_ERR_SYSTEM_UNAVAIL1',         0x040A);
  59. define('ESME_MBLOX_ERR_SYSTEM_UNAVAIL2',         0x040B);
  60. define('ESME_MBLOX_ERR_SYSTEM_UNAVAIL3',         0x040C);
  61. define('ESME_MBLOX_ERR_PROFILE',                 0x040D);
  62. define('ESME_MBLOX_ERR_NO_USERNAME',             0x040E);
  63. define('ESME_MBLOX_ERR_NO_BINARY',               0x040F);
  64. define('ESME_MBLOX_ERR_TEMP_FAIL',               0x0410);
  65. define('ESME_MBLOX_ERR_NUM_UNROUTABLE',          0x0411);
  66. define('ESME_MBLOX_ERR_TEMP_NUM_UNROURABLE',     0x0412);
  67. define('ESME_MBLOX_ERR_NUM_UNROUTABLE2',         0x0413);
  68. define('ESME_MBLOX_ERR_NUM_UNROUTABLE_SETTINGS', 0x0414);
  69. define('ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE2',    0x0415);
  70. define('ESME_MBLOX_ERR_NUM_UNROUTABLE3',         0x0416);
  71. define('ESME_MBLOX_ERR_NUM_UNROUTABLE4',         0x0417);
  72. define('ESME_MBLOX_ERR_NUM_UNROUTABLE5',         0x0418);
  73. define('ESME_MBLOX_ERR_NUM_UNROUTABLE6',         0x0419);
  74. define('ESME_MBLOX_ERR_NUM_UNROUTABLE7',         0x041A);
  75. define('ESME_MBLOX_ERR_NUM_UNROUTABLE8',         0x041B);
  76. define('ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE3',    0x041C);
  77. define('ESME_MBLOX_ERR_NUM_UNROUTABLE9',         0x041D);
  78. define('ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE4',    0x041E);
  79. define('ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE5',    0x041F);
  80. define('ESME_MBLOX_ERR_UNABLE_TO_SEND',          0x0420);
  81. define('ESME_MBLOX_ERR_NO_ORIGINATOR',           0x0421);
  82. define('ESME_MBLOX_ERR_DEST_TRY_AGAIN',          0x0422);
  83. define('ESME_MBLOX_ERR_BLOCKED',                 0x0423);
  84. define('ESME_MBLOX_ERR_BILLING',                 0x0424);
  85. define('ESME_MBLOX_ERR_BLOCKED2',                0x0425);
  86. define('ESME_MBLOX_ERR_THROTTLING',              0x0426);
  87. define('ESME_MBLOX_ERR_BAD_SEQ',                 0x0427);
  88. define('ESME_MBLOX_ERR_CLIENT_ID',               0x0428);
  89. define('ESME_MBLOX_ERR_CLIENT_ID2',              0x0429);
  90. define('ESME_MBLOX_ERR_PSMS_ROUTING',            0x042A);
  91. define('ESME_MBLOX_ERR_PSMS_ROUTING2',           0x042B);
  92. define('ESME_MBLOX_ERR_PSMS_ROUTING3',           0x042C);
  93. define('ESME_MBLOX_ERR_PSMS_ROUTING4',           0x042D);
  94. */
  95.  
  96. /**
  97.  * MIG vendor support class
  98.  *
  99.  */
  100.     /**
  101.      * MIG optional paramaters
  102.      *
  103.      * @var     array 
  104.      * @access  protected
  105.      * @static
  106.      *
  107.      *  TLV          Description                                        Example
  108.      *  1600       Connectionname (MT/MO)  (network)                 16000008xxxxxxxxxxxxxxxx
  109.      *  1601       Tariff exclusive VAT (ex 92) (MT)                 160100023932
  110.      *  1602       Tariff class (MT) (Not USED for now)              n.a.
  111.      *  1610       Operator country code (NL=204) (MT/MO)            16100003323034
  112.      *  1611       Operator network code (KPN=08) (MT/MO)            161100023038
  113.      *  1620       GUID (internal reference) (MO)                    1620......
  114.      *  1630       User ID (MT/DN)                                   16300006474230303031
  115.      *  1640       Subscription ID (MT)                              1640000131
  116.      *  1650       Billing text (MT)                                 1650000454455354
  117.      */
  118.  
  119.     function &_optionalParams()
  120.     {
  121.         static $params = array(
  122.             'MIG_operator'  => 0x1600,
  123.             'MIG_guid'    => 0x1620
  124.             //'MIG_tariff'    => 0x1601,
  125.             //'MIG_tariff_class'    => 0x16202,
  126.             //'MIG_operator_country'    => 0x1610,
  127.             //'MIG_operator_network'    => 0x1611,
  128.             //'MIG_User_ID'    => 0x1630,
  129.             //'MIG_Subscription'    => 0x1640,
  130.             //'MIG_Billing_Text'    => 0x1650
  131.         );
  132.  
  133.         return $params;
  134.     }
  135.  
  136.  
  137.  
  138.  
  139.     /**
  140.      * MIG status descriptions - left over from mblox.php
  141.      *
  142.      * @return  array 
  143.      * @access  protected
  144.      * @static
  145.      */
  146.  
  147.   /*  function &_statusDescs()
  148.     {
  149.         static $descs = array(
  150.             ESME_MBLOX_ERR_SYSTEM                  => 'System Error',
  151.             ESME_MBLOX_ERR_NUM_BLACKLISTED         => 'Number blacklisted in system',
  152.             ESME_MBLOX_ERR_CLNT_BLACKLISTED        => 'Client blacklisted in system',
  153.             ESME_MBLOX_ERR_PRE_BLACKLISTED         => 'Prefix blacklisted in system',
  154.             ESME_MBLOX_ERR_INVALID_ACCOUNT         => 'Invalid account Error',
  155.             ESME_MBLOX_ERR_BUSY                    => 'Destination busy - The message was not sent due to the fact that the QoS was busy , please try again.
  156.         ',
  157.             ESME_MBLOX_ERR_REPLY_TYPE              => 'Reply Type Error.',
  158.             ESME_MBLOX_ERR_MSIP_SYNTAX             => 'MSIP Syntax Error.',
  159.             ESME_MBLOX_ERR_SYSTEM_UNAVAIL1         => 'System unavailable.',
  160.             ESME_MBLOX_ERR_SYSTEM_UNAVAIL2         => 'System unavailable.',
  161.             ESME_MBLOX_ERR_SYSTEM_UNAVAIL3         => 'System unavailable.',
  162.             ESME_MBLOX_ERR_PROFILE                 => 'Profile Error.',
  163.             ESME_MBLOX_ERR_NO_USERNAME             => 'Username not set - No username was specified.',
  164.             ESME_MBLOX_ERR_NO_BINARY               => 'Do not try again. Binary message not allowed on profile. - This message does not allow binary messages.',
  165.             ESME_MBLOX_ERR_TEMP_FAIL               => 'Temporary System failure, please retry.',
  166.             ESME_MBLOX_ERR_NUM_UNROUTABLE          => 'Number unroutable. Do not retry.',
  167.             ESME_MBLOX_ERR_TEMP_NUM_UNROURABLE     => 'Number Temporarily unroutable, please try again.',
  168.             ESME_MBLOX_ERR_NUM_UNROUTABLE2         => 'Number unroutable. Do not retry.',
  169.             ESME_MBLOX_ERR_NUM_UNROUTABLE_SETTINGS => 'Number unroutable on current settings. Do not retry.',
  170.             ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE2    => 'Number Temporarily unroutable, please try again.',
  171.             ESME_MBLOX_ERR_NUM_UNROUTABLE3         => 'Number unroutable. Do not retry.',
  172.             ESME_MBLOX_ERR_NUM_UNROUTABLE4         => 'Number unroutable. Do not retry.',
  173.             ESME_MBLOX_ERR_NUM_UNROUTABLE5         => 'Number unroutable. Do not retry.',
  174.             ESME_MBLOX_ERR_NUM_UNROUTABLE6         => 'Number unroutable. Do not retry.',
  175.             ESME_MBLOX_ERR_NUM_UNROUTABLE7         => 'Number unroutable. Do not retry.',
  176.             ESME_MBLOX_ERR_NUM_UNROUTABLE8         => 'Number unroutable. Do not retry.',
  177.             ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE3    => 'Number Temporarily unroutable, please try again.',
  178.             ESME_MBLOX_ERR_NUM_UNROUTABLE9         => 'Number unroutable. Do not retry.',
  179.             ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE4    => 'Number Temporarily unroutable, please try again.',
  180.             ESME_MBLOX_ERR_TEMP_NUM_UNROUTABLE5    => 'Number Temporarily unroutable, please try again.',
  181.             ESME_MBLOX_ERR_UNABLE_TO_SEND          => 'Unable to send on local deliverer',
  182.             ESME_MBLOX_ERR_NO_ORIGINATOR           => 'Cannot find originator for index. Do not retry.',
  183.             ESME_MBLOX_ERR_DEST_TRY_AGAIN          => 'Destination please try again.',
  184.             ESME_MBLOX_ERR_BLOCKED                 => 'Number is blocked. Do not retry.',
  185.             ESME_MBLOX_ERR_BILLING                 => 'Billing Reference Error. Do not retry.',
  186.             ESME_MBLOX_ERR_BLOCKED2                => 'Number is blocked. Do not retry',
  187.             ESME_MBLOX_ERR_THROTTLING              => 'Throttling – Please try again.',
  188.             ESME_MBLOX_ERR_BAD_SEQ                 => 'Bad sequence',
  189.             ESME_MBLOX_ERR_CLIENT_ID               => 'Error when supplying a client id',
  190.             ESME_MBLOX_ERR_CLIENT_ID2              => 'Error when supplying a client id',
  191.             ESME_MBLOX_ERR_PSMS_ROUTING            => 'Routing error for PSMS',
  192.             ESME_MBLOX_ERR_PSMS_ROUTING2           => 'Routing error for PSMS',
  193.             ESME_MBLOX_ERR_PSMS_ROUTING3           => 'Routing error for PSMS',
  194.             ESME_MBLOX_ERR_PSMS_ROUTING4           => 'Routing error for PSMS'
  195.         );
  196.  
  197.         return $descs;
  198.     }*/
  199. }
  200.  
  201.  
  202. ?>

Documentation generated on Mon, 11 Mar 2019 15:37:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.