Re: Third millennium puzzle: WAP Push decoding

2002-11-01 Thread Aarno Syvänen

On Thursday, October 24, 2002, at 01:31 PM, Claudio Montanari wrote:


I am trying to understand the WAP Push Service Indication 
encoding/decoding
vs. the standard specifications.

The chore is really similar to solve a puzzle and now I am close to the
solution, but something is still missing.

Hereby you can find my decoding of SI sent by the Kannel bearer box 
using a
Wavecom modem.

Could you help me to fill the "???" fields, eventually quoting the
specification I should read?

Thank you very much for your valuable help.


Claudio Montanari
TAI S.r.l.
Viale Gramsci 12 - 56125 - Pisa
Via Pazzagli 2 - 50141 - Firenze
Tel: +39 050 503222
Fax. +39 050 24421
E-mail: [EMAIL PROTECTED]
http://www.tai.it



00 Default SMSC
51UDHI and SUBMIT
00MR
0CDestination number length (12 digits)
91Destination number format (international)
			Destination number ()
00Protocol ID
04Data Coding Schema (DCS 8-bit encoded)
A7Validity Period (24 h)
	7CUser Data Length (124 bytes)
	06User Data Header Length (6 bytes)
	05UDH Item Element id (Port Numbers)
	04UDH IE length (4 bytes)
	0B84destination port number
	23F0origin port number
		01Transaction ID (Push ID)
		06PDU Type (Push PDU)
		15Header Length (21 bytes)
		AEContent Type=application/vnd.wap.sic (0x80 | 0x2E)
		96Host, WAP - 230, Appendix A, table 39 (wsp)
		6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30  localhost:8080
		00 End of the text string (wsp, 
chapter 8.4.2.29 & chapter
 8.4.2.1)
		8DContent-Length (wsp, table 39)
		DDin hex, 221 bytes (wsp, chapter 8.4.2.20 & chapter
   
  8.4.2.1)
		B4Push-Flag (wsp, table 39)
		80no flags set (wsp, chapter 8.4.2.59 & chapter
   
8.4.2.1; SPEC-PushOTA-19991108.
   
chapter 9.1.3)
		02
		05
		6A
		00
			45
C6
| 0x80>
0C  http://
03  (next is an ASCII string 00 
terminated)
77 61 70 2E 74 61 69 2E 69 74   wap.tai.it
00
11
03  (next is an ASCII string 00 
terminated)
39 32 40 74 61 69 2E 69 74  [EMAIL PROTECTED]
00
08
0A
C3
07
19990625152315	1999-06-25 15:23:15
10
C3
04
20030630  	2003-06-30 00:00:00
01
03(next is an ASCII string 00 terminated, the SI content)
56 75 6F 69 20 76 65 64 65 72 65 20 6C 65 20 4D 61 70 70 65 3F  
Vuoi
vedere le Mappe?
20 4F 70 7A 69 6F 6E 69 20 2D 20 53 63 61 72 69 63 61	 
Opzioni -
Scarica
00
01
			01








Re: Third millennium puzzle: WAP Push decoding

2002-10-28 Thread Andrea Trasatti
Ciao Claudio,
it looks like you decoded most of the message.

>   15  Header Length (21 bytes)
>   AE  Content Type=application/vnd.wap.sic 
>(0x80 | 0x2E)
>   96  ???
>   6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30  localhost:8080
>   00

96 is the code that declares a host indication will follow. This is not mandatory, 
generally should be the domain that sends the push. The origin of the message.

>   8D  ???
Indicates the content-type that will be inside the message. The content-type 
encoding for the text message.

>   DD  ???
This should be the length

>   B4  ???
>   80  ???
This is the push flag. It's made of 2 bytes, B4 is the indicator, 80 means that the 
URI 
initiator is authenticated.

The push flag is not mandatory.

Regards,
Andrea

===
Andrea Trasatti
BWARE TECHNOLOGIES
via San Gregorio, 3 - 20124 Milan - Italy
http://www.bware.it
Tel. +39 02 2779181
Fax +39 02 27791828
Cell. +39 335 7866749






Third millennium puzzle: WAP Push decoding

2002-10-24 Thread Claudio Montanari
I am trying to understand the WAP Push Service Indication encoding/decoding
vs. the standard specifications.

The chore is really similar to solve a puzzle and now I am close to the
solution, but something is still missing.

Hereby you can find my decoding of SI sent by the Kannel bearer box using a
Wavecom modem.

Could you help me to fill the "???" fields, eventually quoting the
specification I should read?

Thank you very much for your valuable help.


Claudio Montanari
TAI S.r.l.
Viale Gramsci 12 - 56125 - Pisa
Via Pazzagli 2 - 50141 - Firenze
Tel: +39 050 503222
Fax. +39 050 24421
E-mail: [EMAIL PROTECTED]
http://www.tai.it



00
51  UDHI and SUBMIT
00  MR
0C  Destination number length (12 digits)
91  Destination number format (international)
Destination number ()
00  Protocol ID
04  Data Coding Schema (DCS 8-bit encoded)
A7  Validity Period (24 h)
7C  User Data Length (124 bytes)
06  User Data Header Length (6 bytes)
05  UDH Item Element id (Port Numbers)
04  UDH IE length (4 bytes)
0B84destination port number
23F0origin port number
01  Transaction ID (Push ID)
06  PDU Type (Push PDU)
15  Header Length (21 bytes)
AE  Content Type=application/vnd.wap.sic 
(0x80 | 0x2E)
96  ???
6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30  localhost:8080
00
8D  ???
DD  ???
B4  ???
80  ???
02  
05  
6A  
00  
45  
C6  
0C  http://
03  (next is an ASCII 
string 00 terminated)
77 61 70 2E 74 61 69 2E 69 74   wap.tai.it
00
11  
03  (next is an ASCII 
string 00 terminated)
39 32 40 74 61 69 2E 69 74  [EMAIL PROTECTED]
00
08  
0A  
C3  
07  
19990625152315  1999-06-25 15:23:15
10  
C3  
04  
200306302003-06-30 00:00:00
01  
03  (next is an ASCII 
string 00 terminated, the SI content)
56 75 6F 69 20 76 65 64 65 72 65 20 6C 65 20 4D 61 70 
70 65 3F  Vuoi
vedere le Mappe?
20 4F 70 7A 69 6F 6E 69 20 2D 20 53 63 61 72 69 63 61  
  Opzioni -
Scarica
00
01  
01