Nokia WAP and SMS gateway Network Card User Manual


 
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:
<?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>
65