Ask / Submit
9

Workaround for viewing MMS messages

asked 2014-03-18 20:53:33 +0300

akhbit gravatar image

updated 2014-03-18 21:07:57 +0300

ssahla gravatar image

I created a simple scripted workaround to view incoming mms messages. This script is created for Finnish DNA operator, but should be easy to modify it to any other operator that sends credentials trough sms, serves a web-page for viewing mms and passes arguments as GET.

  1. The script queries the latest sms arrived from a predetermined number (DNA 14000), Filters out the MMS identification code based on it's location in the message.
  2. Parses the MMS identification code and user phonenumber to the browser as part of the URL
  3. Opens the browser

/home/nemo/checkmms.sh (create as nemo, remember to chmod +x)

#!/bin/sh

#CHANGE YOUR NUMBER       
tel=044XXXXXX
#substr(fieldName,position -fromEnd,stringLenght)
#14000 DNA number where the notification sms comes from
mmsid=$(sqlite3 /home/nemo/.local/share/commhistory/commhistory.db 'select substr(freeText,-29,13) from events where remoteuid="14000" order by id desc limit 1;')

#alter the URL according to your operators page just add $mmsid and $tel to appropriate places    
url=https://www4.dna.fi/mms/Sivut/showmms.aspx?MessageId=$mmsid&TelephoneNo=$tel

#open browser
sailfish-browser $url

/usr/share/applications/checkmms.desktop (needs devel-su)

[Desktop Entry]
Type=Application
Name=Check MMS
Icon=icon-l-terminal
Exec=/home/nemo/checkmms.sh
Comment=Terminal application

It's ugly and probably violates all possible best practices, but it works for me. Might also serve as a starting point for a real app...

Hopefully it's helpful to someone...

edit retag flag offensive close delete

Comments

1

Looks like MMS is coming with the next update: http://t.co/M5tYsEXlQe

Neo ( 2014-03-18 23:28:58 +0300 )edit
5

Good thing I managed to do this before it gets obsolete =)

akhbit ( 2014-03-18 23:31:59 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-04-06 14:21:42 +0300

slava gravatar image

MMS is coming in update 5

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-03-18 20:53:33 +0300

Seen: 515 times

Last updated: Apr 06 '14