How do I configure SMPP?

How do I configure SMPP?

The short message peer-to-peer protocol (SMPP) is a telecommunications industry protocol for exchanging SMS messages between SMS peer entities such as short message service centers. It is often used to allow third parties (for example, value-added service providers like news organizations) to submit messages, sometimes in bulk.

The protocol is based on pairs of request/response PDUs (protocol data units, or packets) exchanged over OSI layer 4 (TCP/IP session or X.25 SVC3) connections. PDUs are binary encoded for efficiency.

The most commonly used versions of SMPP are v3.3 (the most widely supported standard) and v3.4, which adds transceiver support (single connections that can send and receive messages). Data exchange can be synchronous, (each peer waits for a response for each PDU being sent) or asynchronous (messages are received and transmitted in independent threads with the use of buffers and timers). The latest version of SMPP is v5.0.

Configuring SMPP

To configure SMPP parameters, add an additional SMS configuration.

  1. Select Manage System > Notification Settings > SMS Channel.
  2. Click Add SMS channel.
    The Add SMS Channel page appears.
  3. Type the key name and appropriate value from the table below, or as supplied by your SMS provider.

SMPP Keys

Use these SMPP keys when you configure WatchGuard Administrator.

KeyUsed atPossible ValuesDefault ValueDescription
smpp-versionBind51 – 3.3
52 – 3.4
51This parameter is used to indicate the version of the SMPP protocol. The following interface version values are defined, 0-51 (0x00-0x33) Indicates that the EMSE supports version 3.3 or earlier of the SMPP protocol. 52 (0x34) Indicates that the ESME is supporting SMPP version 3.4
smpp-timeoutConnectInteger10000Timeout used when trying to communicate with SMPP server. Defined in milliseconds.
smpp-bind-system-typeBindString The system_type parameter is used to categorize the type of ESME that is binding to the SMSC. Examples include “VMS” (voice mail system) and “OTA” (over-the-air activation system). Specification of the system_type is optional - some SMSCs may not require ESMEs to provide this detail. In this case, the ESME can set the system_type to NULL.
smpp-bind-addr-tonBind0 – Unknown
1 – International
2 – National
3 – Network Specific
4 – Subscriber Number
5 – Alphanumeric
6 - Abbreviated
0Indicates Type of Number of the ESME address. If not known set to Unknown.
smpp-bind-addr-npiBind0 – Unknown
1 – ISDN
3 – Data
4 – Telex
6 – Land Mobile
8 – National
9 – Private
10 – ERMES
14 – Internet
18 – WAP Client Id
0Numbering Plan Indicator for ESME address. If not known set to Unknown.
smpp-submit-service-typeSubmitString The service_type parameter can be used to indicate the SMS Application service associated with the message. “” (NULL) Default, “CMT” Cellular Messaging, “CPT” Cellular Paging, “VMN” Voice Mail Notification, “VMA” Voice Mail Alerting, “WAP” Wireless Application Protocol, “USSD” Unstructured Supplementary Services Data
smpp-submit-dest-addr-tonSubmit0 – Unknown
1 – International
2 – National
3 – Network Specific
4 – Subscriber Number
5 – Alphanumeric
6 - Abbreviated
1Destination Address TON. Type of Number for destination.
smpp-submit-dest-addr-npiSubmit0 – Unknown
1 – ISDN
3 – Data
4 – Telex
6 – Land Mobile
8 – National
9 – Private
10 – ERMES
14 – Internet
18 – WAP Client Id
0Destination Address NPI. Numbering Plan Indicator for destination.
smpp-submit-esm-classSubmitInteger0The esm_class parameter is used to indicate special message attributes associated with the short message.
smpp-submit-protocol-idSubmitInteger0GSM: Set according to GSM 03.40 [GSM 03.40], ANSI-136 (TDMA): For mobile terminated messages, this field is not used and is therefore ignored by the SMSC. For ANSI-136 mobile originated messages, the SMSC should set this value to NULL. IS-95 (CDMA): For mobile terminated messages, this field is not used and is therefore ignored by the SMSC. For IS-95 mobile originated messages, the SMSC should set this value to NULL.
smpp-submit-source-addr-tonSubmit0 – Unknown
1 – International
2 – National
3 – Network Specific
4 – Subscriber Number
5 – Alphanumeric
6 - Abbreviated
0Source Address TON. Type of Number for source address. If not known, set to 0 (Unknown).
smpp-submit-source-addr-npiSubmit0 – Unknown
1 – ISDN
3 – Data
4 – Telex
6 – Land Mobile
8 – National
9 – Private
10 – ERMES
14 – Internet
18 – WAP Client Id
0Source Address NPI. Numbering Plan Indicator for source address. If not known, set to 0 (Unknown).
smpp-submit-source-addrSubmit  Specifies the address of SME which originated this message. An ESME which is implemented as a single SME address, may set this field to NULL to allow the SMSC to default the source address of the submitted message.
smpp-submit-data-codingSubmitInteger3Encoding of data according the SMPP 3.4 specification, section 5.2.19. Example data encodings are “SMSC Default Alphabet” (0), IA5/ASCII (1), Octet unspecified (2), Latin 1/ISO-8859-1 (3), Cyrllic/ISO-8859-5 (6), Latin/Hebrew/ISO-8859-8 (7).
smpp-submit-data-charsetSubmitStringISO8859-1Character set to use in conjunction with Data Coding when converting from Unicode to output format.

