Appendix "A4" - Message types - Ringtone

bio Introduction

Ringtones are little melodies and tunes created to give a unique sound to the GSM phone when the phone is ringing. Ringtones can be composed with an appropriate editor and they can be sent as SMS messages.

Support for operator logos in Ozeki Message Server 6

When a ringtone is sent as an SMS message it is represented as a bitstream. This bitstream can be pictured as a set of hexadecimal numbers. For example:

024A3A51D195CDD004001B20550590610560558550548540820849900000

The bit string contains the following sections:

00000010 <command-length> Number of command parts present
01001010 <ringing-tone-programming> Command part 1 (with filler bit)
0011101 <sound> Command part 2
001 <basic song type>
0100 <song title length> 4 characters (ISO-8859-1)
01110100 the first character T
01100101 the second character E
01110011 the third character S
01110100 the fourth character T
00000001 <song sequence length> 1 song pattern
000 <pattern header> pattern header ID
00 <pattern id> A-part
0000 <loop value> no loop
00001101 <pattern specifier> <length of the new pattern> 13 pattern instructions
100 <tempo instruction id>
10000 <beats per minute> 160 (i.e., length of 1/4 note = 0,38 sec.)
001 <note instruction id>
0101 <note value> note E
010 <note duration> � note
00 <note duration specifier> no special duration
001 <note instruction id>
0110 <note value> note F
010 <note duration> � note
00 <note duration specifier> no special duration
001 <note instruction id>
1000 <note instruction> note G
010 <note duration> � note
00 <note duration specifier> no special duration
001 <note instruction id>
0101 <note value> note E
100 <note duration> 1/16 note
00 <note duration specifier> no special duration
001 <note instruction id>
0101 <note value> note E
011 <note duration>1/8 note
00 <note duration specifier> no special duration
001 <note instruction id>
0101 <note value> note E
010 <note duration> � note
00 <note duration specifier> no special duration
001 <note instruction id>
0101 <note value> note E
001 <note duration> � note
00 <note duration specifier> no special duration
001 <note instruction id>
0101 <note value> note E
000 <note duration> full note
00 <note duration specifier> no special duration
010 <scale instruction id>
00 <note scale> Scale-1 (i.e., note A is 440 Hz)
001 <note instruction id>
0000 <note value> pause
010 <note duration> � note
00 <note duration specifier> no special duration
010 <scale instruction id>
01 <note scale> Scale-2 (i.e., note A is 880 Hz), default
001 <note instruction id>
1001 <note value> Gis ' i.e. As '
000 <note duration> full note
00 <note duration specifier> no special duration
0000000 filler bits
00000000 <command end> end of the ringing tone data


Sending a ringtone in SMS

To send a ringtone message with Ozeki Message Server 6, you need to specify a message type, that tells the software that the message body contains a ringtone. To send the above example, you would use the following message type: SMS:RINGTONE In this case, the message type is made up of two sections. The first section tells the message server that this is an SMS message. This way only the drivers supporting SMS will be considered to deliver the message. The second section is used by the driver to use the ringtone encoder. This encoder will create the protocol data unit (PDU) that will be sent as an SMS messages.

Example:

If you use the database plugin, to send and receive SMS messages in Ozeki Message Server 6, you can use the following SQL statement to send a ringtone message: insert into ozekimessageout (receiver,msgtype,msg,status) values ('+36205222245', 'SMS:RINGTONE','024A3A51D195CDD004001B20550590610560558550548540820849900000','send');

More information