SMPP Platform Documentation: Support
SMPP Platform Documentation: Support
SUPPORT:
For support related issues please logon to the support system at http://www.aql.com/account/aqs_index.php and raise a new ticket.
Contact us
If you have a sales related question please call us on 08707 449227 08707 449228 (fax) If you have any technical questions regarding SMPP please raise a support ticket.
Client to aql Bind Commands BIND_TRANSMITTER BIND_RECEIVER BIND_TRANSCEIVER Other Commands ENQUIRE_LINK SUBMIT_SM QUERY_SM UNBIND DELIVER_SM_RESP
aql to Client Bind Commands BIND_TRANSMITTER_RESP BIND_RECEIVER_RESP BIND_TRANSCEIVER_RESP Commands DELIVER_SM ENQUIRE_LINK ENQUIRE_LINK_RESP SUBMIT_SM_RESP QUERY_SM_RESP UNBIND_RESP GENERIC_NACK
Binding to aql
There are 2 options available when binding to aql. You can either bind using the transmitter and receiver pair from SMPP v3.3 or bind using the transceiver mode new to SMPP v3.4 When the SMPP account is set up for you, you will be given a username (system_id), password and a system_type value to connect with.
IMPORTANT: You can only connect to aql via certain IP addresses that you have registered. If you wish to connect from multiple IP addresses, please raise a support ticket via our support system (see bottom of page 1)
Use the system_type parameter that is given to you by aql See explanation of source_addr_ton and source_addr_npi at end of table See explanation of source_addr_ton and source_addr_npi at end of table The originator to be used for this message. If left blank, the default originator on your account will be used. Either 16 digits (in international format) for a mobile number or 11 alphanumeric characters for text. Must be 0 (zero). This is auto-detect mode Must be 0 (zero). This is auto-detect mode The destination number in international format (e.g 447911111111). See explanation of esm_class and data_coding at end of table Not supported, use any value in accordance with SMPP Specification Not supported, use any value in accordance with SMPP Specification If left blank the message will be sent immediately. To send message at a different time, set the time as defined in the SMPP specification. Not supported, use any value in accordance with SMPP Specification If a delivery report is required set to 1 otherwise set to 0 (zero) Not supported, use any value in accordance with SMPP Specification See explanation of esm_class and data_coding at end of table Not supported, use any value in accordance with SMPP Specification Length in octets of the short_message parameter The short message itself as defined by the SMPP specification.
NOTE: Optional parameters are not required by aql and are not supported.
data_coding 00010001 (mclass 1) or 00000000 (default mode) 00010000 (mclass 0) 00000100 (8bit binary data)
The message id that was originally sent back in the SUBMIT_SM_RESP pdu Must be 0 (zero). This is auto-detect mode Must be 0 (zero). This is auto-detect mode Not used. Set to NULL
Delivery Responses
If the register_delivery parameter is set to 1 in the original SUBMIT_SM pdu then a DELIVER_SM response will be sent back to you when the message has reached a final state. This could take anywhere between seconds and hours. Some cases could take even longer. The following table shows a breakdown of the parameters that are sent in a DELIVER_SM and how to interpret them when received from aql.
Parameter command_length command_id command_status sequence_number service_type source_addr_ton source_addr_npi source_addr dest_addr_ton dest_addr_npi destination_addr esm_class protocol_id priority_flag schedule_delivery_time validity_period registered_delivery replace_if_present_flag data_coding sm_default_msg_id sm_length short_message
The system_type value that the connection that the message was submitted with is echoed in this parameter Will always be 0 (zero). Will always be 0 (zero). This is the mobile number that the original message was sent to Will always be 0 (zero). Will always be 0 (zero). This is set to the originator of the original message. Always set to 4 (00000100) Not used, will always be 0 (zero). Not used, will always be 0 (zero). Always set to NULL Always set to NULL Always set to 0 Always set to 0 Always set to 0 Always set to 0 Length in octets of the short_message parameter The short message itself as defined by the SMPP specification.
The short message for a delivery receipt is a string and will look like the following:
id:IIIIIIIIII sub:SSS dlvrd:DDD submit date:YYMMDDhhmm done date:YYMMDDhhmm stat:DDDDDDD err:E Text: . . . . . . . . .
The fields in the delivery receipt are explained in the following table: Field id sub dlvrd submit date done date stat err text Size 10 (max) 3 (max) 3 10 10 7 3 20 Type NULL Terminated NULL Terminated NULL Terminated NULL Terminated NULL Terminated NULL Terminated NULL Terminated String without NULL termination Description id supplied by aql in the original SUBMIT_SM pdu Always 000 Always 000 Date + time submitted. See SMPP Specification for the format Date + time delivered. See SMPP Specification for the format Final status of the message. See table below Associated error code. See table below Will always contain the text Not available (without quotes)
The stat parameter contains the status of the message. The values it can take along with associated error codes are described below: stat value DELIVRD UNDELIV UNKNOWN err value 000 101 102 Description The message has been delivered The message is undeliverable The message is in a final invalid state. It is unknown if the message has been delivered.
In the near future we will be adding additional status codes. This will allows us to pass along more detailed information. As with all SMPP communications, the aql servers expect a DELIVER_SM_RESP pdu in response to a delivery report.
Additional Notes
You will require an SMPP client to send messages via the aql SMPP server. The following section may prove useful in this regard. There is an excellent open source SMPP client for Linux available at http://www.kannel.org. This provides functionality above and beyond what is required to send messages via aql. It is fairly complex to configure but it is extremely reliable and worth considering. There is a small SMPP client written in PHP located at: http://www.phpclasses.org/browse/package/1373.html
If you would like to develop your own SMPP client then there is a Java API available to download. This can be found at: http://www.logicacmg.com/wirelessnetworks http://opensmpp.logica.com/ https://sourceforge.net/projects/smstools/ An equivalent Perl API is available at: http://search.cpan.org/author/SAMPO/Net-SMPP-1.03/SMPP.pm
SMPP Specification
If you require the SMPP v3.4 specification, this can be downloaded from the following site: http://www.smpp.org/doc/public/index.html If you need further information relating to SMPP, a good starting point is: http://www.smpp.org