cvs: pear /Net_SMPP/SMPP Command.php
| From: | Ian Eure | Date: | Sat, 17 Sep 2005 02:34:21 +0000 |
| Subject: | cvs: pear /Net_SMPP/SMPP Command.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-34817@lists.php.net to get a copy of this message | ||
ieure Fri Sep 16 22:34:21 2005 EDT
Modified files:
/pear/Net_SMPP/SMPP Command.php
Log:
Define esm_class constants
http://cvs.php.net/diff.php/pear/Net_SMPP/SMPP/Command.php?r1=1.1&r2=1.2&ty=u
Index: pear/Net_SMPP/SMPP/Command.php
diff -u pear/Net_SMPP/SMPP/Command.php:1.1 pear/Net_SMPP/SMPP/Command.php:1.2
--- pear/Net_SMPP/SMPP/Command.php:1.1 Fri Aug 12 15:41:58 2005
+++ pear/Net_SMPP/SMPP/Command.php Fri Sep 16 22:34:19 2005
@@ -19,7 +19,7 @@
* @copyright 2005 WebSprockets, LLC.
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
* @version Release: @package_version@
- * @version CVS: $Revision: 1.1 $
+ * @version CVS: $Revision: 1.2 $
* @since Release 0.0.1dev2
* @link http://pear.php.net/package/Net_SMPP
*/
@@ -88,6 +88,37 @@
define('NET_SMPP_LANG_ES', 0x03);
define('NET_SMPP_LANG_DE', 0x04);
+/**
+ * SMPP v3.4 esm_class values
+ *
+ * @see Net_SMPP_Command_submit_sm::$esm_class
+ */
+// Default SMSC Mode (e.g. Store and Forward)
+define('NET_SMPP_MSGMODE_DEFAULT', 0x00);
+// Datagram mode
+define('NET_SMPP_MSGMODE_DATAGRAM', 0x01);
+// Forward (i.e. Transaction) mode
+define('NET_SMPP_MSGMODE_FORWARD' , 0x02);
+// Store and Forward mode (use to select Store and Forward mode if Default
+// SMSC Mode is non Store and Forward)
+define('NET_SMPP_MSGMODE_STOREFORWARD', 0x03);
+
+// Default message Type (i.e. normal message)
+define('NET_SMPP_MSGTYPE_DEFAULT', 0x00);
+// Short Message contains ESME Delivery Acknowledgement
+define('NET_SMPP_MSGTYPE_DELIVERYACK', 0x08);
+// Short Message contains ESME Manual/User Acknowledgement
+define('NET_SMPP_MSGTYPE_USERACK', 0x10);
+
+// No specific features selected
+define('NET_SMPP_GSMFEAT_NONE', 0x00);
+// UDHI Indicator (only relevant for MT short messages)
+define('NET_SMPP_GSMFEAT_UDHI', 0x40);
+// Set Reply Path (only relevant for GSM network)
+define('NET_SMPP_GSMFEAT_REPLYPATH', 0x80);
+// Set UDHI and Reply Path (only relevant for GSM network)
+define('NET_SMPP_GSMFEAT_UDHIREPLYPATH', 0xC0);
+
/**
* Base Net_SMPP PDU command class
@@ -102,7 +133,7 @@
* @copyright 2005 WebSprockets, LLC.
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
* @version Release: @package_version@
- * @version CVS: $Revision: 1.1 $
+ * @version CVS: $Revision: 1.2 $
* @since Release 0.0.1dev2
* @link http://pear.php.net/package/Net_SMPP
*/