thanks a lot Aarno and all.
After all, I try it and at least, I can run the command :)
I try many ways and differents configuration and control files, I don't see any error, but my telephone doesn't receive any alert,yet.
I'm using the kannel 1.3.1 and the patch kwtls. My phones are a Motorola i30sx, i60c and i550 plus.
I don't know if it is a problem that my phone need WTLS support. When I send an alert I don't see that the kwtls patch be involved!
WTLS would be a problem to use kannel ppg, it could be a cause why my phone don't receive an alert when I send one?
Thanks,friends!!! You are very kind! Kisses, Mary
***************************************************************** This is the output I'm getting from test_ppg:
[EMAIL PROTECTED] test]# ./test_ppg -q http://172.24.249.44:3128/cgi-bin/wappush.cgi?username=foo'&'password=bar SI.xml PAP.xml
2003-04-01 18:52:58 [0] INFO: an input without a configuration file assumed
2003-04-01 18:52:58 [0] DEBUG: using SI.xml as a content file
2003-04-01 18:52:58 [0] DEBUG: using PAP.xml as a control file
2003-04-01 18:52:58 [0] DEBUG: Started thread 1 (test/test_ppg.c:push_thread)
2003-04-01 18:52:58 [1] DEBUG: TEST_PPG: starting to push job 0
2003-04-01 18:52:58 [1] DEBUG: Started thread 2 (gwlib/fdset.c:poller)
2003-04-01 18:52:58 [1] DEBUG: Started thread 3 (gwlib/http.c:write_request_thread)
2003-04-01 18:52:58 [1] DEBUG: push done
2003-04-01 18:52:58 [3] DEBUG: HTTP: Opening connection to `172.24.249.44:3128' (fd=13).
2003-04-01 18:52:58 [3] DEBUG: Socket connecting
2003-04-01 18:52:58 [2] DEBUG: Get info about connecting socket
2003-04-01 18:52:58 [2] DEBUG: HTTP: Sending request:
2003-04-01 18:52:58 [2] DEBUG: Octet string at 0x812e1d0:
2003-04-01 18:52:58 [2] DEBUG: len: 1085
2003-04-01 18:52:58 [2] DEBUG: size: 1086
2003-04-01 18:52:58 [2] DEBUG: immutable: 0
2003-04-01 18:52:58 [2] DEBUG: data: 50 4f 53 54 20 2f 63 67 POST /cg
2003-04-01 18:52:58 [2] DEBUG: data: 69 2d 62 69 6e 2f 77 61 i-bin/wa
2003-04-01 18:52:58 [2] DEBUG: data: 70 70 75 73 68 2e 63 67 ppush.cg
................
....................
2003-04-01 18:52:58 [2] DEBUG: data: 3c 2f 73 69 3e 0d 0a 2d </si>..-
2003-04-01 18:52:58 [2] DEBUG: data: 2d 61 73 64 6c 66 6b 6a -asdlfkj
2003-04-01 18:52:58 [2] DEBUG: data: 69 75 72 77 67 68 61 73 iurwghas
2003-04-01 18:52:58 [2] DEBUG: data: 66 2d 2d 0d 0a f--..
2003-04-01 18:52:58 [2] DEBUG: Octet string dump ends.
2003-04-01 18:52:58 [2] DEBUG: HTTP: Status line: <HTTP/1.1 202 Foo>
2003-04-01 18:52:58 [1] DEBUG: TEST_PPG: push 0 done: reply from, http://172.24.249.44:3128/cgi-bin/wappush.cgi?username=foo&password=bar
2003-04-01 18:52:58 [1] DEBUG: PAP COMPILER: doing semantic analysis for address type unknown address
2003-04-01 18:52:58 [1] DEBUG: using defaults instead of anys
2003-04-01 18:52:58 [1] DEBUG: TEST_PPG: and type push response
2003-04-01 18:52:58 [1] INFO: TEST_PPG: In thread 1 1 succeeded, 0 failed
2003-04-01 18:52:58 [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) terminates.
2003-04-01 18:52:58 [0] INFO: TEST_PPG: 1 requests in 0.000000 seconds, inf requests per second
2003-04-01 18:52:58 [0] DEBUG: Waiting for 3 (gwlib/http.c:write_request_thread) to terminate
2003-04-01 18:52:58 [3] DEBUG: Thread 3 (gwlib/http.c:write_request_thread) terminates.
2003-04-01 18:52:58 [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) terminates.
2003-04-01 18:52:58 [0] DEBUG: Immutable octet strings: 41.
**************************************************************
This is the output I'm getting from the wap_box:
.....................
2003-04-01 18:52:58 [11] DEBUG: HTTP: Creating HTTPClient for `172.24.249.44'.
2003-04-01 18:52:58 [14] DEBUG: PPG: ip_allowed_by_ppg: ip found from allowed list
2003-04-01 18:52:58 [14] INFO: PPG: Accept request </cgi-bin/wappush.cgi> from <172.24.249.44>
2003-04-01 18:52:58 [14] DEBUG: PPG: http_read_thread: pap multipart accepted
2003-04-01 18:52:58 [14] INFO: client address was <10.98.146.251>, accepted
2003-04-01 18:52:58 [14] DEBUG: PAP COMPILER: doing semantic analysis for address type a IPv4 address
2003-04-01 18:52:58 [14] DEBUG: PAP COMPILER: network or bearer missing, reverting to GSM+CSD
2003-04-01 18:52:58 [14] INFO: reverting to default bearer and network
2003-04-01 18:52:58 [14] DEBUG: PPG: http_read_thread: pap control entity compiled ok
2003-04-01 18:52:58 [14] DEBUG: PPG: transform_message: push message content and headers valid
2003-04-01 18:52:58 [14] DEBUG: PPG: push machine 0 created
2003-04-01 18:52:58 [14] DEBUG: PPG: store_push_data: push machine 0 appended to unit push list
2003-04-01 18:52:58 [14] DEBUG: PPG: send_push_response: telling pi
2003-04-01 18:52:58 [14] DEBUG: HTTP: Resetting HTTPClient for `172.24.249.44'.
2003-04-01 18:52:58 [14] INFO: PPG: handle_push_message: push message accepted for processing
2003-04-01 18:52:58 [9] DEBUG: OTA: event arrived
2003-04-01 18:52:58 [9] DEBUG: OTA: made connectionless session service request
2003-04-01 18:52:58 [2] DEBUG: WSP_UNIT: Connectionless push accepted
2003-04-01 18:52:58 [2] DEBUG: WSP_UNIT: delivering to wdp
2003-04-01 18:52:58 [14] DEBUG: PPG: OTA request for unit push
2003-04-01 18:52:58 [14] INFO: PPG: unconfirmed push delivered to OTA
2003-04-01 18:52:58 [14] DEBUG: PPG: destroying push machine 0
2003-04-01 18:52:58 [10] DEBUG: HTTP: Destroying HTTPClient area 0x81760e8.
2003-04-01 18:52:58 [10] DEBUG: HTTP: Destroying HTTPClient for `172.24.249.44
********************************************************************
My kannel.conf:
# PPG CORE SETUP group = ppg ppg-url = /cgi-bin/wappush.cgi ppg-port = 3128 concurrent-pushes = 100 trusted-pi = false users = 1024 ppg-allow-ip = 127.0.0.1;172.24.249.44 global-sender = 123456 ssl-server-cert-file = "cert.pem" ssl-server-key-file = "key.pem"
# PPG USER SETUP group = wap-push-user wap-push-user = foo ppg-username = foo ppg-password = bar
# SMSC CONNECTIONS, for pushing SI, group = smsc smsc = http smsc-id = HTTP port = 10000 system-type = kannel smsc-username = foo smsc-password = bar no-sender = true no-coding = true send-url=http://host:port/path
# SMSBOX SETUP group = smsbox bearerbox-host = localhost
******************************************************************* and the pap.xml: 10.98.146.251 is the my phone ip.
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap>
<push-message push-id="[EMAIL PROTECTED]"
deliver-before-timestamp="2003-04-04T06:45:00Z"
deliver-after-timestamp="2000-02-27T06:45:00Z"
progress-notes-requested="false">
<address address-value="WAPPUSH=10.98.146.251/[EMAIL PROTECTED]"></address>
</push-message>
</pap>
****************************************************************
From: Aarno Syv�nen <[EMAIL PROTECTED]> To: "Mary McCarter" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: wap push alert Date: Tue, 1 Apr 2003 11:02:47 +0200
You must escape & (it is, write '&' ). & has a special meaning for the shell
(run the process background).
Aarno
On Monday, March 31, 2003, at 08:42 PM, Mary McCarter wrote:
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
