HI,
Your problem is that you are doing all this in a shell script without escaping
your reserverd characters.
its SH that is complaining about the '(', as it would complain about a lot of
other characters
try converting it to %28 (and %29 for ')') and you will probaly find that it
ges through fine.
You will also have similar issues with characters such as $ & ; | [ ] ! ' " `
probably worth running your string through a filter that translates them all to
URL encoded format
Stuart.
Yudi Wijaya wrote:
Hello users,
i tried send a sms from my cellphone to my sms gateway (kannel) use
GSM Modem iTegno 3000.
the message is:
(test)
I already ask some friends that use kannel as their sms gateway and
same problem, kannel can not save the message (ex: to the database),
it's not database problem.. i believe it's kannel problem.
So, what is the problem? i'm sure the problem is with character "(" or
")" without quotes. So, if there is sms with those characters inside,
you'll not receive that sms.
This is the error message in kannel status:
sh: -c: line 1: syntax error near unexpected token `('
sh -c: line 1: `/usr/local/bin/kannel_incoming 2006-09-13+01:21:05
%2Bcellphone_number (test)'
as you see there is (test) in error message, i don't know what's wrong
with this.. it seem the GSM modem already receive the SMS, but kannel
can not read/recoqnize the message, because there is "(" or ")".
actually i haven't tried other characters.. maybe there is problem
with other characters and maybe not.
FYI, i use debian 3.1 and gateway-1.4.0.tar.gz
can you test with your kannel, send a sms to kannel with message:
(test)
can you receive the sms (ex: save it to database, file, etc)?
do you have any solution of this problem?
this really serious problem, because right now my company use kannel
for business communication. I believe there are a lot of sms not saved
to database because the message contains those characters or maybe
other characters.
--
Stuart Beck
Systems Administrator
m.Net Corporation
Level 13, 99 Gawler Place
Adelaide SA 5000, Australia
Tel: +61 8 8210 2029
Fax: +61 8 8211 9620
Mobile: 0433 422 400