Stipe Tolj wrote:
...
Can you point out what the issue with the "extention of 1 to 2 SMS" means in
this sense? I didn't get the point here?
OK:
Take this PAP data:
-boundary0123456789
Content-Type:application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap>
<push-message push-id="12_64128316_1174065083268">
<address address-value="WAPPUSH=4917X1234567/[EMAIL PROTECTED]"/>
<quality-of-service delivery-method="unconfirmed" priority="medium"
network="gsm" network-required="false" bearer="SMS"
bearer-required="false"/>
</push-message>
</pap>
--boundary0123456789
Content-Type:application/vnd.wap.mms-message
x-wap-application-id:4
<8C><82><98>AmwxdJKCOE5waJkqI^@<8D><90><89>^Z<80>+4917Y1234567/TYPE=PLMN^@<8A><80><8E>^B^A^S<88>^E
<81>^C^B<A3>^@<83>http://xyz/mmsc/1_2?AmwxdJKCOE5waJkqI^@
--boundary0123456789--
and transmit it with:
curl -iv -H 'Content-Type: multipart/related;
boundary="boundary0123456789"; type="application/xml"'
--data-binary '@papdata' http://localhost:8080/pap
Kannel then uses these headers:
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping
`application/vnd.wap.mms-message', WSP 1.2 to 0xf
fffffff.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `User-Agent', WSP
1.3 to 0x0029.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `Pragma', WSP 1.3 to
0x001f.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `Accept', WSP 1.3 to
0x0000.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `*/*', WSP 1.2 to
0x0000.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `Content-Length',
WSP 1.3 to 0x000d.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `Content-Type', WSP
1.3 to 0x0011.
2007-04-18 16:08:31 [22543] [2] DEBUG: WSP: Mapping `Encoding-Version',
WSP 1.3 to 0x0043.
2007-04-18 16:08:31 [22543] [2] DEBUG: WDP (wapbox): delivering 2
segments to bearerbox
... to generate this SMS data (shown as request to an HTTP Kannel-type
SMSC):
username=...&password=...&to=%2B4917000000000&text=%00%06xapplication%2Fvnd.wap.mms-message%00%A9curl%2F7.13.1+(powerpc-apple-darwin8.0)+libcurl%2
F7.13.1+OpenSSL%2F0.9.7l+zlib%2F1.2.3%00%9F%80%80%80%8D%FF%C3%93wap-a&udh=%0B%05%04%0B%84%23%F0%00%03%00%02%01&from=1234&coding=1
username=...&password=...&to=%2B491700000000&text=pplication-id%3A4%0D%0A%0D%0A%8C%82%98AmwxdJKCOE5waJkqI%00%8D%90%89%1A%80%2B491700000000%2FTYP
E%3DPLMN%00%8A%80%8E%02%01%13%88%05%81%03%02%A3%00%83http%3A%2F%2Fxyz%2Fmmsc%2F1_2%3FAmwxdJKCOE5waJkqI%00&udh=%0B%05%04%0B%84%23%F0%00%03%00%02%02&from=1234&coding=1
Quite a lot of this is not required for a valid MMS push, prolongs the
message length and might lead to a further short message for the push.
Cheers,
Georg