We are not ignoring your posting.  We are having a hard time trying
to read your mind since you are providing us with very little information
to try and deduce your current setup.

From the looks of the log, I would say you are not using Kannel
directly but playsms.  Playsms uses Kannel as an SMS gateway.

Playsms (from my brief glance of it) is a set of PHP scripts that 
handle the communication between you and the SMS gateway.

The "sendsms sender ..." line comes from the smsbox.  The
"Parsing URL ..." line occurs either from a get-url/post-url inside
a sms-service or a send-url inside the HTTP SMSC declaration.
Since it is coming after the sendsms, I would deduce that your
have setup an HTTP SMSC configuration. When you submit an
sendsms to Kannel, the HTTP SMSC handles the MT SMS and
sends it to the Playsms proxy for handling.

Now, guessing at this possible configuration (since you did not
provide it for us), I would assume that the Playsms proxy PHP
script is the program that is escaping the single (') and double (")
quotes a backslash (\). I believe that the Playsms PHP scripts
are the culprit and not Kannel.

I can tell you that the Kannel source code obtained from www.kannel.org
for the bearerbox and smsbox do not add backslashes to the code.
The bearerbox will convert latin1 to GSM7
(gateway/gwlib/charset.c:charset_latin1_to_gsm()).  But, the single
and double quotes are the same in both character sets.

If my assumptions are wrong then please post your configurations
so we can better help you with your problem.

See ya...

d.c.

**>Date: Fri,  4 Mar 2005 17:28:21 +0100
**>From: [EMAIL PROTECTED]
**>To: Guillaume Cottenceau <[EMAIL PROTECTED]>
**>Subject: Re: Please help : Pbs with quote and backslash
**>In-Reply-To: <[EMAIL PROTECTED]>
**>
**>I'm using this version :
**>2005-03-04 11:51:25 [8231] [0] INFO: Kannel bearerbox II version 1.4.0 
starting
**>
**>And yes, I don't understand where is the bug, here is my log :
**>
**>smsbox.log
**>2005-03-04 14:06:24 [8254] [3] INFO: sendsms sender:<titext:Cyrille>
**>(213.41.137.61) to:<0033617730247> msg:<salut " et ' et \>
**>2005-03-04 14:06:29 [8264] [9] DEBUG: Parsing URL
**>`http://127.0.0.1/~playsms/proxy.php?dlr-type=8&myid=2384&username=xxxx&password=xxxx&dlr-mask=31&from=Cyrille&to=00336xxxxx&text=salut+%22+et+%27+et+%5C':
**>2005-03-04 14:06:29 [8264] [9] DEBUG:   Query:
**>dlr-type=8&myid=2384&username=xxxx&password=xxxx&dlr-mask=31&from=Cyrille&to=0033xxxxxx&text=salut+%22+et+%27+et+%5C
**>2005-03-04 14:07:39 [8264] [9] DEBUG: Parsing URL
**>`http://127.0.0.1/~playsms/proxy.php?dlr-type=1&myid=2384&username=xxxx&password=xxxx&dlr-mask=31&from=Cyrille&to=0033xxxxx&text=salut+%22+et+%27+et+%5C':
**>
**>2005-03-04 14:06:24 [8254] [3] INFO: sendsms sender:<xxxx:Cyrille>
**>(xxx.xxx.137.61) to:<00336xxx> msg:<salut " et ' et \>
**>
**>And kannel-Access.log :
**>2005-03-04 14:06:29 Sent SMS [SMSC:Nokia] [SVC:toto] [ACT:] [BINF:]
**>[from:0033xxxxxx] [to:+336xxxxx] [flags:-1:0:-1:-1:31] [msg:22:salut " et /'
**>et //] [udh:0:]
**>
**>What it surprised me (see the additionnal char), that appears in log only in 
the
**>access log, not before. Do you have idea ?
**>
**>Thanks
**>
**>
**>
**>Quoting Guillaume Cottenceau <[EMAIL PROTECTED]>:
**>
**>> info.ubichip 'at' free.fr writes:
**>>
**>> > Here is an example of the text I send :
**>> >
**>> > salut " et ' et \
**>> >
**>> > so urlencode(text)=salut+%22+et+%27+et+%5C
**>> >
**>> > and what I receive :
**>> >
**>> > salut " et \' et \\
**>>
**>> Strange, I receive it correctly (except \ which is removed by my
**>> application). Are you using an old version? I'm using CVS of a
**>> little while ago.
**>>
**>> smsbox.log:2005-03-04 15:34:17 [32042] [3] INFO: sendsms sender:<xxx>
**>> (127.0.0.1) to:<+41yyy> msg:<salut " et ' et   bye>
**>> smsbox-access.log:2005-03-04 15:34:17 send-SMS request added - sender:xxx
**>> 127.0.0.1 target:+41yyy request: 'salut " et ' et   bye'
**>> kannel-access.log:2005-03-04 15:34:18 Sent SMS [SMSC:xxx] [SVC:xxx] [ACT:]
**>> [BINF:] [from:xxx] [to:+41yyy] [flags:-1:0:-1:-1:2] [msg:21:salut " et ' et
**>> bye] [udh:0:]
**>>

Reply via email to