RE: smsc = http, system-type = kannel

2004-07-01 Thread Rene Kluwen

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=XXXpassword=XXXto=31651931985text=

Test+http+%231from=31651931985coding=0account=XXX:kluwensmsc=SMPPCONN04

dlr-url=http%3A%2F%2Fmexico.kluwen.com%2F~rene%2Fdlr.php%3Ftype%3D%25d%26id%
 3D315drl-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 -  1.34
+++ gw/smsc/smsc_http.c 29 Jun 2004 14:20:23 -
@@ -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-




Re: smsc = http, system-type = kannel

2004-06-29 Thread Stipe Tolj
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=XXXpassword=XXXto=31651931985text=
 Test+http+%231from=31651931985coding=0account=XXX:kluwensmsc=SMPPCONN04
 dlr-url=http%3A%2F%2Fmexico.kluwen.com%2F~rene%2Fdlr.php%3Ftype%3D%25d%26id%
 3D315drl-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 -  1.34
+++ gw/smsc/smsc_http.c 29 Jun 2004 14:20:23 -
@@ -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-



smsc = http, system-type = kannel

2004-06-28 Thread Rene Kluwen
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=XXXpassword=XXXto=31651931985text=
Test+http+%231from=31651931985coding=0account=XXX:kluwensmsc=SMPPCONN04
dlr-url=http%3A%2F%2Fmexico.kluwen.com%2F~rene%2Fdlr.php%3Ftype%3D%25d%26id%
3D315drl-mask=31'

As you can see, dlr-mask is spelt the wrong way (drl-mask).

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://'

Cheers!

Rene Kluwen
Chimit


---

Anarchism is a tendency in the history of human thought and action which
seeks to  identify coercive, authoritarian, and hierarchic structures of all
kinds and to challenge their legitimacy -- and if they cannot justify their
legitimacy, which is quite commonly the case, to work to  undermine them and
expand the scope of freedom.

(Noam Chomsky)