theanhoo.yew wrote:

I am able to send a WAP push to my mobile phone, but it is
unable to download the MMS (file).

Here's what happens when I attempt send an MMS:
1. mmssend -f +60xxxxxxxxx/TYPE=PLMN -t
+60xxxxxxxxx/TYPE=PLMN -b Text.txt /etc/mmsc.conf
2. smsbox sends a concatenated binary SMS to my mobile phone
3. My phone makes a GPRS connection and sends a WDP to
wapbox
4. wapbox receives the WDP and makes an HTTP connection to
localhost:1981 to fetch the MMS
   - the URL is translated from http://mmsc/ to
http://localhost:1981/
5. mmsproxy accepts the HTTP connection from wapbox and
fetches the MMS
6. mmsproxy replies with the MMS content via the HTTP
connection
7. wapbox sends the MMS content back to my mobile phone as a
WDP
The logs show the above steps do happen (except perhaps the
last one).

The problem is the MMS on my phone is still outstanding (not
downloaded) even after it was "downloaded". It is as if the
phone received an invalid reply/content.
The download button on my phone is still clickable even
after repeated attempts.

I tested using both wapbox (same machine) and the telco's
WAP gateway. The results were the same. With the telco's WAP gateway, the log shows an inbound HTTP
connection accepted on port 1981 with the telco's WAP
gateway IP address instead of 127.0.0.1.

The binary (MMS) file exists in the spool; I can retrieve it
using my web browser (it downloads as a 'binary' MMS file).

I've checked my firewall settings to make sure all the
required TCP and UDP connections are allowed.

Please help. My thanks in advance.

Mbuni:        1.0.0
Kannel:       1.4.0 (patched with 'mbuni-kannel-patch-full')
Mobile phone: O2 Mini
O/S:          RedHat Advanced Server 3

This is the content of the (MMS) message file:
X-Mms-Message-Type: m-send-req
X-Mms-Transaction-Id: A2345678
X-Mms-Version: 1.0
Message-Id: [EMAIL PROTECTED]
From: Tester <[EMAIL PROTECTED]>
To: Testee <[EMAIL PROTECTED]>
Subject: Test message in MIME (text) format
Content-Type: application/vnd.wap.multipart.mixed;
 boundary="---030803010101040709080104"

--------------030803010101040709080104
Content-Type: text/plain; name=Text.txt; charset=utf-8
Content-Transfer-Encoding: quoted-printable

This is a test message in MIME (text) format.
--------------030803010101040709080104

