Some also support the SMPP protocol, which is usually used by advanced users. Here is an example. The account parameter specifies which account that the cost of the SMS text message should be deducted from. The password parameter specifies the password of the account. The destination parameter specifies the recipient's mobile phone number.

Author:Dougul Dasar
Language:English (Spanish)
Published (Last):14 September 2008
PDF File Size:2.3 Mb
ePub File Size:19.37 Mb
Price:Free* [*Free Regsitration Required]

Introduction to SMPP. SMPP can be used for the following applications:. Connecting, disconnection and connection keep alive. Submitting messages to a mobile phone.

Delivery of messages to the SMPP client. Ancillary Operations. Message query, cancel and replacement. This packet contains the sender and recipient address, message body and some optional parameters. When a messages has to be delivered to the client this packet is used MO. It contains information about the sender of the message and the message body. To query the state of a previously sent message, this command is used. You need a message reference to query a message.

Most provider require you to use delivery reports instead of querying the messages all the time. This packet is sent once in every x minutes to check if the connection is still alive.

If not, the connection is terminated. This packet is also used to keep dial-up connections alive for instance ISDN. The most used timeout for SMPP connections is one minute. Connection examples.

Sending Messages. Receiving Messages. SMPP optional parameters. Some commonly used TLV's are:. Used to encode large messages. This PDU improves performance, for instance: when you need to send a message containing characters you only have to send one packet instead of two.

This doubles the throughput. Segmentation And Reassembly. Error Name. Error Description. E S M E n o t a u t h o r i s e d t o u s e specified servicetype E S M E p r o h i b i t e d f r o m u s i n g specified operation Specified servicetype is unavailable Specified servicetype is denied Invalid data coding scheme Invalid source address subunit I n v a l i d d e s t i n a t i o n a d d r e s s subunit Insufficient credits to send.

TLV Parameters. These extra parameters were added to the SMPP protocol in version 3. TLV's are also called 'optional. The first two bytes are used to. Some providers are also. It is to be used by an implementation to allow easy diagnosis of problems. TLV Parameter Tag:. TLV Parameter Type:. This field indicates the number of repeated broadcasts requested by the Submitter.

This parameter can be included a number of times for multiple call-back addresses. This parameter controls the presentation indication and screening of the CallBackNumber at the mobile station. If this TLV is omitted, the default value is assumed. In the case that the receiving system e. MC does not support the indicated bearer type, it may treat this a failure and return a response PDU reporting a failure.

MC does not support the indicated network type, it may treat this a failure and return a response PDU reporting a failure. This parameter defines the telematic interworking to be used by the delivering system for the destination address.

MC does not support the indicated telematic interworking, it may treat this a failure and return a response PDU reporting a failure. The MC may use this setting for network resource optimisation. The network error code is technology specific. If the parameter is not present, the. MC may apply a default value. Delivery Receipt. This is the opaque MC message identifier that was returned in the.

It is returned in the bind response PDUs. Field Size. A reference assigned by the originating SME to the short message. Depending on the. There are two ways to verify the delivery of SMS messages.

Query the status of the message. When a message is send using the SMPP protocol, the provider returns a message reference. Using this. This is done by sending a. If the message reference is known by the provider, it responds with a.

This packet holds the status of the message. This can be one of the following values:. The message is scheduled for later sending. The message is enroute. The message was successfully delivered.

The SMSC was unable to deliver the message in a. For instance when the phone was turned off. The message was deleted. The SMS was unable to deliver the message. For instance, when the number does not exist. The SMS was accepted and will be send. Unknown error occured. The message was rejected.

The provider could have blocked phonenumbers in this range. The message was skipped. The disadvantage of this method is, that you have to poll once in a while to get the current message status. When a lot of messages are enroute for a couple of hours, this will cause heavy data traffic.

Most providers. Request delivery reports from the provider. The best way to check the status of each message sent, is to ask for delivery reports. This can be done by setting. This parameter can have one of the following values:. Do not send delivery reports. Always send delivery reports. Send delivery report in case of an error. Send delivery report only when message is delivered. By setting this value to '1', the provider will send a delivery report to the client every time the status of this.

You can set this value per message. This is the same packet as used to. If bit 2 of this byte is set 0x04 , it is a delivery report. To use delivery reports, you. This format is. Meaning The message reference of the message. Sub-ID, not used. Value '1' when the message has been delivered, if the message is still pending. Submission date and time. Current status of the message.


SMPP Tutorial

SMSC acts as middleman to store the message and route it. It has the following features:. We will be using Node. It then continues to execute the rest of its program.


Short Message Peer to Peer Protocol Specification v3.4

Introduction to SMPP. SMPP can be used for the following applications:. Connecting, disconnection and connection keep alive. Submitting messages to a mobile phone.


How to send an SMS in Node.js via SMPP Gateway

There are three versions of the SMPP protocol specification in use. The original public version of the specification is SMPP v3. This was updated in to SMPP v3. The final version was released in and is SMPP v5. SMPP 3.



Related Articles