Confirmed, patch is working.


Alexander Malysh wrote:


Hi again,

oops, Slava thank you for pointing ;)

David can you confirm that attached patch works for you?

On Wednesday 15 October 2003 12:47, David Chkhartishvili wrote:


So, we must edit sources by hand? no patch is avaliable?

Vjacheslav Chekushin wrote:


Hi, all.

This problem and solution was described at:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01749.html

Alexander Malysh wrote:


Sorry, attached patch doesn't work.. Please ignore it...

On Wednesday 15 October 2003 11:58, Alexander Malysh wrote:


Hi David,

make install fixed in cvs, please try it. Thanks for pointing...

Unfortunately, I'm not a wap expert :( I guess, it's just a typo, so


please



try attached patch... Please report if it works and I will commit it
then...

On Wednesday 15 October 2003 08:57, David Chkhartishvili wrote:


Hi Alexander,

I've just tried latest CVS and got errors from 'make install':

./install-sh -c -d /usr/local/kannel-rad2/include/kannel/gwlib
(cd gwlib && find . -type f -name "*.h" | while read a ; do


./install-sh



-c -m 644 $a /usr/local/kannel-rad2/include/kannel/gwlib ; done)
/bin/sh: ./install-sh: not found


[snip]



also, I've experienced wapbox misbehavour:

2003-10-15 11:48:08 [8] DEBUG: WSP: Converting from <text/vnd.wap.wml>
to <application/vnd.wap.wmlc>
2003-10-15 11:48:08 [8] DEBUG: WBXML: Encoding with wbxml version


<1.3>



2003-10-15 11:48:08 [8] DEBUG: WBXML: WML with ExternalID
<-//WAPFORUM//DTD WML 1.1//EN>
2003-10-15 11:48:08 [8] DEBUG: WSP: Content-type is now
<application/vnd.wap.wmlc>, size 114 bytes (before: 333 bytes),


content



body is:
2003-10-15 11:48:08 [8] DEBUG: Octet string at 124a28:
2003-10-15 11:48:08 [8] DEBUG: len: 114
2003-10-15 11:48:08 [8] DEBUG: size: 115
2003-10-15 11:48:08 [8] DEBUG: immutable: 0
2003-10-15 11:48:08 [8] DEBUG: data: 03 04 6a 00 7f e7 55 03 63


61 72



64 30 00 36 03 ..j...U.card0.6.
2003-10-15 11:48:08 [8] DEBUG: data: 4d 61 67 74 69 20 47 53 4d


00 01



e0 07 01 ae 32 Magti GSM......2
2003-10-15 11:48:08 [8] DEBUG: data: 03 6c 6f 67 6f 31 2e 77 62


6d 70



00 0c 03 4d 61 .logo1.wbmp...Ma
2003-10-15 11:48:08 [8] DEBUG: data: 67 74 69 47 53 4d 2e 2e 2e


00 01



26 dc 4a 03 67 gtiGSM.....&.J.g
2003-10-15 11:48:08 [8] DEBUG: data: 65 6f 2e 77 6d 6c 00 01 03


47 65



6f 72 67 69 61 eo.wml...Georgia
2003-10-15 11:48:08 [8] DEBUG: data: 6e 00 01 26 dc 4a 03 65 6e


2f 69



6e 64 65 78 2e n..&.J.en/index.
2003-10-15 11:48:08 [8] DEBUG: data: 77 6d 6c 00 01 03 45 6e 67


6c 69



73 68 00 01 01 wml...English...
2003-10-15 11:48:08 [8] DEBUG: data: 01
01 ..
2003-10-15 11:48:08 [8] DEBUG: Octet string dump ends.
2003-10-15 11:48:08 [8] DEBUG: WSP: Setting Referer URL to
<http://wap.magtigsm.ge/>
2003-10-15 11:48:08 [8] WARNING: WSP: content-type
<application/vnd.wap.wmlc> not supported
2003-10-15 11:48:08 [2] DEBUG: WSP: machine 124600, state CONNECTED,
event S-MethodResult.req
2003-10-15 11:48:08 [2] DEBUG: WSP: method 3, state PROCESSING, event
S-MethodResult.req
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `text/plain', WSP
version 1.2 to binary representation `0x0003'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `Date', WSP version
1.2 to binary representation `0x0012'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `Server', WSP


version



1.2 to binary representation `0x0026'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `Last-Modified',


WSP



version 1.2 to binary representation `0x001d'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `ETag', WSP version
1.2 to binary representation `0x0013'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `Accept-Ranges',


WSP



version 1.2 to binary representation `0x0004'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string


`Content-Length', WSP



version 1.2 to binary representation `0x000d'.
2003-10-15 11:48:08 [2] DEBUG: WSP: Mapping string `Content-Type', WSP
version 1.2 to binary representation `0x0011'.
2003-10-15 11:48:08 [2] DEBUG: WSP 0/3: New method state REPLYING
2003-10-15 11:48:08 [2] DEBUG: WSP 0: New state CONNECTED
2003-10-15 11:48:08 [6] DEBUG: WTP: resp_machine 3, state RESULT_WAIT,
event TR-Result.req.
2003-10-15 11:48:08 [6] DEBUG: WTP: begin_sar_result(): data len = 74
2003-10-15 11:48:08 [6] DEBUG: WTP: dispath_to_wdp(): psn = 0
2003-10-15 11:48:08 [6] DEBUG: WTP 32003-10-15 11:48:08 [16] DEBUG:
boxc_receiver: got wdp from wapbox

: New state RESULT_RESP_WAIT

2003-10-15 11:48:08 [10] DEBUG: udp: sending message
2003-10-15 11:48:09 [9] DEBUG: datagram received

Alexander Malysh wrote:





------------------------------------------------------------------------

Index: gwlib/http.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/http.c,v
retrieving revision 1.205
diff -a -u -r1.205 http.c
--- gwlib/http.c        13 Oct 2003 20:34:40 -0000      1.205
+++ gwlib/http.c        15 Oct 2003 10:50:29 -0000
@@ -3011,7 +3011,7 @@
    found = 0;
    for (i = 0; !found && i < list_len(accepts); ++i) {
        Octstr *header_value = list_get(accepts, i);
-        if (octstr_case_compare(header_value, octstr_imm(what)) == 0)
+        if (octstr_case_search(header_value, octstr_imm(what), 0) != -1)
            found = 1;
    }





--
David Chkhartishvili
Tel: 995 99 182418





Reply via email to