Hi,
while trying to use Kannel as PPG, we hang on this. Kannel does seem to understand our SI related part of conversation.
192.168.1.87 is PHP bos that try to be SI and 192.168.1.78 is Kannel box with bearerbox, wapbox and test_http_server runnig.
Any help ?
Request sent :
POST /wappush HTTP/1.1
Host: 192.168.1.78:8080
Content-Type: multipart/related; boundary=asdlfkjiurwghasf; type="application/xml"
X-WAP-Application-Id: http://www.wiral.com:wml.ua
Content-Length: 1266
--asdlfkjiurwghasf
Content-Type: application/xml
<?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-09-28T06:45:00Z"
deliver-after-timestamp="2001-02-28T06:45:00Z"
progress-notes-requested="false">
<address address-value="WAPPUSH=+33670556634/[EMAIL PROTECTED]"/>
<quality-of-service priority="low"
delivery-method="unconfirmed"
network-required="true"
network="GSM"
bearer-required="true"
bearer="SMS"/>
</push-message>
</pap>
--asdlfkjiurwghasf
Content-Type: text/vnd.wap.si
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd">
<si>
<indication href="http://d.ispinfo.fr/cebtp/wap/"
si-id="[EMAIL PROTECTED]"
action="signal-high"
created="1999-06-25T15:23:15Z"
si-expires="2005-06-30T00:00:00Z"> Consulter
</indication>
</si>PPG logs :
2005-01-19 15:07:56 [8337] [11] DEBUG: HTTP: Creating HTTPClient for `192.168.1.87'.
2005-01-19 15:07:56 [8337] [14] INFO: PPG: Accept request </wappush> from <192.168.1.87>
2005-01-19 15:07:56 [8337] [14] WARNING: erroneous control headers
2005-01-19 15:07:56 [8337] [14] DEBUG: PPG: send_bad_message_response: telling pi
2005-01-19 15:07:56 [8337] [14] DEBUG: HTTP: Resetting HTTPClient for `192.168.1.87'.
2005-01-19 15:07:56 [8337] [14] WARNING: PPG: unable to parse mime content, the request unacceptable
2005-01-19 15:08:54 [8337] [10] DEBUG: HTTP: Destroying HTTPClient area 0x85185c0.
2005-01-19 15:08:54 [8337] [10] DEBUG: HTTP: Destroying HTTPClient for `192.168.1.87'.
PPG answer :
HTTP/1.1 202 Accepted Server: Kannel/1.4.0 Content-Length: 820 Content-Type: application/xml
<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><badmessage-response code="2000" desc="Not understood due to malformed syntax" bad-message-fragment="Content-Type: text/vnd.wap.si
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd">
<si>
<indication href="http://d.ispinfo.fr/cebtp/wap/"
si-id="[EMAIL PROTECTED]"
action="signal-high"
created="1999-06-25T15:23:15Z"
si-expires="2005-06-30T00:00:00Z">
Consulter
</indication>
</si>
--asdlfkjiurwghasf--">
Full conversation :
-- Hubert Adgi�
ISP Informatique www.ispinfo.fr 0890 710 147
POST /wappush HTTP/1.1 Host: 192.168.1.78:8080 Content-Type: multipart/related; boundary=asdlfkjiurwghasf; type="application/xml" X-WAP-Application-Id: http://www.wiral.com:wml.ua Content-Length: 1266
--asdlfkjiurwghasf Content-Type: application/xml <?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-09-28T06:45:00Z" deliver-after-timestamp="2001-02-28T06:45:00Z" progress-notes-requested="false"> <address address-value="WAPPUSH=+33670556634/[EMAIL PROTECTED]"/> <quality-of-service priority="low" delivery-method="unconfirmed" network-required="true" network="GSM" bearer-required="true" bearer="SMS"/> </push-message> </pap> --asdlfkjiurwghasf Con tent-Type: text/vnd.wap.si <?xml version="1.0"?> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd"> <si> <indication href="http://d.ispinfo.fr/cebtp/wap/" si-id="[EMAIL PROTECTED]" action="signal-high" created="1999-06-25T15:23:15Z" si-expires="2005-06-30T00:00:00Z"> Consulter </indication> </si> --asdl fkjiurwghasf-- HTTP/1.1 202 Accepted Server: Kannel/1.4.0 Content-Length: 820 Content-Type: application/xml <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><badmessage-response code="2000" desc="Not understood due to malformed syntax" bad-message-fragment="Content-Type: text/vnd.wap.si <?xml version="1.0"?> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd"> <si> <indication href="http://d.ispinfo.fr/cebtp/wap/" si-id="[EMAIL PROTECTED]" action="signal-high" created="1999-06-25T15:23:15Z" si-expires="2005-06-30T00:00:00Z"> Consulter </indication> </si> --asdlfkjiurwghasf--"></badmessage-response></pap>
