Hello All,

there have a few posts already regarding how to construct an SI short message.
i also would like to do the same thing, and i've did my little silly hack. here
are the my references:

SI SMS Format

http://www.mail-archive.com/users@kannel.3glab.org/msg02090.html

WAP Push

http://www.wapforum.org/what/technical.htm

WBXML

http://www.devx.com/xml/articles/bs120101/Part1/bs120101p1-1.asp
http://www.devx.com/xml/articles/bs120101/Part2/bs120101p2-1.asp

i'm so lucky that i found that the Nokia phones have not problem to recognize
my SI.

however, dunno why, it didn't work on other phones, like the SonyEriccson, LG.

any idea?

---
matt


=== cut ===

06 UDHL = 6 bytes
05 IEI 05 = Application port addressing scheme, 16 bit address
04 IEDL = 4 bytes
0B84 destination port = 2948 WAP Push connectionless session service (client side), Protocol: WSP/Datagram
23F0 originator port = 9200 WAP connectionless session service Protocol: WSP/Datagram
01 Transaction ID (Push ID)
06 PDU Type = Push PDU 0x06 (WAP-230-WSP Table 34)
03 HeadersLen = ContentType.length() + PushHeaders.length() 0x?? (WAP-230-WSP 8.2.4.1)
AE [Push Header] Content-Type: application/vnd.wap.sic 0x2E | 0x80 (http://www.wapforum.org/wina/wsp-content-type.htm)
8D [Push Header] Content-Length: 0x0D | 0x80 (WAP-230-WSP Table 39)
5D ContentLength = 0x5D
02 WBXML Version 1.2 0x02
05 SI 1.0 Public Identifier 0x05
6A charset = utf8 (MIBEnum=106) 0x6A (WAP-230-WSP Table 42)
00 string table length
45 <si> 0x05 | 0x40 (element w/ content, no attribute)
C6 <indication 0x06 | 0xC0 (element w/ content & attribute)
0C href="http:// 0x0C
03 inline string follows 0x03
77 w
61 a
70 p
2E .
79 y
65 e
61 a
68 h
6D m
6F o
62 b
69 i
6C l
65 e
00 inline string ends 0x00
85 .com/ 0x85
03 inline string follows 0x03
73 s
69 i
2F /
69 i
44 D
47 G
53 S
47 G
54 T
73 s
68 h
70 p
43 C
55 U
48 H
68 h
62 b
41 A
6D m
56 V
35 5
4D M
45 E
00 inline string ends 0x00
11 si-id
03 inline string follows 0x03
31 1
32 2
33 3
00 inline string ends 0x00
0A created
C3 opaque data follows
07 data length
20 2003-01-14 18:45:30
03
01
14
18
45
30
10 si-expires
C3 opaque data follows
07 data length
20 2003-03-15 18:45:30
03
03
15
18
45
30
08 action = signal-high 0x08
01 > 0x01 (end of attribute list)
03 inline string follows 0x03
48 H
65 e
6C l
6C l
6F o
20
57 W
6F o
72 r
6C l
64 d
21 !
00 inline string ends 0x00
01 </indication> 0x01
01 </si> 0x01

here's the corresponding si in xml:

<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd">
<si>
<indication href="http://wap.yeahmobile.com/si/iDGSGTshpCUHhbAmV5ME"
si-id=123
created=2003-01-14T18:45Z
si-expires=2003-01-15T18:45Z
action=signal-high>
Hello World!
</indication>
</si>

=== cut ===