beautypg.com

Kannel post, Xml post, 64 xml post – Nokia WAP and SMS gateway User Manual

Page 72: 9. x-kannel post headers

background image

Chapter 5. Setting up a SMS Gateway

Kannel POST

Kannel can do POST if

service

is contains a

post-url="..."

.

Table 5-9. X-Kannel Post Headers

Parameter (escape code)
equivalent

X-Kannel Header

Notes

%p (from)

X-Kannel-From

Only sent if

send-sender

is

true

%P (to)

X-Kannel-To

%t (time)

X-Kannel-Time

%u (udh)

X-Kannel-UDH

in hex format:

06050415820000

%i (smsc)

X-Kannel-SMSC

- (mclass)

X-Kannel-MClass

- (pid)

X-Kannel-PID

- (alt-dcs)

X-Kannel-Alt-DCS

- (mwi)

X-Kannel-MWI

%c (coding)

X-Kannel-Coding

1=7 Bits, 2=8 Bits, 3=UCS2

- (compress)

X-Kannel-Compress

- (validity)

X-Kannel-Validity

- (deferred)

X-Kannel-Deferred

%n (service name)

X-Kannel-Service

%a or %r (text)

request body

kannel send all words (%a)
unless

strip-keyword

is true

%C (charset)

present in

Content-Type HTTP

Example:

Content-Type:

text/plain;

charset=ISO-8859-1

XML Post

Kannel can send and receive XML POST with the following format:

destination number (to)

originating number (from)

user data (text)

user data header (udh)

mclass

coding

mwi

compress

65