There three other issues:
a) your si-id must be unique. Second si with same si-id could be
discarded.
b) your action should probably be signal-high. This forces the
phone to alert immediately.
c) and si-expires must be a future date.
Aarno
On 10.12.2004, at 18:04, Marko Helle wrote:
Hi all,
Well, I did solve the problem which I described (request
headers were a bit malformed, I will send post later about
how I did it and also some php code to show how wap push
messages are delivered to kannel, but I want to solve this
problem completly so that I dont provide incorrect info).
So, sending works just like it should (kannel logs says that
message is delivered successfully), and my SMSC admin
guy replyed my mail that their logs claims that messages has
been delivered also successfully.
But still I cannot get wap push to my phone.
Phone is nokia 3100 with vodafone sim.
Plain text messages works just fine.
Anyone have any idea what is going on?
I'm completly stuck (really dont know what to do), and any
help would be highly appreciated.
:)Marko
-Original Message-
From: Marko Helle [mailto:[EMAIL PROTECTED]
Sent: 10. joulukuuta 2004 14:54
To: [EMAIL PROTECTED]
Subject: RE: Problem with wap push - solved
Hi,
I already solved this problem, but will post results
a little later...
:)Marko
-Original Message-
From: Marko Helle [mailto:[EMAIL PROTECTED]
Sent: 10. joulukuuta 2004 13:10
To: [EMAIL PROTECTED]
Subject: Problem with wap push
Hi all,
I added following info to this post(TOC):
1) Problem description
2) Post data which I sent to kannel
3) Wap box output
4) Kannel http response
5) Configuration file for Kannel
1) Problem description:
---
Sending/receiving plain SMS works nicely with only SMSC specified
in end of config file (5) :)
But when I try to send wap push (2), wapbox prints errors (3)
and I get error message (4) as response.
Any idea what I'm doing wrong?
:)Marko
2) Post data which I sent to kannel:
POST /wappush HTTP/1.1
Host: localhost
Connection: Close
Content-Type: multipart/related; boundary=asdlfkjiurwghasf;
type=application/xml
Content-length: 1340
--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=123412341324
deliver-before-timestamp=2012-12-28T06:45:00Z
deliver-after-timestamp=2001-02-28T06:45:00Z
progress-notes-requested=false
address
address-value=WAPPUSH=+SomePhoneNumber/TYPE=PLMN/
quality-of-service priority=low
delivery-method=unconfirmed
network-required=true
network=GSM
bearer-required=true
bearer=SMS/
/push-message
/pap
--asdlfkjiurwghasf
Content-Type: application/xml
?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication href=www.someurl.com
si-id=[EMAIL PROTECTED]
action=signal-high
created=1999-06-25T15:23:15Z
si-expires=2002-06-30T00:00:00Z
My First WapPush
/indication
/si
--asdlfkjiurwghasf--
3) Wap box output:
--
2004-12-10 12:40:00 [30093] [11] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2004-12-10 12:40:12 [30096] [14] INFO: PPG: Accept request /wappush
from
127.0.0.1
2004-12-10 12:40:12 [30096] [14] WARNING: PPG: headers_acceptable: got
unacceptable push headers
2004-12-10 12:40:12 [30096] [14] WARNING: PPG: Unparsable push
headers, the
request unacceptable
2004-12-10 12:40:12 [30096] [14] DEBUG: PPG: send_bad_message_response:
telling pi
2004-12-10 12:40:12 [30096] [14] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2004-12-10 12:48:11 [30092] [10] DEBUG: HTTP: Destroying HTTPClient
area
0x81a95d8.
2004-12-10 12:48:11 [30092] [10] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
4) Kannel http response:
HTTP/1.1 202 Accepted
Server: Kannel/1.3.2
Content-Length: 296
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=multipart/related;
boundary=asdlfkjiurwghasf;
/badmessage-response
/pap
5) Configuration file for Kannel:
-
# ===
# BEARERBOX SETUP
# ===
group = core
admin-port = 13000
admin-password = run
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1;192.168.*.*
smsbox-port = 13003
wapbox-port = 13004
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
wdp-interface-name = *