⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smscconstants.java

📁 本人为友邦公司做的模拟网关源代码
💻 JAVA
字号:
package smgpgw;

/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2002
 * Company:
 * @author wangpei
 * @version 1.0
 */

public class SmscConstants {
	public SmscConstants() {  }


	public static final int SMPP_GENERIC_NAK=              0x80000000;
	public static final int SMPP_BIND_RECEIVER=            0x00000001;
	public static final int SMPP_BIND_RECEIVER_RESP=       0x80000001;
	public static final int SMPP_BIND_TRANSMITTER=         0x00000002;
	public static final int SMPP_BIND_TRANSMITTER_RESP=    0x80000002;
	public static final int SMPP_QUERY_SM=                 0x00000003;
	public static final int SMPP_QUERY_SM_RESP=            0x80000003;
	public static final int SMPP_SUBMIT_SM=                0x00000004;
	public static final int SMPP_SUBMIT_SM_RESP=           0x80000004;
	public static final int SMPP_DELIVER_SM=               0x00000005;
	public static final int SMPP_DELIVER_SM_RESP=          0x80000005;
	public static final int SMPP_UNBIND=                   0x00000006;
	public static final int SMPP_UNBIND_RESP=              0x80000006;
	public static final int SMPP_REPLACE_SM=               0x00000007;
	public static final int SMPP_REPLACE_SM_RESP=          0x80000007;
	public static final int SMPP_CANCEL_SM=                0x00000008;
	public static final int SMPP_CANCEL_SM_RESP=           0x80000008;
	public static final int SMPP_BIND_TRANSCEIVER=         0x00000009;
	public static final int SMPP_BIND_TRANSCEIVER_RESP=    0x80000009;
	public static final int SMPP_OUTBIND=                  0x0000000B;
	public static final int SMPP_ENQUIRE_LINK=             0x00000015;
	public static final int SMPP_ENQUIRE_LINK_RESP=        0x80000015;
	public static final int SMPP_SUBMIT_MULTI=             0x00000021;
	public static final int SMPP_SUBMIT_MULTI_RESP=        0x80000021;
	public static final int SMPP_ALERT_NOTIFICATION=       0x00000102;
	public static final int SMPP_DATA_SM=                  0x00000103;
	public static final int SMPP_DATA_SM_RESP=             0x80000103;

