Nokia WAP and SMS gateway User Manual

Page 65

Advertising
background image

Chapter 5. Setting up a SMS Gateway

Variable

Value

Description

keyword (m)

word

Services are identified by the

first word in the SMS Each ‘%s’
in the URL corresponds to one
word in the SMS message.
Words are separated with spaces.
A keyword is matched only if the
number of words in the SMS
message is the same as the
number of ‘%s’ fields in the
URL. This allows you to
configure the gateway to use
different URLs for the same
keyword depending on the
number of words the SMS
message contains.

aliases

word-list

If the service has aliases, they

are listed as a list with each entry
separated with a semicolon (’;’)

name

string

Optional name to identify the

service in logs. If unset,

keyword

is used.

get-url (c)

URL

Requested URL. The url can

include a list of parameters,
which are parsed before the url is
fetched. See below for these
parameters. Also works with
plain ’url’

post-url (c)

URL

Requested URL. As above, but

request is done as POST, not
GET. Always matches the
keyword, regardless of pattern
matching. See notes on POST
otherwhere.

post-xml (c)

URL

Requested URL. As above, but

request is done as XML POST.
Always matches the keyword,
regardless of pattern matching.
See notes on POST otherwhere
and XML Post

file (c)

filename

File read from a local disc. Use

this variable only if no

url

is set.

All escape codes (parameters) in

url

are supported in filename.

The last character of the file
(usually linefeed) is removed.

58

Advertising