MMS TechnologyOzeki Message Server 6 can send and receive MMS messages with one or more GSM modems attached to your PC.
The Multimedia Messaging Service (MMS) makes it possible to send pictures, audio and text messages using mobile phones in the cellular mobile telephone network. This service is provided by almost all GSM service providers giving you the opportunity to build new business models based on this technology.
Software developers can use Ozeki Message Server 6 to add MMS functionality to their applications in a matter of minutes. This chapter gives an example on how this can be done.
To enable your application to send and receive MMS messages you need a standard PC, a mobile phone with MMS subscription and a data cable to connect the phone to your PC. The recommended PC configuration is Intel Pentium Single of Dual core, min. 2 Ghz CPU (or equivalent AMD CPUs), 120 MB free hard disk space, 1024 MB of RAM. The mobile phone attached to your PC must have GPRS support . The data cable can be a USB cable or a standard RS232 cable. The MMS subsucription can be purchased at your local GSM service provider, at the same shop you have purchased the SIM card.
To create a solution for receiving MMS messages, you must understand how this technology works. In Figure 1. you can see that when your device receives an MMS message it takes two steps. First an SMS messages is received, that is called the MMS indication message. This SMS contains the URL or the MMS message in the MMSC. The MMSC is the message storage facility operated by the GSM service provider. Once this MMS indication SMS is received, your phone opens a GPRS connection and downloads the message.
Figure 1 - Receiving MMS on a PCTo make this work, you need to configure a GPRS link in the GSM modem configuration form in Ozeki Message Server 6. To do this please open, the Ozeki Server Manager, select the GSM Modem 1 configuration option from the drivers menu and open the Message handling tab. In the Message handling tab click on the MMS setting button and enter the GPRS connection information (Figure 2).
Figure 2. - GPRS and MMS settings form
Once the GPRS connection information is entered, you are ready to receive MMS messages. You have to connect your "GSM Modem 1" driver in Ozeki Message Server 6 and wait for incoming MMS indication SMS messages. Once you receive such an SMS, Ozeki Message Server 6 will automatically set up a GPRS link and download the MMS message from the MMSC. During the download a unique message ID will be assigned to the message and when the download completes a new entry will be recorded in the Inbox (Figure 3).
Figure 3. - Incoming MMS message in the inbox
It is imporatnat to know that incoming MMS message are made up from individual files, such as JPG and GIF picutres, WAV files and TXT content. These files are called attachments and are saved to a directory identified by the message ID. The entry in your inbox contains the message id and a list of attachments you can find in the download directory. The download directory is located at C:\Program Files\Ozeki\Ozeki Message Server\Drivers\GSM Modem 1\MMS\ in the default configuration (Figure 4).
Figure 4. - Download directory for Incoming MMS messages.
Sending MMS messages
Sending MMS messages is more simple. In this case a content upload is performed by Ozeki Message Server 6 (Figure 5). The GPRS and MMS settings configured for incoming messages apply to sending as well. To send a message all you have to do is to select the "MMS:SMIL" or "MMS:TEXT" message type in the message composer window and enter your message in the appropriate format. For example you would enter "Hello, this is my first message [MMSID=KAFZIAODRS; ATTACHMENTS=layout.smil;mypic.jpg;]" If you would like to send a message containing mypic.jpg saved in the C:\Program Files\Ozeki\Ozeki Message Server\Drivers\GSM Modem 1\MMS\KAFZIAODRS\ directory. The text in this message will be the subject of the MMS and the layout.smil attachment file will describe the presentation.
Figure 5. - Sending MMS messages