**>Date: Tue, 1 Mar 2005 16:44:42 +0300 **>From: Allan hank <[EMAIL PROTECTED]> **>To: [email protected] **>Subject: Recieving SMS **> **>Hello, **> **>I'm using a nokia premicell, connected to a FressBSD server running **>Kannel 1.2.1. **>I can send SMSes well but i do not know how to receive. **>Is there a way i can have SMSes sent to that number stored somewhere **>on a computer or forwarded to an email address? **>At the moment, the messages are just stored on the SIM Card which i **>can only view if i remove it from the premicell and put it in a phone. **>The need is have those messages forward to an email address or stored **>on some computer (i can write a script to forward them to an email). **> **>Thanks for all the suggestions,
First of all, I would suggest you move up to v1.4.0 stable instead of staying on v1.2.1. Second, read the v1.4.0 userguide. It has all the information you would need to accomplish your enquiry. The easiest way to handle incoming SMS would be to use the sms-service feature to instruct the smsbox to forward the SMS to a remove HTTP server for handling. Something like the following would be in your Kannel configuration file: group = sms-service keyword = default catchall = true send-sender = true post-url = "http://target.http.server:port/cgi-bin/that.handles.incoming.sms" You then create a CGI program that will run in the "target.http.server" HTTP server. The CGI would need to handle an HTTP_POST originating from Kannel's smsbox. The HTTP_POST would send the contents of the SMS as the payload and the HTTP Optional Headers would contain Kannel-specific optional headers with a signature of "X-Kannel-" as the prefix. For examples of what an post-url would look like when sent to your CGI, search the [email protected] mailing list for keywords: HTTP_POST X-Kannel-From X-Kannel-To Once your CGI program has the SMS, you can do whatever you want with the SMS. See ya... d.c.
