[PATCH] WAP access-log logging 502 (Bad Gateway) for HTTP requests failing

2003-12-15 Thread Stipe Tolj
Hi list,

here is a patch that will allow to log 502 HTTP response code for
proxied WAP GW requests that did not have any internal HTTP response
code, ie. wapbox could not connect to the port or host was not
reachable.

Please try and vote on commitment.

Stipe

mailto:[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
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-

wap-access.patch
Description: application/unknown-content-type-patch_auto_file


[RFC] Call for more development participation

2003-12-15 Thread Stipe Tolj
Hi list,

we expect that we have a huge ammount of people reading the list
because they use Kannel actively as SMS or/and WAP gateway for their
commercial purposes. 

Alexander and I had a couple of discussions today about how strong (or
consider the word weak better) the participation in the Kannel Group
is concerning bug fixing, feature enhancements and general development
activities.

Unfortunatly we both came to the conclussion that it is *very poor*.

It's almost unacceptable that currently only a couple of people are
commited to the efforts of Kannel and it's future development.

We don't claim responsibility. This is still an open source project
and as people can deside to contribute they can alos deside to stop
contribution. This was the case for WapIT and 3G Lab (as companies) in
example.

But we *do claim* responsibility of parties that take the benefits of
open source by monetozing the work others do for their personal use.
Those people should be aware of their "responsibility" and should
contribute to the benefits of their own and the benefits of those who
made their initial life with Kannel easier.

So please take this as moral conclussion in terms of the upcoming
chrismas days and think about the ideas and roles of participation
within open source software projects... to refraze it in religion
words: "it's worth more to give, then to take."

Stipe

mailto:[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
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: Re[2]: SMSBox PANIC

2003-12-15 Thread Alexander Malysh
Hi Jury,

please try attached patch. 

Note: this patch is not as complete to treat, it's just a few points for a way 
how to fix things. I can only say to all: smsbox is grown with time and is 
now the big, ugly _mess_! 

On Saturday 13 December 2003 16:28, Jury Cherepanov wrote:
> Hello Alexander,
>
> Saturday, December 13, 2003, 5:20:47 PM, you wrote:
>
> AM> Hi,
>
> AM> would you please recode stackframes to addresses as follow:
> AM> addr2line -e path_to_this_smsbox_binary 0x806bea6 0x80707f2 0x806cd8f \
> AM> 0x8051744 0x806497b
>
> AM> or Tip: recompile with '--with-cflags="-rdynamic"'.
>
> AM> Thanks in advance...
>
> AM> On Saturday 13 December 2003 15:53, Jury Cherepanov wrote:
> >> Hello devel,
> >>
> >>   Log:
> >>
> >> cc:/usr/local/wapgw/sbin# tail -f sbox.log
>
> AM> [snip]
>
> >> (text)> 2003-12-13 16:49:10 [3] DEBUG: Status: 403 Answer:
> >>  2003-12-13 16:49:10 [3] PANIC:
> >> gwlib/octstr.c:2238: seems_valid_real: Assertion `ostr->len + 1 <=
> >> ostr->size' failed. (Called from gwlib/octstr.c:304:octstr_destroy.)
> >> 2003-12-13 16:49:10 [3] PANIC: ./smsbox [0x806bea6]
> >> 2003-12-13 16:49:10 [3] PANIC: ./smsbox [0x80707f2]
> >> 2003-12-13 16:49:10 [3] PANIC: ./smsbox [0x806cd8f]
> >> 2003-12-13 16:49:10 [3] PANIC: ./smsbox [0x8051744]
> >> 2003-12-13 16:49:10 [3] PANIC: ./smsbox [0x806497b]
> >> 2003-12-13 16:49:10 [3] PANIC: /lib/libpthread.so.0 [0x4009c10c]
> >> 2003-12-13 16:49:10 [3] PANIC: /lib/libc.so.6(__clone+0x3a) [0x4027083a]
> >>
> >>
> >>
> >> -
> >> Jury Cherepanov
> >> System Developer (Technical Director) , HIGH TECHNOLOGIES
> >> Turaidas 2a, Riga, Latvia
> >> Phone +371-6451718
> >> mailto:[EMAIL PROTECTED]
>
> /tmp/kannel-snapshot/gwlib/log.c:540
> /tmp/kannel-snapshot/gwlib/octstr.c:2239
> /tmp/kannel-snapshot/gwlib/octstr.c:306
> /tmp/kannel-snapshot/gw/smsbox.c:2993
> /tmp/kannel-snapshot/gwlib/gwthread-pthread.c:343
>
> -
> Jury Cherepanov
> System Developer (Technical Director) , HIGH TECHNOLOGIES
> Turaidas 2a, Riga, Latvia
> Phone +371-6451718
> mailto:[EMAIL PROTECTED]

-- 
Best regards / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: a.malysh at centrium.de
web: www.centrium.de
msn: olek2002 at hotmail.com
icq: 98063111
___

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Index: gw/smsbox.c
===
RCS file: /home/cvs/gateway/gw/smsbox.c,v
retrieving revision 1.240
diff -a -u -r1.240 smsbox.c
--- gw/smsbox.c	8 Dec 2003 11:25:44 -	1.240
+++ gw/smsbox.c	15 Dec 2003 21:28:41 -
@@ -560,9 +560,9 @@
 /* requesttype = mt_reply or mt_push. for example, auth is only read on mt_push
  * parse body and populate fields, including replacing body for  value and
  * type to text/plain */
-static void get_x_kannel_from_xml(int requesttype , Octstr **type, Octstr **body, 
+static void get_x_kannel_from_xml(int requesttype , const Octstr *type, const Octstr *body, 
   List *headers, Octstr **from,
-  Octstr **to, Octstr **udh,
+  Octstr **to, Octstr **text, Octstr **udh,
   Octstr **user, Octstr **pass,
   Octstr **smsc, int *mclass, int *mwi,
   int *coding, int *compress,
@@ -573,15 +573,15 @@
   Octstr **binfo)
 {
 
-Octstr *text, *tmp, *tmp2;
+Octstr *tmp, *tmp2;
 long tmplong, where;
 
-tmp = tmp2 = text = NULL;
+tmp = tmp2 = NULL;
 
-debug("sms", 0, "XMLParsing: XML: <%s>", octstr_get_cstr(*body));
+debug("sms", 0, "XMLParsing: XML: <%s>", octstr_get_cstr(body));
 
 /* auth */
-get_tag(*body, octstr_imm("from"), &tmp, 0, 0);
+get_tag(body, octstr_imm("from"), &tmp, 0, 0);
 if(tmp) {
 	if(requesttype == mt_push) {
 	/* user */
@@ -605,7 +605,7 @@
 if(requesttype == mt_push) {
 	/* to (da/number) Multiple tags */ 
 	*tolist = list_create();
-	where = get_tag(*body, octstr_imm("da"), &tmp, 0, 0);
+	where = get_tag(body, octstr_imm("da"), &tmp, 0, 0);
 	if(tmp) {
 	get_tag(tmp, octstr_imm("number"), to, 0, 0);
 	list_append(*tolist, octstr_duplicate(*to));
@@ -613,7 +613,7 @@
 
 	while(tmp && where != -1) {
 		O_DESTROY(tmp);
-		where = get_tag(*body, octstr_imm("da"), &tmp, where, 0);
+		where = get_tag(body, octstr_imm("da"), &tmp, where, 0);
 		if(tmp) {
 		get_tag(tmp, octstr_imm("number"), &tmp2, 0, 0);
 		if(tmp2 != NULL) {
@@ -626,7 +626,7 @@
 }
 
 /* udh */
-get_tag(

Re: [RFC] Call for more development participation

2003-12-15 Thread Phuah Yee Keat
I am definitely interested in contributing, somehow I feel that 
contributing to open source programs gives me a sense of satisfaction!

Though, I would need to be more familiar with the codes first!

I am actually working on the smsc_cpa module, will try to release a 
patch once I got it tested and working.

Cheers,
Phuah Yee Keat
Stipe Tolj wrote:

Hi list,

we expect that we have a huge ammount of people reading the list
because they use Kannel actively as SMS or/and WAP gateway for their
commercial purposes. 

Alexander and I had a couple of discussions today about how strong (or
consider the word weak better) the participation in the Kannel Group
is concerning bug fixing, feature enhancements and general development
activities.
Unfortunatly we both came to the conclussion that it is *very poor*.

It's almost unacceptable that currently only a couple of people are
commited to the efforts of Kannel and it's future development.
We don't claim responsibility. This is still an open source project
and as people can deside to contribute they can alos deside to stop
contribution. This was the case for WapIT and 3G Lab (as companies) in
example.
But we *do claim* responsibility of parties that take the benefits of
open source by monetozing the work others do for their personal use.
Those people should be aware of their "responsibility" and should
contribute to the benefits of their own and the benefits of those who
made their initial life with Kannel easier.
So please take this as moral conclussion in terms of the upcoming
chrismas days and think about the ideas and roles of participation
within open source software projects... to refraze it in religion
words: "it's worth more to give, then to take."
Stipe

mailto:[EMAIL PROTECTED]
---
Wapme Systems AG
Münsterstr. 248
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-