Hi,
sorry, just read always and always that people have problems with
Cygwin, pthreats and the bearerbox goes down in panic. But I'm not a
developer, maybe some else can explain it better for you.
Anyway I wouldn't recommend to run a software productive in an
emulator. Emulators are always less stable than a native system or VM
and you loose performance.
Regards
Falko
Am 18.02.2009 um 02:55 schrieb Low Weng Kin:
Dear Falko,
Actually, thanks for your info... BTW, you mentioned previously the
Kannel might encounter some problem inside the Window environment...
Can I know what kind of risk will I be facing in more details?
Regards,
Low
CC: [email protected]
From: [email protected]
To: [email protected]
Subject: Re: How to receive sms message from smsc
Date: Tue, 17 Feb 2009 07:46:45 +0100
You have to set up a webserver, e.g. an Apache, and pop the
messages to a script.
For example you create the webserver on Port 23456 and there is a
PHP script called "sms.php", than you set up a config line inside
kannel looking like this:
group = sms-service
keyword = default
post-url = "http://localhost:23456/sms.php?ORIGINATOR=%p&RECEIVER=
%P&SMS=%a&SOURCE_PRV=%o"
max-messages = 0
Inside sms.php you can get the content of the SMS in the variables
$_GET["ORIGINATOR"] for the sender or $_GET["SMS"] for the content
and so on. Now you can use the SMS inside your script and forward it
to somewhere else, create an answer (if you directly create an
answer in your script, you should set the switch max-messages to
something else than "0") or write it into a database.
Also you can add a plugin to kannel called sqlbox. This makes kannel
to put the message directly into a database. If you're interessted
in that, say it, someone else could surely help you, that's not "my
world".
Regards
Falko
Am 17.02.2009 um 02:50 schrieb Low Weng Kin:
Hello Falko,
Thanks for your reply. after I defined the URL, let's say "http://localhost:23456/sms?phone=
%p&text=&a", how do i retrieve the message? I know that I can see
something like "http://localhost:23456/sms?phone=787812121&text=this_is_a_message
" in the terminal every time there is a new message coming in from
the SMSC. Where are the message stored? How can I actually retrieve
them?
Regards,
Low
CC: [email protected]
From: [email protected]
To: [email protected]
Subject: Re: How to receive sms message from smsc
Date: Mon, 16 Feb 2009 10:36:44 +0100
The SMS is posted as HTTP-Request to an URL you can define inside
the config. Please take a look at the manual.
And better don't use Cygwin for kannel. Install a linux in a VM and
install kannel there, you will soon experience some trouble with
kannel inside cygwin.
Regards
Falko
Am 16.02.2009 um 10:25 schrieb Low Weng Kin:
Hi,
I just finish installing and configuring Kannel on my local PC using
Cygwin. I am currently testing it using SMPPSim.
I just tested the send SMS through HTTP POST to the virtual SMSC. My
question is how to get the incoming SMS from the SMSBox with a
Window application? I want to know the concept on how to retrieving
it.Thank you all in advance.
Best regards,
Low
See all the ways you can stay connected to friends and family
Share your beautiful moments with Photo Gallery. Windows Live Photo
Gallery
Enrich your blog with Windows Live Writer. Windows Live Writer