Error Codes

If you receive an SMPP error, you can use this information to help you determine the source of the error.

ErrorError CodeDescription
ESME_ROK0x00000000No Error
ESME_RINVMSGLEN0x00000001Message Length is invalid
ESME_RINVCMDLEN0x00000002Command Length is invalid
ESME_RINVCMDID0x00000003Invalid Command ID
ESME_RINVBNDSTS0x00000004Incorrect BIND Status for given command
ESME_RALYBND0x00000005ESME Already in Bound State
ESME_RINVPRTFLG0x00000006Invalid Priority Flag
ESME_RINVREGDLVFLG0x00000007Invalid Registered Delivery Flag
ESME_RSYSERR0x00000008System Error
Reserved0x00000009Reserved
ESME_RINVSRCADR0x0000000AInvalid Source Address
ESME_RINVDSTADR0x0000000BInvalid Dest Addr
ESME_RINVMSGID0x0000000CMessage ID is invalid
ESME_RBINDFAIL0x0000000DBind Failed
ESME_RINVPASWD0x0000000EInvalid Password
ESME_RINVSYSID0x0000000FInvalid System ID
Reserved0x00000010Reserved
ESME_RCANCELFAIL0x00000011Cancel SM Failed
Reserved0x00000012Reserved
ESME_RREPLACEFAIL0x00000013Replace SM Failed
ESME_RMSGQFUL0x00000014Message Queue Full
ESME_RINVSERTYP0x00000015Invalid Service Type
Reserved0x00000016-0x00000032Reserved
ESME_RINVNUMDESTS0x00000033Invalid number of destinations
ESME_RINVDLNAME0x00000034Invalid Distribution List name
Reserved0x00000035-0x0000003FReserved
ESME_RINVDESTFLAG0x00000040Destination flag is invalid (submit_multi)
Reserved0x00000041Reserved
ESME_RINVSUBREP0x00000042Invalid ‘submit with replace’ request (i.e. submit_sm with replace_if_present_flag set)
ESME_RINVESMCLASS0x00000043Invalid esm_class field data
ESME_RCNTSUBDL0x00000044Cannot Submit to Distribution List
ESME_RSUBMITFAIL0x00000045submit_sm or submit_multi failed
Reserved0x00000046-0x00000047Reserved
ESME_RINVSRCTON0x00000048Invalid Source address TON
ESME_RINVSRCNPI0x00000049Invalid Source address NPI
ESME_RINVDSTTON0x00000050Invalid Destination address TON
Error Error CodeDescription
ESME_RINVDSTNPI 0x00000051Invalid Destination address NPI
Reserved0x00000052Reserved
ESME_RINVSYSTYP0x00000053Invalid system_type field
ESME_RINVREPFLAG0x00000054Invalid replace_if_present flag
ESME_RINVNUMMSGS0x00000055Invalid number of messages
Reserved0x00000056-0x00000057Reserved
ESME_RTHROTTLED0x00000058Throttling error (ESME has exceeded allowed message limits)
Reserved0x00000059-0x00000060Reserved
ESME_RINVSCHED0x00000061Invalid Scheduled Delivery Time
ESME_RINVEXPIRY0x00000062Invalid message validity period (Expiry time)
ESME_RINVDFTMSGID0x00000063Predefined Message Invalid or Not Found
ESME_RX_T_APPN0x00000064ESME Receiver Temporary App Error Code
ESME_RX_P_APPN0x00000065ESME Receiver Permanent App Error Code
ESME_RX_R_APPN0x00000066ESME Receiver Reject Message Error Code
ESME_RQUERYFAIL0x00000067query_sm request failed
Reserved0x00000068-0x000000BFReserved
ESME_RINVOPTPARSTREAM0x000000C0Error in the optional part of the PDU Body.
ESME_ROPTPARNOTALLWD0x000000C1Optional Parameter not allowed
ESME_RINVPARLEN0x000000C2Invalid Parameter Length.
ESME_RMISSINGOPTPARAM0x000000C3Expected Optional Parameter missing
ESME_RINVOPTPARAMVAL0x000000C4Invalid Optional Parameter Value
Reserved0x000000C5-0x000000FDReserved
ESME_RDELIVERYFAILURE0x000000FEDelivery Failure (used for data_sm_resp)
ESME_RUNKNOWNERR0x000000FFUnknown Error
Reserved for SMPP extension0x00000100-0x000003FFReserved for SMPP extension
Reserved for SMSC vendor specific errors0x00000400-0x000004FFReserved for SMSC vendor specific errors
Reserved0x00000500-0xFFFFFFFFReserved

Troubleshooting

To see what packets are sent to and received from the SMPP gateway, select Monitor System > Logging > Manage Global Logging Settings and select Enable debug logging. Search the debug log for SMPP.

If an error occurs when communicating, the System log may echo something like: SMPP command failed with error code 0xd.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值