Nokia WAP and SMS gateway Manuale Utente

Pagina di 116
Chapter 5. Setting up a SMS Gateway
text/html
Tags are removed, rest is chopped to fit an SMS
message.
text/vnd.wap.wml
Processed like HTML.
text/xml
Processed as a POST-XML. See XML Post
application/octet-stream
The body will be transmitted as the SMS message,
as 8-bit data. This can be avoided by setting
assume-plain-text
variable on for the
SMS-service.
Extended headers
Kannel uses and accepts several X-Kannel headers to be used with SMS-services.
Table 5-8. X-Kannel Headers
SMSPush equivalent
X-Kannel Header
username
X-Kannel-Username
password
X-Kannel-Password
from
X-Kannel-From
to
X-Kannel-To
text
request body
charset
charset as in
Content-Type: text/html;
charset=ISO-8859-1
udh
X-Kannel-UDH
smsc
X-Kannel-SMSC
flash
X-Kannel-Flash
(deprecated, see
X-Kannel-MClass
mclass
X-Kannel-MClass
mwi
X-Kannel-MWI
coding
X-Kannel-Coding
. If unset, defaults to 1 (7 bits)
if
Content-Type
is
text/plain
,
text/html
or
text/vnd.wap.wml
. On
application/octet-stream
, defaults to 8 bits
(2). All other
Content-Type
values are rejected.
validity
X-Kannel-Validity
deferred
X-Kannel-Deferred
dlrmask
X-Kannel-DLR-Mask
dlrurl
X-Kannel-DLR-Url
account
X-Kannel-Account
pid
X-Kannel-PID
alt-dcs
X-Kannel-Alt-DCS
64