Nikos,
you are aware that a VM (I personal like Sun xVM, but a question of
what you like best) hosts a full size OS with no restrictions? So you
can for example run a SSH server inside the VM and administer it like
a "real" server? So I don't know what you mean with "tiny window" and
"unable to debug". The console window in my MacOS is resizeable and
think the putty-window under M$ OS either ;-)
I'm running kannel for testing purpose in multiple instances in Sun
xVM with Debian Guest on MacOS host. Works great and is an easy to
configure test enviroment for all the strange ideas and settings that
come to my mind.
Regards
Falko
Am 18.02.2009 um 09:22 schrieb Nikos Balkanas:
Hi,
There have been a number of problems with Cygwin and pthread locks.
Not a kannel issue, but a general cygwin problem experienced in
other software as well (openssl etc.). It is a compilation problem.
Recently I here of more and more people building kannel on Cygwin,
therefore I can only assume that the problem is fixed.
Falco's suggestions are, however, valid. Cygwin has a number of
other issues with shell scripts and other. Performance is not the
least of them. It might be more informative if you download the
latest CVS and run the test suite. I don't know how much faster a VM
machine is (VMware?), but at least it is a pure OS, therefore as
stable and reliable (and difficult to administer). But it is a pain
because they give you only this tiny window, with no chance to debug
if anything goes wrong.
BR,
Nikos
----- Original Message -----
From: Falko Ziemann
To: Low Weng Kin
Cc: [email protected]
Sent: Wednesday, February 18, 2009 8:43 AM
Subject: Re: How to receive sms message from smsc
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