View previous topic :: View next topic |
Author |
Message |
jonnydeath Guest
|
Posted: Tue Nov 30, 2004 2:47 pm Post subject: MMS Diary additions |
|
|
Hello,
I was able to set up my LG VX6100 verizon phone to use mms diary.
http://www.howardforums.com/showthread.php?s=&threadid=507467
I am having trouble adding a hook to convert the sound file (a .3g2) to a wave ( i have the conversion program). The problem is I don't know what content type/extension it is sent as to create a hook. It is displayed as a .bin in mms diary, so I tried that as well as .3g2. Is there a way to do a dump to see what is actually in the message? The .smil and the info.txt just says its audio file, no extension:
<smil><head><layout><root-layout width="128px" height="115px" /><region id="Imag
e" width="128px" height="102px" top="37px" left="0px" fit="hidden" /><region id=
"Text" width="128px" height="13px" top="24px" left="0px" fit="hidden" /></layout
></head><body><par dur="0ms" ><audio src="Nov 27,8:20 pm" /></par></body></smil>
also, it would be great to have a hook that would email this out to the send to address if it is different than the sender number. |
|
Back to top |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Fri Dec 03, 2004 1:53 pm Post subject: |
|
|
First of all. The extension the phone sends is not important. The extension is simply to tell MMS Diary what it should add on the file name. So add the extension .3g2 if that's what these files use most of the time.
As for the media type you will need to try and find out someway or the other what it is. Either search on the internet (mime type 3g2 and so on) or write the whole data you receive from the phone to a file (edit send.php and do an fwrite of the whole HTTP_RAW_POST_DATA to a file). Then look through the file for something like audio/3g2 or something like that. |
|
Back to top |
|
|
jonnydeath Guest
|
Posted: Fri Dec 03, 2004 3:34 pm Post subject: |
|
|
thank for the responce. I found it:
audio/vnd.qcelp
It was really a Qualcom Pure Voice file.
Now I am just trying to decode the $md->to field so I can use MMS diary to forward messages to emails. It seems when I try to send an MMS to multiple email address the adresses $md->to field returns one long word. I need to figure out if this is my phone's doing or what.
Also if the email address is bogus I get $md->to = XXX/TYPE=PLMN where XXX is the bogus email address.
I will try writing out the entire HTTP_RAW_POST_DATA and see what I can find.
thanks for this nice piece of code |
|
Back to top |
|
|
v710user
Joined: 02 Mar 2005 Posts: 3
|
Posted: Wed Mar 02, 2005 7:23 pm Post subject: |
|
|
let us know if you figure out how to send MMS via email. I cannot get this. |
|
Back to top |
|
|
|