maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Brainstorm (https://talk.maemo.org/forumdisplay.php?f=47)
-   -   [In development] Brainstorm: MMS Support (https://talk.maemo.org/showthread.php?t=32129)

frals 2010-01-02 19:39

Re: [Under consideration] Brainstorm: MMS Support
 
So yeah, some source code... http://irc.frals.se/maemo/fmms/fmms.zip

NOTE: THIS IS A MORE OF A PROOF OF CONCEPT THEN ANYTHING ELSE, IT NEEDS _A LOT_ OF POLISH BEFORE IT'S READY

also, it doesnt send confirmation/anything so whoever sends you the message wont get a delivery report etc.. basically it breaks the standard in most ways atm

with that said, feel free to try it out, theres a (very limited) readme in there... and uh, feel free to catch me on irc/here if you got any questions/comments

a big thanks to the kind Nokian who developed wappushd and shared the dbus interface with me as well as helping me get it all sorted

tomaszf 2010-01-02 20:34

Re: [Under consideration] Brainstorm: MMS Support
 
First thoughts:

1) N900 is having hard times with your name mentioned in first lines of a source files :) Errors about encodings etc. I had to remove special chars.

2) Add info about python-conic dependency to README.

tomaszf 2010-01-02 21:07

Re: [Under consideration] Brainstorm: MMS Support
 
OK, I followed instructions, but it seems that push messages are not saved to my N900. Here's what I get:

[DEBUG] handle_dbus_message: incoming SMS push.
[DEBUG] handle_push: registered listener for `x-wap-application:mms.ua' is at `se.frals.mms//se/frals/mms'

No files in mms/INCOMING after that.

After manually creating .fmms/push I was able to run GUI, but the list is empty.

Any thoughts? :)

frals 2010-01-02 21:27

Re: [Under consideration] Brainstorm: MMS Support
 
kill service.py if its running then run it in a terminal (python service.py) when someone sends you an MMS, it should print some debugging info to the terminal


edit: do you get the notification "Incoming SMS PUSH"?


edit2: basically, the mms/INCOMING file is the last data that the dbus-service caught, and after its been parsed in wappushhandler it saves it to .fmms/push/[TRANSACTION_ID]

tomaszf 2010-01-02 22:04

Re: [Under consideration] Brainstorm: MMS Support
 
After starting manually service.py I started getting INCOMING files.

Ok, I figured it out.
After changing line 92 in wappushandler.py:

file = open("/home/user/.fmms/push/" + transaction, 'w')

to:

myfile = open("/home/user/.fmms/push/" + str(transaction), 'w')

it works :) Push SMSes are saved now.

tomaszf 2010-01-02 22:54

Re: [Under consideration] Brainstorm: MMS Support
 
File gui_browser.py, lines 191 - 192. Something wrong here:
Code:

sndr = list[1]
url = list[2]

Should be
Code:

url=list[1]
.

Probably I received a mms :) Not sure yet, because I sent to myself multiple blank mmses. I will verify it soon.

tomaszf 2010-01-02 23:53

Re: [Under consideration] Brainstorm: MMS Support
 
Frails, good work. I'm able to receive MMSes.
Here's the proof :)

http://img502.imageshack.us/img502/1...mentbiqr5u.png

Message was sent from Nokia N80 (network operator: Play, PL) to N900 (Plus GMS, PL).

frals 2010-01-03 11:01

Re: [Under consideration] Brainstorm: MMS Support
 
what fun is receiving if you cant send?

http://irc.frals.se/maemo/fmms/send.py

change line 60 to the proxy you use and it *should work* :)

note: you have to be connected to the correct apn when running this script

bsving 2010-01-03 11:29

Re: [Under consideration] Brainstorm: MMS Support
 
Quote:

Originally Posted by tomaszf (Post 450530)
Frails, good work. I'm able to receive MMSes.
Here's the proof :)

Proof? It is impossible to see what yor image is about, other than some (unreadable) text on the display :confused:

qwerty12 2010-01-03 11:33

Re: [Under consideration] Brainstorm: MMS Support
 
Quote:

Originally Posted by bsving (Post 451015)
Proof? It is impossible to see what yor image is about, other than some (unreadable) text on the display :confused:

It clearly says: "Showing MMS"...

It may be an elaborate and very carefully planned hoax (:rolleyes:), but I'd think not considering anyone is free to try out frals' program and the fact that the source is available...


All times are GMT. The time now is 05:46.

vBulletin® Version 3.8.8