Dynamic SMPP parameters via HTTP
While sending messages by using the HTTP SMS API (link) you can pass dynamically set SMPP parameter values by typing them into the URL Request. This guide gives information about how to send SMPP parameters dynamically with HTTP requests - note that this feature is only available in Ozeki NG SMS Gateway 4.2.5 or above.
You can read about dynamic SMPP parameter settings here: Dynamic SMPP parameters
You can read about HTTP SMS API here: HTTP SMS API
The below method can be used for sending messages with dynamically set source_addr_ton, source_addr_npi, dest_addr_ton, dest_addr_npi, data_coding and esm_class SMPP parameter values by typing the name and value pairs into the URL request. Have a look at the example.
Example URL Request
http://127.0.0.1:9501/api?action=sendmessage&username=admin&password=abc123&recipient=06203105366&messagetype=SMS:TEXT
&messagedata=Hello+World&source_addr_ton=3&source_addr_npi=2&dest_addr_ton=2&dest_addr_npi=2
By sending this request, Ozeki NG SMS Gateway will create the appropriate SMPP message with SMPP parameter values set in the request parameters.
By sending the message, these dynamic parameters will be passed to Ozeki NG SMS Gateway, and it will use them for the SMPP message's appropriate parameters. Note that you have to use decimal values in the request.
If you do not set a parameter dynamically Ozeki NG SMS Gateway will use the appropriate SMPP service connection's configured parameters (Figure 1).
If you have left it blank, default values will be used.
For more information please contact us at info@ozekisms.com.
More information
- HTTP SMS API - Overview
- HTTP SMS API - sendmessage method
- HTTP SMS API - receivemessage method
- HTTP SMS API - billing method
- HTTP SMS API - SMS service provider connection selection
- HTTP SMS API - Operate with single message
- How to query the addressbook in Ozeki NG SMS Gateway
- Operations with message folders in HTTP SMS API
- HTTP SMS API Examples
- User handling via HTTP API
- Service provider connection handling via HTTP API
- HTTP API for the Reporting function of Ozeki NG SMS Gateway
- Dynamic SMPP parameters via HTTP
- FAQ of the Ozeki NG SMS Gateway