	/******************************************************************************
	SMPP协议中SMSC返回的命令状态信息代码定义
	* Error Codes from
	* SMPP 3.4 specification
	* http://www.smpp.org/
	*/
	public static final int ESME_ROK=                      0x00000000; /* No error */
	public static final int ESME_RINVMSGLEN=               0x00000001; /* Message length is invalid */
	public static final int ESME_RINVCMDLEN=               0x00000002; /* Command length is invalid */
	public static final int ESME_RINVCMDID=                0x00000003; /* Invalid command ID */
	public static final int ESME_RINVBNDSTS=               0x00000004; /* Incorrect bind status */
	public static final int ESME_RALYBND=                  0x00000005; /* ESME already in bound state */
	public static final int ESME_RINVPRTFLG=               0x00000006; /* Invalid priority flag */
	public static final int ESME_RINVREGDLVFLG=            0x00000007; /* Invalid registered delivery flag */
	public static final int ESME_RSYSERR=                  0x00000008; /* System error */
	public static final int ESME_RINVSRCADR=               0x0000000A; /* Invalid source address */
	public static final int ESME_RINVDSTADR=               0x0000000B; /* Invalid destination address */
	public static final int ESME_RINVMSGID=                0x0000000C; /* Invalid message ID */
	public static final int ESME_RBINDFAIL=                0x0000000D; /* Bind failed */
	public static final int ESME_RINVPASWD=                0x0000000E; /* Invalid password */
	public static final int ESME_RINVSYSID=                0x0000000F; /* Invalid system ID */
	public static final int ESME_RCANCELFAIL=              0x00000011; /* Cancel SM failed */
	public static final int ESME_RREPLACEFAIL=             0x00000013; /* Replace SM failed */
	public static final int ESME_RMSGQFUL=                 0x00000014; /* Message queue full */
	public static final int ESME_RINVSERTYP=               0x00000015; /* Invalid service type */
	public static final int ESME_RPARAMRETFAIL=            0x00000031; /* Param Retrieve Failed */
	public static final int ESME_RINVPARAM=                0x00000032; /* Invalid Param */
	public static final int ESME_RINVNUMDESTS=             0x00000033; /* Invalid number of destinations */
	public static final int ESME_RINVDESTFLAG=             0x00000040; /* Destination flag is invalid (sm_multi) */
	public static final int ESME_RINVUSBREP=               0x00000042; /* Submit w/replace invalid */
	public static final int ESME_RINVESMCLASS=             0x00000043; /* ESM Class is invalid */
	public static final int ESME_RCNTSUBDL=                0x00000044; /* Cannot submit to DL */
	public static final int ESME_RSUBMITFAIL=              0x00000045; /* Submit SM/Multi failed */
	public static final int ESME_RINVSRCTON=               0x00000048; /* Invalid Source TON */
	public static final int ESME_RINVSRCNPI=               0x00000049; /* Invalid Source NPI */
	public static final int ESME_RINVDSTTON=               0x00000050; /* Invalid Destination TON */
	public static final int ESME_RINVDSTNPI=               0x00000051; /* Invalid Destination NPI */
	public static final int ESME_RINVSYSTYP=               0x00000053; /* Invalid System Type */
	public static final int ESME_RINVREPFLAG=              0x00000054; /* Invalid Replace if present flag */
	public static final int ESME_RINVNUMMSGS=              0x00000055; /* Invalid number of messages */
	public static final int ESME_RTHROTTLED=               0x00000058; /* I/F Throttled Error */
	public static final int ESME_RINVSHCHED=               0x00000061; /* Invalid Scheduled Delivery Time */
	public static final int ESME_RINVEXPIRY=               0x00000062; /* Expiry/Validity period is invalid */
	public static final int ESME_RINVDFTMSGID=             0x00000063; /* Predefined Message Not Found */
	public static final int ESME_RX_T_APPN=                0x00000064; /* ESME RX Reject Message Error Code */
	public static final int ESME_RX_P_APPN=                0x00000065; /* ESME EX Permanent App Error Code */
	public static final int ESME_RX_R_APPN=                0x00000066; /* ESME RX Temporary App Error Code */
	public static final int ESME_RQUERYFAIL=               0x00000067; /* Query SM Failed */
	public static final int ESME_RUNKNOWNERR=              0x000000FF; /* Unknown Error *//*还有一些错误代码*/


	/***********************************
	*Type of Number codes from
	* GSM 03.40 Version 5.3.0 Section 9.1.2.5.
	* http://www.etsi.org/
	*/
	public static final byte GSM_ADDR_TON_UNKNOWN=          0x00;
	public static final byte GSM_ADDR_TON_INTERNATIONAL=    0x01;
	public static final byte GSM_ADDR_TON_NATIONAL=         0x02;
	public static final byte GSM_ADDR_TON_NETWORKSPECIFIC=  0x03;
	public static final byte GSM_ADDR_TON_SUBSCRIBER=       0x04;
	public static final byte GSM_ADDR_TON_ALPHANUMERIC=     0x05;      /* GSM TS 03.38 */
	public static final byte GSM_ADDR_TON_ABBREVIATED=      0x06;
	public static final byte GSM_ADDR_TON_EXTENSION=        0x07;      /* Reserved */

	/***********************************
	Numeric Plan Indicator (NPI)代码定义
	*/
	public static final byte GSM_ADDR_NPI_UNKNOWN=          0x00;
	public static final byte GSM_ADDR_NPI_E164=             0x01; /* "358503000009" */
	public static final byte GSM_ADDR_NPI_X121=             0x03; /* "244053000009" */
	public static final byte GSM_ADDR_NPI_TELEX=            0x04;
	public static final byte GSM_ADDR_NPI_E212=             0x06;
	public static final byte GSM_ADDR_NPI_NATIONAL=         0x08;
	public static final byte GSM_ADDR_NPI_PRIVATE=          0x09;
	public static final byte GSM_ADDR_NPI_ERMES=            0x0A; /* ETSI DE/PS 3 01-3 */
	public static final byte GSM_ADDR_NPI_EXTENSION=        0x0F; /* Reserved */


	/*****************************************************/
	//SMPP协议中的接口的版本号  (只定义了3.3和3.4)
	public static final byte SMPP_INTERFACE_33=              0x33;      /*表明网关采用的是SMPP V3.3*/
	public static final byte SMPP_INTERFACE_34=              0x34;      /*表明网关采用的是SMPP V3.4*/
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -