Hi,
I have a newbie question: I just started to use Kannel and successfully made
this work:
./bearerbox -v 1 sms_GATEWAY_k700i.conf
./smsbox sms_GATEWAY_k700i.conf
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095text=(insertyou
text here)
So, I can send sms'es...
hi,
if you want to receive messages you have to set up a sms-service in your
config. there are multiple ways. you can send the content via parameters
to a script (see exec) or to an url, for example (get-url). the content
of the message is accessible by the parameters like %b for full binary
Also to send the same sms message to multiple recipients:
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095+123456+78910+etc.text=(insert
text)
This will send an sms message to 30957095, 123456, 78910, etc.
== Rene
-Original Message-
From:
Hello,
Thanks a lot (also to Rene K.). I somehow made it reply with the message:
Could not fetch content, sorry, but I'll google that and look in the
archive later about that...
Forgive me for the stupid question, but I still don't completely understand
the 2 examples (exec and get-url)...
hi again,
At first you have to declare the location, which will handle the
incoming messages. In your case you selected in your config at group =
sms-service
get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a;.
You have to run an http server at your localhost. in its content
Hi Thomas,
Thanks a lot for your help and clarifications. If I understand it correctly,
then I can either run a webserver OR use the exec-solution. Because I prefer
not to run all this http overlay and webserver-stuff (I prefer terminal),
then I modified my config file to reflect this:
Hmm For some reason I can see that not my whole message appears in
the archive... Here's the rest of my previous message:
Now, here comes the hardest part I think... And in this case I think I need
to dig into Sony Ericsson K700i init-string or something... I tried
screen
hmmm.. Stupid forum archive, seems not to like my line with the number
17 and enter, so I'll just skip that line, here's the rest of my
message:
From this point I get a lot of CMS ERROR: 500 which I can see is an
error that is specifically targeted towards Sony Ericcson, so it's
hard for me to
Stupid forum, here's my log with preceding arrows (can't believe
what's happening) --:
-
-
2010-06-06 22:21:29 [977] [6] DEBUG:
AT2[/dev/cu.MartinsPhone-SerialPort2]: +CMTI incoming SMS indication:
+CMTI: ME,18
2010-06-06 22:21:30 [977] [6] DEBUG:
Hi,
Please make sure that:
/dev/cu.MartinsPhone-SerialPort2
has read/write permissions for kannel user (or any other user you run kannel
under). In ubuntu systems you just need to assign group dial to kannel user.
BR,
Nikos
- Original Message -
From: Martin J. uno...@jay.net
To:
hi,
you forgot the parameters like %a for the text or %q for the sender.
exec = /Users/mac/Documents/gateway/gw/sms.sh %q %Q %t %u %a %b
otherwise the script don't get the content of the messages. You can find
a list with all parameter in the kannel documentation ( search for: Parameters
Hi,
Ok, now I'm closer than ever... the link below has +rw and now smsbox
reads the message and my phone number, when it receives an sms... The
only thing I'm missing now, is that for some reason the exec-script
isn't run... See my other post...
Regards,
Martin
2010/6/7 Nikos Balkanas
Hi,
Thanks for your comments. I'm not a bash expert, but had to google for
tee because that's a command I can't remember ever having used... I
now fully understand the sms.sh script and can modify it to fit my
needs... However, I can see that the exec-statement is never being
run...
On Mon,
hi,
have you set execution permission for the script?
BR,
Thomas
On Mon, Jun 07, 2010 at 03:36:59AM +0200, Martin J. wrote:
| Hi,
|
| Ok, now I'm closer than ever... the link below has +rw and now smsbox
| reads the message and my phone number, when it receives an sms... The
| only thing I'm
On Mon, Jun 7, 2010 at 3:59 AM, Thomas Sieh ts...@gmx.de wrote:
hi,
have you set execution permission for the script?
BR,
Thomas
Hi,
Yep, that's not the problem... I typed in:
/Users/mac/Documents/gateway/gw/sms.sh in the terminal and in ran. I
also tried two config-file versions:
1) exec
BTW:
I have one idea, but I hope it doesn't have anything to do with that...
I didn't wanted Kannel to install all kinds of garbage in /usr/bin and
/etc or wherever it wanted to install itself. Therefore I didn't do a
make install, just make and I'm running the binaries right out from
hi,
If you run the script from the terminal the variables %q %t %u can't be
resolved. you should see %q %t %u instead in the file.
But if you send a message per sms to your k700, they should be replaced
by the sender, the time and the UDH.
have you got write permission to the file with the
this should not be your problem. if you execute the script by hand and
you don't get the corresponding output in the result file, there is a
problem with the script. I think with the permission from the
resultfile, if you have execute permissions to the script file.
br,
thomas
On Mon, Jun 07,
18 matches
Mail list logo