How to send a binary sms message
To send a binary SMS message we recommend you to use the SMS:BINARY:XML message format. This message format allows you to define the DCS, PID, UDH and UD values of the message.
To send the message you should use the following message type:
Message type: SMS:BINARY:XML
To send the message you should use the XML format defined in the MMS XML section of the Ozeki Mobile Message Type Specification.
Message data: <sms> <pid>00</pid> <dcs>F5</dcs> <udh>0605040B8423F0</udh> <ud>EA0601AE02056A0045C60C037761702E6F7A656B692E6875000801034F7A656B69000101</ud> </sms>
To send this message in an HTTP request, you should urlencode the message data and use the following HTTP URL:
http://127.0.0.1:9501/api?action=sendmessage&username=httpserverusr1&password=pass1& recipient=06203105366&messagetype=SMS:BINARY:XML&messagedata=%3Csms%3E%0D%0A++++%3Cpid%3E00%3C%2Fpid%3E%0D%0 A++++%3Cdcs%3EF5%3C%2Fdcs%3E%0D%0A++++%3Cudh%3E0605040B8423F0%3C%2Fudh%3E%0D%0A++++%3 Cud%3EEA0601AE02056A0045C60C037761702E6F7A656B692E6875000801034F7A656B69000101%3C%2Fud%3E%0D%0A%3C%2Fsms%3E
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