Hi List, hi Aarno,
here is what happens when I try to use a recent Kannel CVS
snapshot (todays) with a WAPPush to a IPv4 address (Nokia
Mobile Internet Toolkit):
[jpo@jpo Push]$ ~/CVS/gateway/gw/wapbox pushkannel.conf
2001-11-28 13:41:19 [0] DEBUG: HTTP: SSL library for client side initialized
2001-11-28 13:41:19 [0] DEBUG: HTTP: SSL library for server side initialized
2001-11-28 13:41:19 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2001-11-28 13:41:19 [0] DEBUG: Dumping Cfg 0x81f2900
2001-11-28 13:41:19 [0] DEBUG: filename = <pushkannel.conf>
2001-11-28 13:41:19 [0] DEBUG: dumping group (wapbox):
2001-11-28 13:41:19 [0] DEBUG: <log-level> = <0>
2001-11-28 13:41:19 [0] DEBUG: <log-file> = <wapbox.log>
2001-11-28 13:41:19 [0] DEBUG: <bearerbox-host> = <localhost>
2001-11-28 13:41:19 [0] DEBUG: <group> = <wapbox>
2001-11-28 13:41:19 [0] DEBUG: <syslog-level> = <none>
2001-11-28 13:41:19 [0] DEBUG: dumping group (smsbox):
2001-11-28 13:41:19 [0] DEBUG: <bearerbox-host> = <localhost>
2001-11-28 13:41:19 [0] DEBUG: <group> = <smsbox>
2001-11-28 13:41:19 [0] DEBUG: dumping group (core):
2001-11-28 13:41:19 [0] DEBUG: <wapbox-port> = <13002>
2001-11-28 13:41:19 [0] DEBUG: <log-level> = <1>
2001-11-28 13:41:19 [0] DEBUG: <smsbox-port> = <13001>
2001-11-28 13:41:19 [0] DEBUG: <log-file> = <bearerbox.log>
2001-11-28 13:41:19 [0] DEBUG: <box-allow-ip> = <127.0.0.1>
2001-11-28 13:41:19 [0] DEBUG: <unified-prefix> = <00358,0>
2001-11-28 13:41:19 [0] DEBUG: <admin-password> = <bar>
2001-11-28 13:41:19 [0] DEBUG: <box-deny-ip> = <*.*.*.*>
2001-11-28 13:41:19 [0] DEBUG: <group> = <core>
2001-11-28 13:41:19 [0] DEBUG: <wdp-interface-name> = <*>
2001-11-28 13:41:19 [0] DEBUG: <admin-port> = <13000>
2001-11-28 13:41:19 [0] DEBUG: dumping group (ppg):
2001-11-28 13:41:19 [0] DEBUG: <concurrent-pushes> = <100>
2001-11-28 13:41:19 [0] DEBUG: <trusted-pi> = <true>
2001-11-28 13:41:19 [0] DEBUG: <group> = <ppg>
2001-11-28 13:41:19 [0] DEBUG: <ppg-port> = <8080>
2001-11-28 13:41:19 [0] DEBUG: <ppg-url> = </cgi-bin/wap-push.cgi>
2001-11-28 13:41:19 [0] DEBUG: Dump ends.
2001-11-28 13:41:19 [0] INFO: Added logfile `wapbox.log' with level `0'.
2001-11-28 13:41:19 [0] INFO: Starting to log to file wapbox.log level 0
2001-11-28 13:41:19 [0] DEBUG: syslog parameter is none
2001-11-28 13:41:19 [0] DEBUG: map_url_max = -1
2001-11-28 13:41:19 [0] DEBUG: Kannel wapbox version `cvs'.
System Linux, release 2.2.16-22, version #1 Tue Aug 22 16:49:06 EDT 2000,
machine i686.
Hostname jpo.condat.de, IP 127.0.0.2.
Libxml version 20307.
Using checking malloc.
2001-11-28 13:41:19 [0] INFO:
------------------------------------------------------------
2001-11-28 13:41:19 [0] INFO: Kannel wapbox version cvs starting up.
2001-11-28 13:41:19 [0] DEBUG: Started thread 1
(wap/wsp_session.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 2 (wap/wsp_unit.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 3
(wap/wsp_push_client.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 4 (wap/timers.c:watch_timers)
2001-11-28 13:41:19 [0] DEBUG: Started thread 5 (wap/wtp_init.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 6 (wap/wtp_resp.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 7 (gw/wap-appl.c:main_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 8
(gw/wap-appl.c:return_replies_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 9
(gw/wap_push_ota.c:main_thread)
2001-11-28 13:41:19 [0] INFO: No configuration for any user, continuing
without
2001-11-28 13:41:19 [0] DEBUG: HTTP: Opening server at port 8080.
2001-11-28 13:41:19 [0] DEBUG: Started thread 10 (gwlib/fdset.c:poller)
2001-11-28 13:41:19 [0] DEBUG: Started thread 11
(gwlib/http.c:server_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 12
(gw/wap_push_ppg.c:ota_read_thread)
2001-11-28 13:41:19 [0] DEBUG: Started thread 13
(gw/wap_push_ppg.c:http_read_thread)
2001-11-28 13:41:19 [0] INFO: Connected to bearerbox at localhost port
13002.
2001-11-28 13:41:20 [0] DEBUG: Started thread 14
(gw/heartbeat.c:heartbeat_thread)
2001-11-28 13:41:42 [11] DEBUG: HTTP: Creating HTTPClient for `10.1.25.203'.
2001-11-28 13:41:42 [13] INFO: PPG: Accept request </cgi-bin/wap-push.cgi>
from <10.1.25.203>
2001-11-28 13:41:42 [13] DEBUG: PPG: http_read_thread: pap multipart
accepted
2001-11-28 13:41:42 [13] INFO: client address was <10.1.25.203>, accepted
2001-11-28 13:41:42 [13] DEBUG: PAP COMPILER: doing semantic analysis for
address type a IPv4 address
2001-11-28 13:41:42 [13] DEBUG: PPG: http_read_thread: pap control entity
compiled ok
2001-11-28 13:41:42 [13] DEBUG: PPG: transform_message: push message content
and headers valid
2001-11-28 13:41:42 [13] DEBUG: PPG: push machine 0 created
2001-11-28 13:41:42 [13] DEBUG: PPG: store_push_data: push machine 0
appended to unit push list
2001-11-28 13:41:42 [13] DEBUG: PPG: send_push_response: telling pi
2001-11-28 13:41:42 [13] DEBUG: HTTP: Resetting HTTPClient for
`10.1.25.203'.
2001-11-28 13:41:42 [13] INFO: PPG: handle_push_message: push message
accepted for processing
2001-11-28 13:41:42 [9] DEBUG: OTA: event arrived
2001-11-28 13:41:42 [9] DEBUG: OTA: made connectionless session service
request
2001-11-28 13:41:42 [2] DEBUG: WSP_UNIT: Connectionless push accepted
2001-11-28 13:41:42 [13] DEBUG: PPG: OTA request for unit push
2001-11-28 13:41:42 [13] INFO: PPG: unconfirmed push delivered to OTA
2001-11-28 13:41:42 [13] DEBUG: PPG: destroying push machine 0
2001-11-28 13:41:42 [13] ERROR: Start marker was damaged for area 0x40041868
2001-11-28 13:41:42 [13] ERROR: Could not find area information.
2001-11-28 13:41:42 [13] PANIC: gwlib/octstr.c:2033: seems_valid_real:
Assertion `gw_check_is_allocated(ostr)' failed. (Called from
gwlib/octstr.c:232:octstr_destroy.)
[jpo@jpo Push]$ ~/CVS/gateway/gw/wapbox pushkannel.conf
2001-11-28 13:44:14 [0] DEBUG: HTTP: SSL library for client side initialized
2001-11-28 13:44:14 [0] DEBUG: HTTP: SSL library for server side initialized
2001-11-28 13:44:14 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2001-11-28 13:44:14 [0] DEBUG: Dumping Cfg 0x81f2900
2001-11-28 13:44:14 [0] DEBUG: filename = <pushkannel.conf>
2001-11-28 13:44:14 [0] DEBUG: dumping group (wapbox):
2001-11-28 13:44:14 [0] DEBUG: <log-level> = <0>
2001-11-28 13:44:14 [0] DEBUG: <log-file> = <wapbox.log>
2001-11-28 13:44:14 [0] DEBUG: <bearerbox-host> = <localhost>
2001-11-28 13:44:14 [0] DEBUG: <group> = <wapbox>
2001-11-28 13:44:14 [0] DEBUG: <syslog-level> = <none>
2001-11-28 13:44:14 [0] DEBUG: dumping group (smsbox):
2001-11-28 13:44:14 [0] DEBUG: <bearerbox-host> = <localhost>
2001-11-28 13:44:14 [0] DEBUG: <group> = <smsbox>
2001-11-28 13:44:14 [0] DEBUG: dumping group (core):
2001-11-28 13:44:14 [0] DEBUG: <wapbox-port> = <13002>
2001-11-28 13:44:14 [0] DEBUG: <log-level> = <1>
2001-11-28 13:44:14 [0] DEBUG: <smsbox-port> = <13001>
2001-11-28 13:44:14 [0] DEBUG: <log-file> = <bearerbox.log>
2001-11-28 13:44:14 [0] DEBUG: <box-allow-ip> = <127.0.0.1>
2001-11-28 13:44:14 [0] DEBUG: <unified-prefix> = <00358,0>
2001-11-28 13:44:14 [0] DEBUG: <admin-password> = <bar>
2001-11-28 13:44:14 [0] DEBUG: <box-deny-ip> = <*.*.*.*>
2001-11-28 13:44:14 [0] DEBUG: <group> = <core>
2001-11-28 13:44:14 [0] DEBUG: <wdp-interface-name> = <*>
2001-11-28 13:44:14 [0] DEBUG: <admin-port> = <13000>
2001-11-28 13:44:14 [0] DEBUG: dumping group (ppg):
2001-11-28 13:44:14 [0] DEBUG: <concurrent-pushes> = <100>
2001-11-28 13:44:14 [0] DEBUG: <trusted-pi> = <true>
2001-11-28 13:44:14 [0] DEBUG: <group> = <ppg>
2001-11-28 13:44:14 [0] DEBUG: <ppg-port> = <8080>
2001-11-28 13:44:14 [0] DEBUG: <ppg-url> = </cgi-bin/wap-push.cgi>
2001-11-28 13:44:14 [0] DEBUG: Dump ends.
2001-11-28 13:44:14 [0] INFO: Added logfile `wapbox.log' with level `0'.
2001-11-28 13:44:14 [0] INFO: Starting to log to file wapbox.log level 0
2001-11-28 13:44:14 [0] DEBUG: syslog parameter is none
2001-11-28 13:44:14 [0] DEBUG: map_url_max = -1
2001-11-28 13:44:14 [0] DEBUG: Kannel wapbox version `cvs'.
System Linux, release 2.2.16-22, version #1 Tue Aug 22 16:49:06 EDT 2000,
machine i686.
Hostname jpo.condat.de, IP 127.0.0.2.
Libxml version 20307.
Using checking malloc.
2001-11-28 13:44:14 [0] INFO:
------------------------------------------------------------
2001-11-28 13:44:14 [0] INFO: Kannel wapbox version cvs starting up.
2001-11-28 13:44:14 [0] DEBUG: Started thread 1
(wap/wsp_session.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 2 (wap/wsp_unit.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 3
(wap/wsp_push_client.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 4 (wap/timers.c:watch_timers)
2001-11-28 13:44:14 [0] DEBUG: Started thread 5 (wap/wtp_init.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 6 (wap/wtp_resp.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 7 (gw/wap-appl.c:main_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 8
(gw/wap-appl.c:return_replies_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 9
(gw/wap_push_ota.c:main_thread)
2001-11-28 13:44:14 [0] INFO: No configuration for any user, continuing
without
2001-11-28 13:44:14 [0] DEBUG: HTTP: Opening server at port 8080.
2001-11-28 13:44:14 [0] DEBUG: Started thread 10 (gwlib/fdset.c:poller)
2001-11-28 13:44:14 [0] DEBUG: Started thread 11
(gwlib/http.c:server_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 12
(gw/wap_push_ppg.c:ota_read_thread)
2001-11-28 13:44:14 [0] DEBUG: Started thread 13
(gw/wap_push_ppg.c:http_read_thread)
2001-11-28 13:44:14 [0] INFO: Connected to bearerbox at localhost port
13002.
2001-11-28 13:44:14 [0] DEBUG: Started thread 14
(gw/heartbeat.c:heartbeat_thread)
2001-11-28 13:47:15 [11] DEBUG: HTTP: Creating HTTPClient for `10.1.25.203'.
2001-11-28 13:47:15 [13] INFO: PPG: Accept request </cgi-bin/wap-push.cgi>
from <10.1.25.203>
2001-11-28 13:47:15 [13] DEBUG: PPG: http_read_thread: pap multipart
accepted
2001-11-28 13:47:15 [13] INFO: client address was <10.1.25.203>, accepted
2001-11-28 13:47:15 [13] DEBUG: PAP COMPILER: doing semantic analysis for
address type a IPv4 address
2001-11-28 13:47:15 [13] DEBUG: PPG: http_read_thread: pap control entity
compiled ok
2001-11-28 13:47:15 [13] DEBUG: PPG: transform_message: push message content
and headers valid
2001-11-28 13:47:15 [13] DEBUG: PPG: push machine 0 created
2001-11-28 13:47:15 [13] DEBUG: PPG: store_push_data: push machine 0
appended to unit push list
2001-11-28 13:47:15 [13] DEBUG: PPG: send_push_response: telling pi
2001-11-28 13:47:15 [13] DEBUG: HTTP: Resetting HTTPClient for
`10.1.25.203'.
2001-11-28 13:47:15 [13] INFO: PPG: handle_push_message: push message
accepted for processing
2001-11-28 13:47:15 [9] DEBUG: OTA: event arrived
2001-11-28 13:47:15 [9] DEBUG: OTA: made connectionless session service
request
2001-11-28 13:47:15 [2] DEBUG: WSP_UNIT: Connectionless push accepted
2001-11-28 13:47:15 [13] DEBUG: PPG: OTA request for unit push
2001-11-28 13:47:15 [13] INFO: PPG: unconfirmed push delivered to OTA
2001-11-28 13:47:15 [13] DEBUG: PPG: destroying push machine 0
2001-11-28 13:47:15 [13] ERROR: Start marker was damaged for area 0x40041868
2001-11-28 13:47:15 [13] ERROR: Could not find area information.
2001-11-28 13:47:15 [13] PANIC: gwlib/octstr.c:2033: seems_valid_real:
Assertion `gw_check_is_allocated(ostr)' failed. (Called from
gwlib/octstr.c:232:octstr_destroy.)
Interestingly the bearerbox claims:
2001-11-28 13:44:14 [17] DEBUG: setting up systems for new wapbox
2001-11-28 13:44:14 [17] DEBUG: Started thread 18 (gw/bb_boxc.c:boxc_sender)
2001-11-28 13:47:15 [17] DEBUG: boxc_receiver: got sms from wapbox
2001-11-28 13:47:15 [17] WARNING: No SMSCes to receive message
2001-11-28 13:47:15 [17] WARNING: Message rejected by bearerbox, no router!
2001-11-28 13:47:15 [17] DEBUG: boxc_receiver: got sms from wapbox
2001-11-28 13:47:15 [17] WARNING: No SMSCes to receive message
2001-11-28 13:47:15 [17] WARNING: Message rejected by bearerbox, no router!
2001-11-28 13:47:15 [17] INFO: Connection closed by the box <127.0.0.1>
2001-11-28 13:47:15 [18] DEBUG: Thread 18 (gw/bb_boxc.c:boxc_sender)
terminates.
2001-11-28 13:47:15 [17] DEBUG: Thread 17 (gw/bb_boxc.c:function)
terminates.
Since I do not specify a PLMN address, this seems to be wrong.
Additionally I'm providing an Ethereal trace of the communication between
wapbox and my PI:
POST /cgi-bin/wap-push.cgi HTTP/1.1
Content-Type: multipart/related; boundary="7f7a1e:ea72fdd036:-7d89";
type="application/xml; charset=UTF-8"
User-Agent: Java1.3.0
Host: jpo.condat.de:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-length: 1254
--7f7a1e:ea72fdd036:-7d89
Content-Type: application/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap>
<push-message deliver-after-timestamp="2001-11-28T11:29:40Z"
deliver-before-timestamp="2001-11-28T14:29:40Z"
progress-notes-requested="false"
push-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]">
<address
address-value="[EMAIL PROTECTED]"/>
<quality-of-service bearer="Any" bearer-required="true"
delivery-method="unconfirmed" network="Any"
network-required="true" priority="medium"/>
</push-message>
</pap>
--7f7a1e:ea72fdd036:-7d89
Content-Type: text/vnd.wap.si; charset=UTF-8; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd">
<si>
<indication action="signal-high" created="2001-11-28T12:29:40Z"
href="http://localhost:8081/wps/SRV*3546L-1*C258-4*S"
si-expires="2001-11-28T14:29:40Z"
si-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]">Check
Skyware!</indication>
</si>
--7f7a1e:ea72fdd036:-7d89--
HTTP/1.1 202 Foo
Content-Length: 424
Content-Type: application/xml
Content-Length: 424
<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><push-response
push-id="7f7a1e:ea72fdd036:[EMAIL PROTECTED]" sender-name="jpo.condat.de;
WAP/1.3 (Kannel/cvs)" reply-time="2001-11-28T13:47:15Z"
sender-address="/cgi-bin/wap-push.cgi"></push-response><response-result code
="1001" desc="The request has been accepted for
processing"></response-result></pap>