Hi Adolfo,

Kannel is a gateway, it connects SMSC to content server. So the content 
(server) should be considered as different and separate things from Kannel 
(of course, Kannel and the content server may reside in the same host, but 
still they are two different things). Most sms services are just accessing  
data (content) which is already available.   

Assuming you need general info to run an SMS based services with Kannel:

Basically you do two things:

Configure Kannel to make connection to one (or more) SMSC,
there is some examples configuration in the user's guide for SMPP and possibly 
in the mailing list too. 

After you configure it right, you define services (=the reply or action the 
gateway will do upon receiving certain SMS message) in 'sms-service' group 
configuration. The gateway identified service by keyword, which is the first 
word of SMS message it receive. This is pretty straight forward and can be 
found in SMS-service configurations in the user guide. 

Hence, to access content (which is almost always a database) server, you 
define a service which will execute a script/program and possibly run a 
database query using the sms' keyword (or other word in the sms), as the 
query's keyword.   

For example, I define an sms-service with 'INFO'  as keyword. 

group = sms-service
keyword = INFO
get-url = "http://localhost/action.php?sms=%a&nbr=%p&firstw=%k";

In this example, 'action.php' script will be executed when the gateway receive 
an sms with "INFO" as the sms' first word. Through the "get-url" directive, I 
pass three variable to the "action.php" script with their respective 
contents. For example, "sms=%a" means pass along variable 'sms' to the 
'action.php' script and its contents which is '%a' or the whole text of SMS 
message received. Complete definition is in the user guide. 

In the 'action.php' script, I need to catch all those variable pass via 
'get-url' directive as php variables. Then we start doing things (run 
database query, send email, run another script, .... The point is we have 
information about the incoming sms inside our application script). Output of 
'action.php' script is the reply send back by Kannel to the sms' sender. From 
this point forward,  please put on your programmer hat :-) 

The above is just a simple example trying to explain how to start an 
sms-services with Kannel. 

Regards,
Rudy

On Tuesday 16 September 2003 13:54, Adolf Ahmad MS wrote:
> Help Me,
>
> I want to use Kannel as SMS Based Content Server, the configuration as
> bellows:
>
> Mobile_phone --> SMSC <---SMPP--> KANNEL
>         ^                    |
>
>         |____________|
>
> How to do that and what setting to be done ?
>
>  Adolf Ahmad MS
> <Adolfo> ;-)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


Reply via email to