On 24.2.2005, at 16:30, Mauricio Reyes wrote:
Hi,
i´ve been trying to send wap push messages, but it seems that i´m missing something in my configuration, i allready have working the Wap Gateway and the SMS gateway, and teh PPG seems to be up ok. Right know i´m kust using the test_ppg command to verify that the PPG is working fine, but i´m getting this error..
If you have any hints, i will really appreciate it..
Mauricio.
What the log has before this. PPG send "bad message fragment that sometimes helps debugging"
005-02-23 15:53:44 [2] DEBUG: data: 61 73 66 2d 2d 0d 0a asf--..
2005-02-23 15:53:44 [2] DEBUG: Octet string dump ends.
2005-02-23 15:53:44 [2] DEBUG: HTTP: Status line: <HTTP/1.1 202 Foo>
2005-02-23 15:53:44 [1] DEBUG: TEST_PPG: push 0 done: reply from, http://192.168.32.20:8080/wappush?username=foo&password=bar
2005-02-23 15:53:44 [1] DEBUG: PAP COMPILER: doing semantic analysis for address type unknown address
2005-02-23 15:53:44 [1] DEBUG: using defaults instead of anys
2005-02-23 15:53:44 [1] DEBUG: TEST_PPG: and type bad message response
2005-02-23 15:53:44 [1] INFO: TEST_PPG: In thread 1 1 succeeded, 0 failed
2005-02-23 15:53:44 [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) terminates.
2005-02-23 15:53:44 [0] INFO: TEST_PPG: 1 requests in 0.000000 seconds, inf requests per second
2005-02-23 15:53:44 [0] DEBUG: Waiting for 3 (gwlib/http.c:write_request_thread) to terminate
2005-02-23 15:53:44 [3] DEBUG: Thread 3 (gwlib/http.c:write_request_thread) terminates.
2005-02-23 15:53:44 [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) t
<snip>
2005-02-23 15:53:44 [14] INFO: PPG: Accept request </wappush> from <192.168.32.20>
2005-02-23 15:53:44 [14] DEBUG: PPG: http_read_thread: pap multipart accepted
2005-02-23 15:53:44 [14] INFO: client address was <+571585****>, accepted
2005-02-23 15:53:44 [14] WARNING: no such network
2005-02-23 15:53:44 [14] DEBUG: PPG: send_bad_message_response: telling pi
2005-02-23 15:53:44 [14] DEBUG: HTTP: Resetting HTTPClient for `192.168.32.20'.
2005-02-23 15:53:44 [14] WARNING: PPG: pap control entity erroneous, the request unacceptable
So there is a problem pap control doc, in the field defining network used
2005-02-23 15:53:44 [10] DEBUG: HTTP: Destroying HTTPClient area 0x8117ee0.
2005-02-23 15:53:44 [10] DEBUG: HTTP: Destroying HTTPClient for `192.168.32.20'.
<snip>
<?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="2005-02-23T16:45:38Z"
deliver-after-timestamp="2005-02-16T15:29:51Z"
progress-notes-requested="false">
<address address-value="WAPPUSH=+571585****/[EMAIL PROTECTED]"/>
</address>
<quality-of-service priority="low"
delivery-method="confirmed"
network=""
network-required="false"
bearer="SMS"
bearer-required="true"/>
</push-message>
</pap>
Network should be "any", if you do not want to specify it. And quality-of-service should
have a proper end tag (</quality-of-service>).
Aarno