* * * mmsproxy log excerpt * * *
DEBUG: Request, ip=127.0.0.1,
base_client_addr=202.122.144.4,
client_addr=202.122.144.4/TYPE=IPv6
DEBUG: Thread 18 (mmsproxy.c:(gwthread_func_t
*)fetchmms_proxy) maps to pid 11910.
DEBUG:  ---> Entered fetch interface <---
DEBUG: WSP: decoding headers:
DEBUG: Octet string at 0x818ee10:
DEBUG:   len:  15
DEBUG:   size: 16
DEBUG:   immutable: 0
DEBUG: data: 0e 83 85 22 54 65 78 74 2e 74 78 74 00 81 ea ..."Text.txt...
DEBUG: Octet string dump ends.
DEBUG: WSP: decoded headers:
DEBUG: Content-Type: text/plain; name="Text.txt";
charset=utf-8
DEBUG: WSP: End of decoded headers.
DEBUG: NULL
DEBUG: WSP: Mapping `application/vnd.wap.multipart.mixed',
WSP 1.2 to 0x0023.
DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 0x0003.
DEBUG: WSP: Mapping `name', WSP 1.2 to 0x0005.
DEBUG: WSP: Mapping `charset', WSP 1.2 to 0x0001.
DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 0x0011.
DEBUG: WSP: Mapping `application/vnd.wap.multipart.mixed',
WSP 1.2 to 0x0023.
DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 0x0003.
DEBUG: WSP: Mapping `name', WSP 1.2 to 0x0005.
DEBUG: WSP: Mapping `charset', WSP 1.2 to 0x0001.
DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 0x0011.
DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
DEBUG:  $$$$$$ fetch message replying with
[type=m-retrieve-conf,content_len=273]:
DEBUG: Dumping HTTP headers:
DEBUG:  Octet string at 0x818f060:
DEBUG:    len:  18
DEBUG:    size: 19
DEBUG:    immutable: 0
DEBUG:    data: 58 2d 4d 6d 73 2d 56 65 72 73 69 6f 6e 3a 20
31   X-Mms-Version: 1
DEBUG: data: 2e 30 .0
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81919b0:
DEBUG:    len:  34
DEBUG:    size: 35
DEBUG:    immutable: 0
DEBUG:    data: 4d 65 73 73 61 67 65 2d 49 44 3a 20 41 32 33
34   Message-ID: A234
DEBUG:    data: 35 36 37 38 40                            2e
63   [EMAIL PROTECTED]
DEBUG: data: 6f 6d om
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x8191218:
DEBUG:    len:  35
DEBUG:    size: 36
DEBUG:    immutable: 0
DEBUG:    data: 46 72 6f 6d 3a 20 54 65 73 74 65 72 20 3c 74
65   From: Tester <te
DEBUG: data: 73 74 65 72 40 63 [EMAIL PROTECTED] DEBUG: data: 6f 6d 3e om>
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81918b8:
DEBUG:    len:  33
DEBUG:    size: 34
DEBUG:    immutable: 0
DEBUG:    data: 54 6f 3a 20 54 65 73 74 65 65 20 3c 74 65 73
74   To: Testee <test
DEBUG:    data: 65 65 40                            2e 63 6f
6d   [EMAIL PROTECTED]
DEBUG: data: 3e >
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81914f0:
DEBUG:    len:  43
DEBUG:    size: 44
DEBUG:    immutable: 0
DEBUG:    data: 53 75 62 6a 65 63 74 3a 20 54 65 73 74 20 6d
65   Subject: Test me
DEBUG:    data: 73 73 61 67 65 20 69 6e 20 4d 49 4d 45 20 28
74   ssage in MIME (t
DEBUG: data: 65 78 74 29 20 66 6f 72 6d 61 74 ext) format
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x8192760:
DEBUG:    len:  16
DEBUG:    size: 17
DEBUG:    immutable: 0
DEBUG:    data: 4d 65 73 73 61 67 65 49 44 3a 20 30 30 30 30
30   MessageID: 00000
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x8185428:
DEBUG:    len:  49
DEBUG:    size: 50
DEBUG:    immutable: 0
DEBUG:    data: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61
70   Content-Type: ap
DEBUG:    data: 70 6c 69 63 61 74 69 6f 6e 2f 76 6e 64 2e 77
61   plication/vnd.wa
DEBUG:    data: 70 2e 6d 75 6c 74 69 70 61 72 74 2e 6d 69 78
65   p.multipart.mixe
DEBUG: data: 64 d
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81817e0:
DEBUG:    len:  30
DEBUG:    size: 31
DEBUG:    immutable: 0
DEBUG:    data: 44 61 74 65 3a 20 53 75 6e 20 4a 61 6e 20 20
31   Date: Sun Jan  1
DEBUG: data: 20 30 37 3a 30 38 3a 34 32 20 32 30 30 36 07:08:42 2006
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x8180e88:
DEBUG:    len:  35
DEBUG:    size: 36
DEBUG:    immutable: 0
DEBUG:    data: 58 2d 4d 6d 73 2d 4d 65 73 73 61 67 65 2d 54
79   X-Mms-Message-Ty
DEBUG:    data: 70 65 3a 20 6d 2d 72 65 74 72 69 65 76 65 2d
63   pe: m-retrieve-c
DEBUG: data: 6f 6e 66 onf
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81852d0:
DEBUG:    len:  50
DEBUG:    size: 51
DEBUG:    immutable: 0
DEBUG:    data: 58 2d 4d 6d 73 2d 54 72 61 6e 73 61 63 74 69
6f   X-Mms-Transactio
DEBUG:    data: 6e 2d 49 44 3a 20 71 66 31 31 33 36 31 32 38
31   n-ID: qf11361281
DEBUG:    data: 32 32 2e 34 2e 78 31 31 38 39 35 32 35 40 6d
6d   [EMAIL PROTECTED]
DEBUG: data: 73 63 sc
DEBUG:  Octet string dump ends.
DEBUG:  Octet string at 0x81852b8:
DEBUG:    len:  22
DEBUG:    size: 23
DEBUG:    immutable: 0
DEBUG:    data: 58 2d 4d 6d 73 2d 4d 4d 53 2d 56 65 72 73 69
6f   X-Mms-MMS-Versio
DEBUG: data: 6e 3a 20 31 2e 30 n: 1.0
DEBUG:  Octet string dump ends.
DEBUG: End of dump.
DEBUG: Dumping MMS message body (mulitpart) [1 parts] -->
DEBUG: --->Message part: 0 --->
DEBUG: Not Multipart ->
DEBUG: Dumping HTTP headers:
DEBUG:  Octet string at 0x8185028:
DEBUG:    len:  56
DEBUG:    size: 57
DEBUG:    immutable: 0
DEBUG:    data: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74
65   Content-Type: te
DEBUG:    data: 78 74 2f 70 6c 61 69 6e 3b 20 6e 61 6d 65 3d
22   xt/plain; name="
DEBUG:    data: 54 65 78 74 2e 74 78 74 22 3b 20 63 68 61 72
73   Text.txt"; chars
DEBUG: data: 65 74 3d 75 74 66 2d 38 et=utf-8
DEBUG:  Octet string dump ends.
DEBUG: End of dump.
DEBUG:  entered free_clientinfo 1, ip=135861024
DEBUG:  left free_clientinfo
DEBUG: Thread 18 (mmsproxy.c:(gwthread_func_t
*)fetchmms_proxy) terminates.

