Hi Marko,
I recently have been working on the same problem.
In general any Nokia that understands Wap1.2 is able to process Wap Push Messages...at least when those are activated. Take a look on the phone's configuration options for "service messages" (that's how they're called on Nokia).
There is two further issues with Wap Push Messages. The first is that not ever cell is able to display them (had that problem on every Samsung and Toshiba on wich I've been able to test it) so that it seems like at least some of the east-asian brands understand Wap1.2 but have no Wap Push Message support, but don't ask me why=/. The second issue is that some network operators deactivated sending of Wap Push Messages unless you're doing it over one of their special gateways (causing additional fees).
Hope this solved your problem, Christian.
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 = "*" log-file = "/var/log/kannel/bearerbox.log"
# ============ # SMSBOX SETUP # ============
group = smsbox bearerbox-host = localhost sendsms-port = 13131 sendsms-url = /cgi-bin/sendsms access-log = "/var/log/kannel/kannel.access" log-file = "/var/log/kannel/smsbox.log" log-level = 0
# ======== # SEND SMS # ========
group = sendsms-user username = foo password = bar user-allow-ip = "127.0.0.1"
# ======== # SERVICES # ========
# Default service. group = sms-service keyword = default get-url = "http://127.0.0.1:80/myservice.php?k=%k&k_s=%s" max-messages = 0
# ============ # WAPBOX SETUP # ============
group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" log-level = 0 syslog-level = none
# =============================== # PUSH PROXY GATEWAY FOR WAP PUSH # ===============================
group = ppg ppg-url = /wappush ppg-port = 13331 concurrent-pushes = 100 users = 1024 ppg-allow-ip = 127.0.0.1 trusted-pi = true
group = wap-push-user wap-push-user = testuser ppg-username = foo ppg-password = bar allow-ip = 127.0.0.1
# ================ # SMSC CONNECTIONS # ================
group = smsc smsc = smpp host = ***.***.***.*** port = ***** receive-port = ***** smsc-id = MYSMSC allowed-smsc-id = MYSMSC system-type = "VMA" enquire-link-interval = 60 address-range = "" connect-allow-ip = "127.0.0.1" smsc-username = un smsc-password = pw
