Re: Problem in WAPPUSH

2003-03-29 Thread Stipe Tolj
Hi,

can you please send us a log of the HTTP request that the PI sends to
PPG. You can "capture" that like this:

  $ ./gateway/test/test_http_server &> /tmp/pi.log
  
which starts a HTTP server at port 8080 and simply let the PI trigger
the same way as it would to the PPG.

Please provide us then the pi.log file as attachement.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are



Re: Problem in WAPPUSH

2003-03-29 Thread Stipe Tolj
forget about this. The HTTP header in the PAP control entity gets
handled.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are



Re: Problem in WAPPUSH

2003-03-29 Thread Stipe Tolj
> Hi Stipe,
> I have compiled the new GW. from the CVS, but still I am getting the same
> error.
> I am pasting the logs of ppg + pi_dispatcher below.
> 
> Following is the PPG log
> 2003-03-29 02:35:18 [11] DEBUG: HTTP: Creating HTTPClient for `10.0.0.1'.
> 2003-03-29 02:35:18 [14] INFO: PPG: Accept request  from
> <10.0.0.1>
> 2003-03-29 02:35:18 [14] WARNING: erroneous control entity

ok, I think I got now the reason! This is a *bug* or a *unsupported
feauture*. Kannel's PPG does not parse and handle the HTTP headers
inside the HTTP multiparts!

Which means Jatayuu's PI dispatcher sends the HTTP header

  Content-Type: application/xml

within the PAP control element. And Kannel expects to have the 
control entity here, because the whole multipart is passed to the
libxml2 parsing functions, which then fail.

Hmmm, this means we have to add HTTP header parsing inside the HTTP
multi-parts.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are



Problem in WAPPUSH

2003-03-29 Thread riteshs
Hi Stipe,
I have compiled the new GW. from the CVS, but still I am getting the same
error.
I am pasting the logs of ppg + pi_dispatcher below.


Following is the PPG log
2003-03-29 02:35:18 [11] DEBUG: HTTP: Creating HTTPClient for `10.0.0.1'.
2003-03-29 02:35:18 [14] INFO: PPG: Accept request  from
<10.0.0.1>
2003-03-29 02:35:18 [14] WARNING: erroneous control entity
2003-03-29 02:35:18 [14] DEBUG: PPG: send_bad_message_response: telling pi
2003-03-29 02:35:18 [14] DEBUG: HTTP: Destroying HTTPClient area
0x82184e8.
2003-03-29 02:35:18 [14] DEBUG: HTTP: Destroying HTTPClient for
`10.0.0.1'.
2003-03-29 02:35:18 [14] WARNING: PPG: unable to parse mime content, the
request unacceptable
2003-03-29 02:35:21 [11] DEBUG: HTTP: Creating HTTPClient for `10.0.0.1'.
2003-03-29 02:35:21 [14] INFO: PPG: Accept request  from
<10.0.0.1>
2003-03-29 02:35:21 [14] WARNING: erroneous control entity
2003-03-29 02:35:21 [14] DEBUG: PPG: send_bad_message_response: telling pi
2003-03-29 02:35:21 [14] DEBUG: HTTP: Destroying HTTPClient area
0x8217f88.
2003-03-29 02:35:21 [14] DEBUG: HTTP: Destroying HTTPClient for
`10.0.0.1'.
2003-03-29 02:35:21 [14] WARNING: PPG: unable to parse mime content, the
request unacceptable

Following is the Pi_dispatcher.log

headers are::
[c] [ff83] [ff85] [6d] [6d] [73] [2e] [74] [78] [74] [0]
[ff81] [ffea] [ffc0] [22] [3c] [6d] [6d] [73] [2e] [74] [78]
[74] [3e] [0] [ff8e] [6d] [6d] [73] [2e] [74] [78] [74] [0] 
Headers:
[c][83][85][6d][6d][73][2e][74][78][74][0][81][ea][c0][22][3c][6d][6d][73][2e][74][78][74][3e][0][8e][6d][6d][73][2e][74][78][74][0]
junk: name:[name]param_value[mms.txt]
junk: name:[charset]param_value[106]
headers are::
[1d] [61] [70] [70] [6c] [69] [63] [61] [74] [69] [6f] [6e] [2f] [73] [6d]
[69] [6c] [0] [ff85] [6d] [6d] [73] [2e] [73] [6d] [69] [6c] [0]
[ff81] [ffea] [ffc0] [22] [3c] [41] [41] [41] [41] [3e] [0] 
Headers:
[1d][61][70][70][6c][69][63][61][74][69][6f][6e][2f][73][6d][69][6c][0][85][6d][6d][73][2e][73][6d][69][6c][0][81][ea][c0][22][3c][41][41][41][41][3e][0]
junk: name:[name]param_value[mms.smil]
junk: name:[charset]param_value[106]
29-02-2003 02:35:49 
29-02-2003 02:35:49 PI dispatcher details
29-02-2003 02:35:49 Ppg-Adr [http://127.0.0.1:8080/wappush]
29-02-2003 02:35:49 App-Id  []
29-02-2003 02:35:49 Priority[2]
29-02-2003 02:35:49 Push-Type   [2]
29-02-2003 02:35:49 Dest-Addr   [+123456789/[EMAIL PROTECTED]
29-02-2003 02:35:49 Ser-Type[3]
29-02-2003 02:35:49 Bear-Type   [1]
29-02-2003 02:35:49 DATA SEND:[POST /wappush HTTP/1.1
Host: 127.0.0.1:8080
Connection: close
User-Agent: Jataayu MMS Dispatcher
Accept: text/html
Content-Type: multipart/related; boundary=jataayupi;
type="application/xml"
Content-Length: 733

--jataayupi
Content-Type: application/xml


http://www.wapforum.org/DTD/pap_1.0.dtd";>

http://127.0.0.1:8080/wappush1048885549180428938398211841121024";
source-reference="" >





--jataayupi
X-Wap-Application-Id: x-wap-application:mms.ua
Content-Type: application/vnd.wap.mms-message

4GaU4qqd4_01ZZ09ZZ14kyczM4kc3/1pdYa]
29-02-2003 02:35:50 http response received  [202]
29-02-2003 02:35:50 push id field is null in received data pi_header.c.152
29-02-2003 02:35:50 push response is not in proper format pi_header.c.730
29-02-2003 02:35:50 error in pushing message pi_dispatcher.c.242
29-02-2003 02:35:50 error pushing data to
[+123456789/[EMAIL PROTECTED]
29-02-2003 02:35:50 updating database with retry [4]
message_id[4GaU4qqd4_01ZZ09ZZ14kyczM4kc3/1pdYa]
29-02-2003 02:35:53 error selecting next row [Successful operation.]
pi_main.c.261
29-02-2003 02:35:53 
29-02-2003 02:35:53 PI dispatcher details
29-02-2003 02:35:53 Ppg-Adr [http://127.0.0.1:8080/wappush]
29-02-2003 02:35:53 App-Id  []
29-02-2003 02:35:53 Priority[2]
29-02-2003 02:35:53 Push-Type   [2]
29-02-2003 02:35:53 Dest-Addr   [+123456789/[EMAIL PROTECTED]
29-02-2003 02:35:53 Ser-Type[3]
29-02-2003 02:35:53 Bear-Type   [1]
29-02-2003 02:35:53 DATA SEND:[POST /wappush HTTP/1.1
Host: 127.0.0.1:8080
Connection: close
User-Agent: Jataayu MMS Dispatcher
Accept: text/html
Content-Type: multipart/related; boundary=jataayupi;
type="application/xml"
Content-Length: 732

--jataayupi
Content-Type: application/xml


http://www.wapforum.org/DTD/pap_1.0.dtd";>

http://127.0.0.1:8080/wappush104888555384693088698211841121024";
source-reference="" >





--jataayupi
X-Wap-Application-Id: x-wap-application:mms.ua
Content-Type: application/vnd.wap.mms-message

4GaU4qqd4_01ZZ09ZZ14kyczM4kc3/1pdYa]
29-02-2003 02:35:53 http response received  [202]
29-02-2003 02:35:53 push id field is null in received data pi_header.c.152
29-02-2003 02:35:53 push response is not in proper format pi_header.c.730
29-02-2003 02:35:53 error in pushing message pi_dispatcher.c.242
29-02-2003 02:35:53 error pushing data to
[+123456789/[EMAIL PROTECTED]
29-02-2003 02:35:53 updating database with retry [3]
message_id[4GaU4qqd4_01ZZ09ZZ14kyczM4kc3/1