RE: smsc = http, system-type = kannel

"Rene Kluwen" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
The line comes from smsbox.log.

Rene Kluwen
Chimit

-----Original Message-----
From: Stipe Tolj [mailto:[email protected]]
Sent: dinsdag 29 juni 2004 16:25
To: Rene Kluwen
Cc: [email protected]
Subject: Re: smsc = http, system-type = kannel


Rene Kluwen schrieb:
>
> Does anybody ever use this SMSC? Has it been tested? Is it reliable?
>
> I got two big issues here. One is:
>
> (from the log)
> Parsing URL
>
`http://mexico.XXX.com:13004/?username=XXX&password=XXX&to=31651931985&text=
>
Test+http+%231&from=31651931985&coding=0&account=XXX:kluwen&smsc=SMPPCONN04&
>
dlr-url=http%3A%2F%2Fmexico.kluwen.com%2F~rene%2Fdlr.php%3Ftype%3D%25d%26id%
> 3D315&drl-mask=31'
>
> As you can see, dlr-mask is spelt the wrong way (drl-mask).

correct, this is a stupid typo. commited the following to cvs:

RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
retrieving revision 1.34
diff -u -r1.34 smsc_http.c
--- gw/smsc/smsc_http.c	22 Jan 2004 13:26:04 -0000	1.34
+++ gw/smsc/smsc_http.c	29 Jun 2004 14:20:23 -0000
@@ -362,11 +362,10 @@
     if (sms->sms.smsc_id) /* proxy the smsc-id to the next instance
*/
 	octstr_format_append(url, "&smsc=%S", sms->sms.smsc_id);
     if (sms->sms.dlr_url) {
-        octstr_url_encode(sms->sms.dlr_url);
-        octstr_format_append(url, "&dlr-url=%S", sms->sms.dlr_url);
+        octstr_format_append(url, "&dlr-url=%E", sms->sms.dlr_url);
     }
     if (sms->sms.dlr_mask != DLR_UNDEFINED && sms->sms.dlr_mask !=
DLR_NOTHING)
-        octstr_format_append(url, "&drl-mask=%d", sms->sms.dlr_mask);
+        octstr_format_append(url, "&dlr-mask=%d", sms->sms.dlr_mask);

     headers = list_create();
     debug("smsc.http.kannel", 0, "HTTP[%s]: Start request",



> Another thing is that when trying to do the gateway DLR, I get:
>
> (from the log)
> URL
>
<http%3A%2F%2Fmexico.kluwen.com%2F~rene%2Fdlr.php%3Ftype%3D%25d%26id%3D320>
> doesn't
> start with `http://' nor `https://'

??? hmmm, we need to urlencode the DLR-URL within the HTTP call from
smsc_http to smsbox, right? smsbox should be then requierd to
urldecode the string back again for further processing, right?

from which log does this come?

Stipe

mailto:[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[email protected]
http://www.wapme-systems.de/
-------------------------------------------------------------------

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.