Dear,

Thursday, September 21, 2006, 5:29:33 PM, Yudi menulis:

YW> Hello Ady,

YW> ok, the text: (test) is solved by add ''.
YW> So, in smskannel.conf :
YW> exec = "/usr/local/bin/kannel_incoming %t %q '%a'"

YW> when i sent, text: (test)
YW> 2006-09-19 06:33:04 [1399] [4] INFO: Starting to service <(test)> from
YW> <+************> to <1234>
YW> 2006-09-19 06:33:04 [1399] [4] INFO: No reply sent, denied.


YW> but problem when i sent this text:
YW> [EMAIL PROTECTED] (at 3 clock) how?! -/+ 30 $ "cool 'n dry"

YW> there is error:
YW> 2006-09-19 06:43:32 [1399] [4] INFO: Starting to service <foo!msn.com
YW> (at 3 clock) how?! -/+ 30 $ "cool 'n dry"> from <+************> to <1234>
YW> sh: -c: line 1: unexpected EOF while looking for matching `''
YW> sh: -c: line 2: syntax error: unexpected end of file
YW> 2006-09-19 06:43:32 [1399] [4] INFO: No reply sent, denied.


YW> so what's wrong with that?
YW> The problem is text: "cool 'n dry"

+++ i believe you already solve this problem, sorry i come up with old
thread again because i'm having same problem like urs :-)

i tried sending sms which contain ' ( also error, i believe this is
application error not kannel, i just want to know how you solve the
problem ? could you please share here ?

2007-02-13 18:44:48 [4368] [4] INFO: Starting delivery report <SMSThrower> from 
<+628126991111>
2007-02-13 18:44:52 [4368] [4] INFO: Starting to service <test \' test ) test \ 
> from <+628126991111> to <1234>
sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `/usr/local/bin/kannel_incoming 2007-02-13+11:57:31 
%2B628126991111 'test+%5C'+test+)+test+%5C''
2007-02-13 18:44:52 [4368] [4] INFO: No reply sent, denied.
2007-02-13 18:44:56 [4368] [4] INFO: Starting delivery report <SMSThrower> from 
<+628126991111>
2007-02-13 18:46:41 [4368] [4] INFO: Starting to service <test ( ) ' "> from 
<+6281360822222> to <1234>
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
2007-02-13 18:46:41 [4368] [4] INFO: No reply sent, denied.
2007-02-13 18:47:29 [4368] [4] INFO: Starting to service <(> from 
<+6281360822222> to <1234>
2007-02-13 18:47:29 [4368] [4] INFO: No reply sent, denied.
2007-02-13 18:47:48 [4368] [4] INFO: Starting to service <'> from 
<+6281360822222> to <1234>
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file


in kannel, i put line like this :

group = sms-service
keyword = default
max-messages = 0
exec ="/usr/local/bin/kannel_incoming %t %q '%a'"

and for /usr/local/bin/kannel_incoming

i believe same like yours as well :

#!/bin/bash
KANNEL_PATH="/usr/local"
KANNEL_FILE=`mktemp -q $KANNEL_PATH/cache/smsd/ERR.in.XXXXXX`
touch $KANNEL_FILE
chmod 666 $KANNEL_FILE
# exec = /usr/local/bin/kannel_incoming %t %q %a
# $1 : %t
# $2 : %q
# $3 : %a
echo -e "$1\n$2" > $KANNEL_FILE
echo $3 >> $KANNEL_FILE

i tried changing echo $3 to echo -e "$3" still can't resolv :-)
i also read email from Stuart Beck to convert it to %28 but
stuck how to convert it :-) is there any doc that i can read about
this issue ? please advice.



-- 
Best regards,
  avudz


Reply via email to