* * * wapbox log excerpts * * *
DEBUG: datagram received
DEBUG: Did not find previous routing info for WDP,
generating new
DEBUG: send_msg: sending msg to box: <127.0.0.1>
DEBUG: boxc_sender: sent message to <127.0.0.1>
DEBUG: boxc_receiver: got wdp from wapbox
DEBUG: udp: sending message

DEBUG: WTP: resp_machine 31, state INVOKE_RESP_WAIT, event
TR-Invoke.res.
DEBUG: WTP 31: New state RESULT_WAIT
DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
DEBUG: HTTP: Received response:
DEBUG: Octet string at 0x81dfae0:
DEBUG:   len:  408
DEBUG:   size: 1024
DEBUG:   immutable: 0
DEBUG:   data: 53 65 72 76 65 72 3a 20 4b 61 6e 6e 65 6c 2f
31   Server: Kannel/1
DEBUG:   data: 2e 34 2e 30 0d 0a 43 6f 6e 74 65 6e 74 2d 4c
65   .4.0..Content-Le
DEBUG:   data: 6e 67 74 68 3a 20 32 37 33 0d 0a 50 72 61 67
6d   ngth: 273..Pragm
DEBUG:   data: 61 3a 20 6e 6f 2d 63 61 63 68 65 0d 0a 43 61
63   a: no-cache..Cac
DEBUG:   data: 68 65 2d 43 6f 6e 74 72 6f 6c 3a 20 6e 6f 2d
63   he-Control: no-c
DEBUG:   data: 61 63 68 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54
79   ache..Content-Ty
DEBUG:   data: 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e
2f   pe: application/
DEBUG:   data: 76 6e 64 2e 77 61 70 2e 6d 6d 73 2d 6d 65 73
73   vnd.wap.mms-mess
DEBUG:   data: 61 67 65 0d 0a 0d 0a 8c 84 98 71 66 31 31 33
36   age.......qf1136
DEBUG:   data: 31 32 38 31 32 32 2e 34 2e 78 31 31 38 39 35
32   128122.4.x118952
DEBUG:   data: 35 40 6d 6d 73 63 00 8d 90 58 2d 4d 6d 73 2d
56   [EMAIL PROTECTED]
DEBUG:   data: 65 72 73 69 6f 6e 00 31 2e 30 00 8b 41 32 33
34   ersion.1.0..A234
DEBUG:   data: 35 36 37 38 40                            2e
63   [EMAIL PROTECTED]
DEBUG:   data: 6f 6d 00 89 1f 1f 80 54 65 73 74 65 72 20 3c
74   om.....Tester <t
DEBUG: data: 65 73 74 65 72 40 2e [EMAIL PROTECTED]
DEBUG:   data: 63 6f 6d 3e 00 97 54 65 73 74 65 65 20 3c 74
65   com>..Testee <te
DEBUG:   data: 73 74 65 65 40                            2e
63   [EMAIL PROTECTED]
DEBUG:   data: 6f 6d 3e 00 96 54 65 73 74 20 6d 65 73 73 61
67   om>..Test messag
DEBUG:   data: 65 20 69 6e 20 4d 49 4d 45 20 28 74 65 78 74
29   e in MIME (text)
DEBUG:   data: 20 66 6f 72 6d 61 74 00 4d 65 73 73 61 67 65
49    format.MessageI
DEBUG:   data: 44 00 30 30 30 30 30 00 85 04 43 b7 7f fa 84
a3   D.00000...C.....
DEBUG:   data: 01 0f 36 0e 83 85 22 54 65 78 74 2e 74 78 74
00   ..6..."Text.txt.
DEBUG:   data: 81 ea 54 68 69 73 20 69 73 20 61 20 74 65 73
74   ..This is a test
DEBUG:   data: 20 6d 65 73 73 61 67 65 20 69 6e 20 4d 49 4d
45    message in MIME
DEBUG:   data: 20 28 74 65 78 74 29 20 66 6f 72 6d 61 74 2e
0a    (text) format..
DEBUG: data: 2d 2d 2d 2d 2d 2d 2d 2d --------
DEBUG: Octet string dump ends.
DEBUG: get_cookies: End
DEBUG: WSP: machine 0x81e4c38, state CONNECTED, event
S-MethodResult.req
DEBUG: WSP: method 31, state PROCESSING, event
S-MethodResult.req
DEBUG: WSP: Mapping `application/vnd.wap.mms-message', WSP
1.2 to 0xffffffff.
DEBUG: WSP: Mapping `Server', WSP 1.2 to 0x0026.2006-01-01
23:25:40 [11884] [1] DEBUG: WSP: Mapping `Content-Length',
WSP 1.2 to 0x000d.
DEBUG: WSP: Mapping `Pragma', WSP 1.2 to 0x001f.
DEBUG: WSP: Mapping `Cache-Control', WSP 1.2 to 0x0008.
DEBUG: WSP: Mapping `Content-Type', WSP 1.2 to 0x0011.
DEBUG: WSP 10/31: New method state REPLYING
DEBUG: WSP 10: New state CONNECTED
DEBUG: WTP: resp_machine 31, state RESULT_WAIT, event
TR-Result.req.
DEBUG: WTP: begin_sar_result(): data len = 330
DEBUG: WTP: dispath_to_wdp(): psn = 0
DEBUG: WTP 31: New state RESULT_RESP_WAIT
DEBUG: WTP: resp_machine 31, state RESULT_RESP_WAIT, event
RcvAck.
DEBUG: WTP 31: New state LISTEN
DEBUG: WTP: Destroying WTPRespMachine 0x81df6d8(31)
DEBUG: WSP: machine 0x81e4c38, state CONNECTED,event
TR-Result.cnf
DEBUG: WSP: method 31, state REPLYING, event TR-Result.cnf
DEBUG: WSP 10/31: New method state NULL_METHOD
DEBUG: Destroying WSPMethodMachine 31

now, speaking for Kannel's side here, this looks ok to me. WTP-SAR is only sending one segment and hence there is actually nothing that could get up broken.

Now, as you say the Telco's WAP GW does not change the effect and the device is still mis-interpreting the content. I suggest you make the content as simple as possible and also addopt the From: and To: headers to refect "real-world" addresses.

BTW, please provide the logs as seperate attachement, in order to read them 
easier.

Stipe

mailto:stolj_{at}_wapme-group.de
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:info_{at}_wapme-systems.de
http://www.wapme-systems.de/
-------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://mbuni.org/mailman/listinfo/users_mbuni.org

Reply via email to