Sms-Service Configurations; Sms-Service Group Variables - Kannel WAP and SMS gateway User Manual

Open source wap and sms gateway
Table of Contents

Advertisement

Variable
smsc-ids
shortcuts
SMS-service configurations
Now that you have an SMS center connection to send and receive SMS messages you need to define
services for incoming messages. This is done via 'sms-service' configuration groups.
These groups define SMS services in the smsbox, so they are only used by the smsbox. Each service is
recognized from the first word in an SMS message and by the number of arguments accepted by the
service configuration (unless
password in the URL in the following manner "http://luser:password@host.domain:port/path?query" we
can perform HTTP Basic authentication.
The simplest service group looks like this:
group = sms-service
keyword = www
get-url = "http://%S"
This service grabs any SMS with two words and 'www' as the first word, and then does an HTTP request
to an URL which is taken from the rest of the message. Any result is sent back to the phone (or
requester), but is truncated to the 160 characters that will fit into an SMS message, naturally.
Service group
has a special meaning: if the incoming message is not routed to any other
default
service,
'sms-service' group is used. You should always define
default
Service group
black-list
service is used to reply to user. If unset, message will be discarded.
Table 5-6. SMS-Service Group Variables
Variable
group (m)
Value
word-list
number-list
configuration variable is used). By adding a username and
catch-all
has a special meaning: if the incoming message is in service's black-list, this
Value
sms-service
Chapter 5. Setting up a SMS Gateway
Description
If set, specifies from which
smsc-ids all inbound messages
should be routed to this smsbox
instance. List contains smsc-ids
seperated by semilon (";"). This
rule may be used to pull any
smsc specific message stream to
an smsbox instance.
If set, specifies which receiver
numbers for inbound messages
should be routed to this smsbox
instance. List contains numbers
seperated by semilon (";"). This
rule may be used to pull receiver
number specific message streams
to an smsbox instance.
service.
default
Description
This is a mandatory variable
57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1.3.1

Table of Contents