Problem on SENDING MMS.

Problem on SENDING MMS. SearchSearch
Author Message
Winteam
Posted on Wednesday, July 16, 2003 - 12:03 pm:   

}when I using WSP_POST to send a MMS to the operator's mmsc (by GPRS),I get a 400 error message of "CAN'T FIND MSISDN",but when I using a GD88 with my SIMCard, I can send and get MM. And my WSP_GET is normal.

The WSP_POST PACKET:
0e 00 01 12 60 1a 05 68 ....`..h
74 74 70 3a 2f 2f 6d 6d ttp://mm
73 63 2e 6d 6f 6e 74 65 sc.monte
72 6e 65 74 2e 63 6f 6d rnet.com
00 be 8d 02 03 a9 8c 80 ........
98 64 6c 73 61 66 00 8d .dlsaf..
90 89 17 80 2b 38 36 31 ....+861
33 35 30 39 36 39 36 36 35096966
38 38 2f 54 59 50 45 3d 88/TYPE=
50 4c 4d 4e 00 97 2b 38 PLMN..+8
36 31 33 35 30 39 36 39 61350969
36 36 38 38 2f 54 59 50 6688/TYP
45 3d 50 4c 4d 4e 00 82 E=PLMN..
73 69 6d 6f 6e 77 65 62 simonweb
6f 6f 6b 40 74 6f 6d 2e ook@tom.
63 6f 6d 00 81 73 69 6d com..sim
6f 6e 77 65 62 6f 6f 6b onwebook
40 31 36 33 2e 63 6f 6d @163.com
00 96 4d 79 20 66 69 72 ..My fir
73 74 20 54 65 78 74 20 st Text
4d 4d 53 20 4d 65 73 73 MMS Mess
61 67 65 00 84 1f 1f b3 age.....
8a 3c 6c 73 6b 64 6a 66 .<lskdjf
69 65 3e 00 89 61 70 70 ie>..app
6c 69 63 61 74 69 6f 6e lication
2f 73 6d 69 6c 00 02 21 /smil..!
85 5c 13 61 70 70 6c 69 .\.appli
63 61 74 69 6f 6e 2f 73 cation/s
6d 69 6c 00 81 84 c0 22 mil...."
3c 6c 73 6b 64 6a 66 69 <lskdjfi
65 3e 00 3c 3f 78 6d 6c e>.<?xml
20 76 65 72 73 69 6f 6e version
3d 22 31 2e 30 22 3f 3e ="1.0"?>
0d 0a 3c 21 44 4f 43 54 ..<!DOCT
59 50 45 20 73 6d 69 6c YPE smil
20 50 55 42 4c 49 43 20 PUBLIC
22 2d 2f 2f 57 33 43 2f "-//W3C/
2f 44 54 44 20 53 4d 49 /DTD SMI
4c 20 31 2e 30 2f 2f 45 L 1.0//E
4e 22 20 22 68 74 74 70 N" "http
3a 2f 2f 77 77 77 2e 77 ://www.w
33 2e 6f 72 67 2f 74 72 3.org/tr
2f 52 45 43 2d 73 6d 69 /REC-smi
6c 2f 53 4d 49 4c 31 30 l/SMIL10
2e 64 74 64 22 3e 0d 0a .dtd">..
3c 73 6d 69 6c 20 78 6d <smil xm
6c 6e 73 3d 22 68 74 74 lns="htt
70 3a 2f 2f 77 77 77 2e p://www.
77 33 2e 6f 72 67 2f 32 w3.org/2
30 30 30 2f 53 4d 49 4c 000/SMIL
32 30 2f 43 52 2f 4c 61 20/CR/La
6e 67 75 61 67 65 22 3e nguage">
0d 0a 09 3c 68 65 61 64 ...<head
3e 0d 0a 09 09 3c 6d 65 >....<me
74 61 20 6e 61 6d 65 3d ta name=
22 74 69 74 6c 65 22 20 "title"
63 6f 6e 74 65 6e 74 3d content=
22 57 65 6c 63 6f 6d 65 "Welcome
20 74 6f 20 41 64 6f 62 to Adob
65 20 47 6f 4c 69 76 65 e GoLive
20 36 20 53 4d 49 4c 20 6 SMIL
41 75 74 68 6f 72 69 6e Authorin
67 20 53 75 69 74 65 22 g Suite"
2f 3e 0d 0a 09 09 3c 6d />....<m
65 74 61 20 6e 61 6d 65 eta name
3d 22 61 75 74 68 6f 72 ="author
22 20 63 6f 6e 74 65 6e " conten
74 3d 22 22 2f 3e 0d 0a t=""/>..
09 09 3c 6d 65 74 61 20 ..<meta
6e 61 6d 65 3d 22 63 6f name="co
70 79 72 69 67 68 74 22 pyright"
20 63 6f 6e 74 65 6e 74 content
3d 22 22 2f 3e 0d 0a 09 =""/>...
09 3c 6d 65 74 61 20 6e .<meta n
61 6d 65 3d 22 61 62 73 ame="abs
74 72 61 63 74 22 20 63 tract" c
6f 6e 74 65 6e 74 3d 22 ontent="
22 2f 3e 0d 0a 09 09 3c "/>....<
6c 61 79 6f 75 74 3e 0d layout>.
0a 09 09 09 3c 72 6f 6f ....<roo
74 2d 6c 61 79 6f 75 74 t-layout
20 77 69 64 74 68 3d 22 width="
33 32 30 22 20 68 65 69 320" hei
67 68 74 3d 22 32 34 30 ght="240
22 20 74 69 74 6c 65 3d " title=
22 57 65 6c 63 6f 6d 65 "Welcome
20 74 6f 20 41 64 6f 62 to Adob
65 20 47 6f 4c 69 76 65 e GoLive
20 36 20 53 4d 49 4c 20 6 SMIL
41 75 74 68 6f 72 69 6e Authorin
67 20 53 75 69 74 65 22 g Suite"
2f 3e 0d 0a 09 09 09 3c />.....<
72 65 67 69 6f 6e 20 69 region i
64 3d 22 69 64 5f 31 44 d="id_1D
30 44 37 45 36 32 22 20 0D7E62"
68 65 69 67 68 74 3d 22 height="
33 32 70 78 22 20 77 69 32px" wi
64 74 68 3d 22 33 32 70 dth="32p
78 22 20 6c 65 66 74 3d x" left=
22 30 70 78 22 20 74 6f "0px" to
70 3d 22 30 70 78 22 2f p="0px"/
3e 0d 0a 09 09 3c 2f 6c >....</l
61 79 6f 75 74 3e 0d 0a ayout>..
09 3c 2f 68 65 61 64 3e .</head>
0d 0a 09 0d 0a 09 3c 62 ......<b
6f 64 79 3e 0d 0a 09 09 ody>....
3c 70 61 72 3e 0d 0a 09 <par>...
09 09 3c 74 65 78 74 20 ..<text
74 69 74 6c 65 3d 22 4d title="M
4d 53 20 54 65 73 74 22 MS Test"
20 72 65 67 69 6f 6e 3d region=
22 69 64 5f 31 44 30 44 "id_1D0D
37 45 36 32 22 20 73 72 7E62" sr
63 3d 22 28 45 6d 70 74 c="(Empt
79 52 65 66 65 72 65 6e yReferen
63 65 21 29 22 20 65 6e ce!)" en
64 3d 22 35 73 22 2f 3e d="5s"/>
3c 2f 70 61 72 3e 0d 0a </par>..
09 09 0d 0a 09 09 09 0d ........
0a 09 09 09 0d 0a 09 3c .......<
2f 62 6f 64 79 3e 0d 0a /body>..
3c 2f 73 6d 69 6c 3e </smil>

and I got the packet:
12 80 01 04 40 57 03 82 ....@W..
81 83 a6 52 65 73 69 6e ...Resin
2f 32 2e 31 2e 34 00 88 /2.1.4..
80 ac 1f 35 8e 6c 68 2d ...5.lh-
62 61 73 65 2e 67 7a 77 base.gzw
67 2e 6d 6f 6e 74 65 72 g.monter
6e 65 74 2e 63 6f 6d 00 net.com.
22 54 72 61 6e 73 66 6f "Transfo
72 6d 61 74 69 6f 6e 20 rmation
41 70 70 6c 69 65 64 22 Applied"
00 92 04 3f 13 d4 92 94 ...?....
04 2e dd f3 00 3c 74 69 .....<ti
74 6c 65 3e 34 30 30 20 tle>400
43 61 6e 27 74 20 66 69 Can't fi
6e 64 20 4d 53 49 53 44 nd MSISD
4e 3c 2f 74 69 74 6c 65 N</title
3e 0a 3c 68 31 3e 34 30 >.<1>40
30 20 43 61 6e 27 74 20 0 Can't
66 69 6e 64 20 4d 53 49 find MSI
53 44 4e 3c 2f 68 31 3e SDN</h1>
0a 3c 70 20 2f 3e 3c 68 .<p><h
72 20 2f 3e 0a 3c 73 6d r />.<sm
61 6c 6c 3e 0a 52 65 73 all>.Res
69 6e 20 32 2e 31 2e 34 in 2.1.4
20 28 62 75 69 6c 74 20 (built
46 72 69 20 41 75 67 20 Fri Aug
20 32 20 31 34 3a 31 36 2 14:16
3a 35 32 20 50 44 54 20 :52 PDT
32 30 30 32 29 0a 3c 2f 2002).</
73 6d 61 6c 6c 3e 0a small>.

Even if I did not fill out the content length,
the reply packet was all the same.

Where I did wrong?

Thanks in advance.
Bryce Norwood - NowSMS Support
Posted on Wednesday, July 16, 2003 - 03:04 pm:   

Without looking at the content itself in too much detail ...

Maybe you're going through the wrong WAP gateway? (And the MMSC expects to receive the MSISDN from a particular WAP gateway.)

Maybe you're setting a "From:" field in the MMS header and either: that does not match your MSISDN, or the MMSC expects to see insert-address-token instead of an actual address.

-bn
Winteam
Posted on Thursday, July 17, 2003 - 03:17 am:   

Mr. Bryce Norwood,

Thank you for your warm hot.

-- CUT --
Maybe you're going through the wrong WAP gateway? (And the MMSC expects to receive the MSISDN from a particular WAP gateway.)
-- CUT --

The WAP GATEWAY is right. I can get wap pages using WSP/HTTP_GET method through this wapgateway.

-- CUT --
Maybe you're setting a "From:" field in the MMS header and either: that does not match your MSISDN, or the MMSC expects to see insert-address-token instead of an actual address.
-- CUT --

I created the MM message by ADOBE GOLIVE with Nokia's MMS composing plugin. I think it WOULD be a right tool.

I used an MSISDN (it is my simcard's number) in my test, which I had tested with a Panasonic GD88, and sending and receiving MM (through the same WAP GATEWAY and same MMSC) was OK.

(I am sorry that I don't know how to change the default font to Courier in this message, so that the packet I had list above looks a little unclear.)

Thanks a lot,
Winteam
Bryce Norwood - NowSMS Support
Posted on Thursday, July 17, 2003 - 03:16 pm:   

Winteam,

Many mobile operators have separate WAP gateways setup for their MMS traffic. Check the configuration of the MMS client in your mobile phone, and make sure that you are connecting to the same WAP gateway as the MMS client that is working.

The MMSC likely receives the MSISDN from the WAP gateway, and it may be expecting to receive connections only from the gateway that is specially setup for it.

The other suggestion would be to leave the "From:" header out, or even better, encode it for "insert-address-token" ... but that might not be possible with the tools that you are using. (When a phone submits a message to an MMSC, it does not include the MSISDN of the phone, instead it sets this flag.)

-bn
Winteam
Posted on Wednesday, July 30, 2003 - 10:39 am:   

Mr. Bryce Norwood,

Thank you for your answers. I have fixed the problem. Maybe I connected to a wrong wapgateway until July 25th.

The flow were listed here.
Before July 25th, when I connected to the carrier's WAPGATEWAY with WSP_CONNECT,
I got a reply packet:

12 80 00 02 91 ab c7 38 ___ .......8
0e 81 04 03 80 c0 00 03 ___ ........
81 c0 00 02 83 01 02 84 ___ ........
01 78 2d 75 70 2d 70 72 ___ .x-up-pr
6f 78 79 2d 62 6f 6f 6b ___ oxy-book
6d 61 72 6b 00 68 74 74 ___ mark.htt
70 3a 2f 2f 77 61 70 2e ___ p://wap.
6d 6f 6e 74 65 72 6e 65 ___ monterne
74 2e 63 6f 6d 2f 6d 61 ___ t.com/ma
72 6b 00 78 2d 75 70 2d ___ rk.x-up-
70 72 6f 78 79 2d 75 70 ___ proxy-up
6c 69 6e 6b 2d 76 65 72 ___ link-ver
73 69 6f 6e 00 35 2e 31 ___ sion.5.1
2e 31 2e 35 63 00 78 2d ___ .1.5c.x-
75 70 2d 70 72 6f 78 79 ___ up-proxy
2d 68 6f 6d 65 2d 70 61 ___ -home-pa
67 65 00 68 74 74 70 3a ___ ge.http:
2f 2f 77 61 70 2e 6d 6f ___ //wap.mo
6e 74 65 72 6e 65 74 2e ___ nternet.
63 6f 6d 2f 00 ___ com/.

And from July 25th, I connected to same w/g(same ip) with the same way, I got a reply packet:

12 80 00 02 aa ef 52 00 ___ ......R.
15 45 6e 63 6f 64 69 6e ___ .Encodin
67 2d 76 65 72 73 69 6f ___ g-versio
6e 00 31 2e 32 00 ___ n.1.2.

and after that, all my WTP/WSP/MMS packets acted well.

Best wishes,
Winteam
Kris
Unregistered guest
Posted on Wednesday, October 29, 2003 - 10:12 am:   

hi.
I have my own simulator with wap push running in it. i need the MMS & WSP headers to test it. For example if i want to send the mms message "HELLO" how will be complete packet format in XML.
thanks in advance
regards
Kris