Peffisaur
=========

What is MMS? 
------------
MMS stands for Multimedia Messaging Service and is a service for
mobile phones to enable the user to send images, sounds, text messages
and just about any other mime-type there is given that the mobile
phone supports it. It is the successor of SMS. Many phones today come
with digital cameras making it more and more attractive to take photos
and send to friends from your phone. 

MMS is sent from the phone by using standard Internet protocols. When
you hit send on your phone, after composing your message, it
communicates with a WAP gateway which translates the WAP POST into a
HTTP POST towards a server. That server is often called an MMS
Proxy-Relay, MMC or MMS Server. The MMS Proxy-Relay is the interface
and router in the system and MMS Server is generally meaning the
server where you store MMS:es and can access them. The MMS Proxy-Relay
and MMS Server is often combined into the same server and companies
sometimes name this combination MMC, MMSC or something similar. The
MMC in turn receives the message and stores it in its database. Then
it decodes the message to find its destination address. The
destination can be an email address or a phone number. In case of an
email address the message is just encoded as an email with attachments
and sent using SMTP over the Internet. If the destination is a phone
number however it is handled differently. Then the MMC transmits a
notification to the receiving phone with the help of the WAP
gateway. This can be done in two ways - over SMS or over IP - but the
common way to do it is over SMS. So the WAP gateway now transmits an
SMS (or two) telling the receiving phone that it has an MMS to
get. The receiving phone downloads it from the MMC using WAP GET which
is translated to a regular HTTP GET by the WAP GW before it reaches
the MMC.


What is this?  
------------- 
Peffisaur is a way to post messages to a web page by just using your
MMS-enabled mobile phone. It is the successor of a simpler hack called
MMS Diary. The big difference between the two is the multi-user
features of Peffisaur and more fluff in the web interface. 

Entries in the diary can contain text, images and sound (such as voice
recordings or a music file). Messages are posted in a bit of an
unorthadox way though by (ab)using the MMS functionality in your
phone. The script send.php, included in this package, pretends to be
an MMS Proxy-Relay. What you need to do to use this is to set the URL
to that script (on whatever host you install it) in your phone. So say
for instance that you install the script in
http://yourdomain.com/diary/send.php. Then you would insert that
address as message server (it is called "Message Server" on the T68 -
see INSTALL for help on setting up the phone) in your phone where you
now have the operator's MMS Proxy-Relay. Of course, by doing so you
cannot send "real" MMS:es anymore (till you change it back).

Another option to upload images and text is to use the email interface
of Peffisaur. With that you can keep your operator's settings and just
send the messages to an email address instead. Then your operator's
MMSC will convert the MMS to an email and relay it to Peffisaur. This
alternative can cost money though if the operator wants it to. 

Then all you need to do when you want to make a diary entry is to
compose a message, with images, texts and sounds, and send it away and
it will appear on the web page. The subject row in the MMS is
translated to the header on the web page so write something sensible
there. The to-address is not necessary since it won't be transmitted
to anyone of course, but most phones complain if you don't write
anything there so you need to write at least something there.


So what's the point? 
--------------------
Well? Do you always have to have a point for doing something? I needed
something to send messages back to family and friends when I was on
holiday and this was a fun way of doing it. There are of course other
solutions to this, email for instance since many phones now supports
emails with attachments, but this was fun and composing an MMS with
several images and texts was easier on my phone (Ericsson T68) than to
write an email so this was best for me. 


Any limitations?
----------------
Yes, the size of MMS:es sent from a phone is limited by the phone
software and memory capabilities. Several phones cannot transmit
larger MMS:es than 30KB so it definitely limits the size of images you
send. 


Copying
-------
This package is released under the GNU General Public License -
GPL. See the file COPYING. 


Installing
----------
See file INSTALL


What phones does it work with?
------------------------------
Currently it has only been tested with the following phones:


Phone			Tester		  Comments/issues

Ericsson T68, T310  	Me			
Ericsson P800 		Anonymous	  
Nokia 7650  		Welby McRoberts	  Nokia phones always send
					  text encoded in utf-16 no
					  matter what your language
					  settings are. This caused problems
					  in early releases. A quick
					  fix for this is now
					  implemented. The UTF-16
					  support is far from complete though
Nokia 7250		Nicholas McClellan 
Sagem MyX-5m		Marius Cristian

Please let me know if it works for other phones as well. 


Security concerns
-----------------
Please observe that there is NO access control. Anyone can post to
your site as long as they can encode an MMS message. Some simple
password mechanism is implemented but it is no real security. 


It does not work for me with my operator. Can they have blocked me?
-------------------------------------------------------------------
Some operators have a very weird view of the mobile internet. They
only want to let their users use their parts - parts that give income
to the operator. Operator's worst fear is to become a stupid bit-pipe
and therefore some have choosen the path to restrict access to the
Internet. 

This is done so that you, when connecting to Internet, get a local
address (say 10.x.y.x something). The only way you can then access the
Internet is through the wap gw the operator provides you with since
NAT-ing seems to be through that gw as well. So far so good. That's
only sane since the number of addresses are limited so NAT-ing should
be no problem. But what they now also do is to block traffic to say,
other MMC:s than their own. So they don't let you run your own MMC and
you have to use the one they have provided you with, where you have to
pay for whatever they decide an MMS costs. Vodafone is known to use
this technique but if you have problems using this application then
perhaps your operator does too. So what can you do? If you can access
the Internet from your phone then perhaps using a gw on your own would
let you do what you want on the net. But if you cannot then there is
not much to do since your internet access is linked to your
operator. Some operators can provide a GPRS APN for PC access and
those are usually unrestricted. If your operator has one you can ask
for the information around that and setup a wap-gw on your own
(http://www.kannel.org). Another option is if you use GSM instead of
GPRS (MMS works just fine over GSM as well). Then you can always use
any ISP with the good old dial-up modem pools and connect using that
instead. Then you will be free. Apart from this, if it all fails for
you, the only thing you can do is to change to an operator which
believes in a free Internet.

If all fails you will have to stick to the email interface which
should work with most phones and operators.


Where can I read about the protocols and formats regarding MMS?
---------------------------------------------------------------
All the information you'll need can be found at http://www.wapforum.org


How do I contact the author
---------------------------
See http://hellkvist.org/about/


Have fun and happy hacking!

Stefan Hellkvist