Kannel Post; Xml Post - Kannel WAP and SMS gateway User Manual

Open source wap and sms gateway
Table of Contents

Advertisement

Kannel POST

Kannel can do POST if
service
Table 5-9. X-Kannel Post Headers
Parameter (escape code)
equivalent
%p (from)
%P (to)
%t (time)
%u (udh)
%i (smsc)
- (mclass)
- (pid)
- (alt-dcs)
- (mwi)
%c (coding)
- (compress)
- (validity)
- (deferred)
%n (service name)
%a or %r (text)
%C (charset)

XML Post

Kannel can send and receive XML POST with the following format:
<?xml version="1.0"?>
<!DOCTYPE ...>
<message>
<submit>
<da><number>destination number (to)</number></da>
<oa><number>originating number (from)</number></oa>
<ud>user data (text)</text>
<udh>user data header (udh)</udh>
<dcs>
<mclass>mclass</mclass>
<coding>coding</coding>
<mwi>mwi</mwi>
<compress>compress</compress>
is contains a
post-url="..."
X-Kannel Header
X-Kannel-From
X-Kannel-To
X-Kannel-Time
X-Kannel-UDH
X-Kannel-SMSC
X-Kannel-MClass
X-Kannel-PID
X-Kannel-Alt-DCS
X-Kannel-MWI
X-Kannel-Coding
X-Kannel-Compress
X-Kannel-Validity
X-Kannel-Deferred
X-Kannel-Service
request body
present in
Chapter 5. Setting up a SMS Gateway
.
Content-Type HTTP
Notes
Only sent if
send
true
in hex format:
0605041582000
1=7 Bits, 2=8 Bit
kannel send all w
unless
strip-ke
Example:
Conten
text/plain;
charset=ISO-8
65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1.3.1

Table of Contents