I am pretty sure that Kannel can receive SMS's from SMPP connections. Well I
have only worked with limited CIMD2 and modem connections but I am sure that
it works with SMPP as well (anyone who knows differently please tell us).
Kannel can be configured to forward an incoming SMS's as an HTTP POST or GET
request to a Web Server. All the SMS related information (including the
message content) are included as HTTP REQUEST Parameters. Languages for
writing web applications such as CGI, PERL, Java Servlets or PHP have
request objects with all the parameters passed from Kannel to the web
server. See the user guide on how to configure redirected replies - Kannel
1.4.0 User's Guide page 113.
In addition Kannel can send an SMS via CIMD2 (or SMPP or modem) by having an
external application making an HTTP POST or GET request to it - Kannel 1.4.0
User's Guide page 115.
So what I am saying is to have a script on a web server like Apache that
waits for an HTTP POST/GET request from a Kannel instance connected via SMPP
configured to accept incoming SMS's, then the script makes another HTTP
POST/GET request to a Kannel instance connected to the commercial SMSC with
CIMD2.
So here is a flow if what I mean:
incoming SMS
|
|
v
Kannel with SMPP makes HTTP Request to Apache Web Server
|
|
v
Script reads the Paramaters containing all the info about the incoming SMS
Script makes an HTTP Request to Kannel for Sending an SMS
passing as parameters the data read from the incoming SMS request
|
|
v
Kannel with CIMD2
|
|
v
outgoing SMS
I hope I didn't make it more confusing.
I think this is a quick and dirty solution but it does require some
programming.
Spyros
-----Original Message-----
From: Matias K. [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 11:12 AM
To: Sakellariou Spyros ([EMAIL PROTECTED])
Cc: [email protected]
Subject: Re: Receiving SMPP connections.
Thank you for your answer, I am a bit confused though. IF Kannel is
not able to receive SMPP connections, how would this solution be of
any benefit? I don't seem to get the big picture. I do understand that
I have to have two smsc instances, one for the receiving SMPP (if that
now is even possible) and one for the sending CIMD2. And I should
somehow route (via http-request for example) the receiving SMPP to the
sending CIMD2. Can somebody try to make me understand what I should
do? Thank you in advance :)
On 6/15/05, Sakellariou Spyros ([EMAIL PROTECTED])
<[EMAIL PROTECTED]> wrote:
> A quick and dirty solution is to have two kanel instances running: one for
> SMPP and one for CIMD2, and write a small cgi script for Apache Web Server
> that accepts HTTP requests for the incoming SMS from the SMPP instance and
> makes an HTTP request for sending the SMS to the CIMD2 instance.
>
> Read the manual on how to configure kannel to make HTTP requests for
> incoming SMS.
> Depending on what you feel more comfortable with, instead of CGI you can
> write a PERL script, PHP, Servlets or whatever can accept and submit HTTP
> requests.
>
> Spyros
>
>