Chapter 5. Setting up a SMS Gateway
Variable
Value
Description
suffix
string
white-list
URL
Load a list of accepted senders
of SMS messages. If a sender of
an SMS message is not in this
list, any message received from
the SMSC is rejected, unless a
black-list
service is defined.
See notes of phone number
format from numhash.h header
file.
black-list
URL
As white-list, but SMS messages
from these numbers are
automatically discarded
Notes:
a.
Even if this service is denied, kannel still searches for other service which accepts the message, or
default service.
b. Like in accepted-smsc, kannel still searches for other service which accepts the message. This way
there could be several services with the same keyword and different results.
Table 5-7. Parameters (Escape Codes)
%k
the keyword in the SMS request (i.e., the first word
in the SMS message)
%s
next word from the SMS message, starting with
the second one (i.e., the first word, the keyword, is
not included); problematic characters for URLs are
encoded (e.g., ’+’ becomes ’%2B’)
%S
same as %s, but ’*’ is converted to ’~’ (useful
when user enters a URL) and URL encoding isn’t
done (all others do URL encode)
%r
words not yet used by %s; e.g., if the message is
"FOO BAR FOOBAR BAZ", and the has been one
%s, %r will mean "FOOBAR BAZ"
%a
all words of the SMS message, including the first
one, with spaces squeezed to one
%b
the original SMS message, in a binary form
%t
the time the message was sent, formatted as
"YYYY-MM-DD HH:MM", e.g., "1999-09-21
14:18"
%p
the phone number of the sender of the SMS
message
62