Hi Juan, I tried you mini-howto and get the folowing error in the log. I did not get the push on my mobile. Any help is very much appreciated. TQ
2007-05-31 20:28:28 [10636] [14] INFO: PPG: Accept request </wappush> from <127.0.0.1> 2007-05-31 20:28:28 [10636] [14] WARNING: PPG: headers_acceptable: got unacceptable push headers 2007-05-31 20:28:28 [10636] [14] WARNING: PPG: Unparsable push headers, the request unacceptable On 5/31/07, Juan Nin <[EMAIL PROTECTED]> wrote:
well, that's my mini howto :P you probably have some incorrect linefeeds due to copying the PHP code from the webpage each line from $body and $post must be in a single line for example, from my webbrowser I see this: '<address address-value="WAPPUSH=+'.$country_code.$phone.'/TYPE=PLMN <at> *ppg*.nokia.com"/>'."\r\n". which is in 2 lines, while it should be: '<address address-value="WAPPUSH=+'.$country_code.$phone.'/TYPE=PLMN <at> *ppg*.nokia.com"/>'."\r\n". in only one line (be careful, maybe your mail client cuts it into 2 lines too!!!) so every string in $post and $body must be in a single line I hope I've been clear enough :) if not, let me know! Regards, Juan Raul Martinez wrote: > Hello, I've been following up the PPG Mini Tutorial > [http://article.gmane.org/gmane.comp.mobile.kannel.user/11009/match=ppg+send+url] > and even tried the scripts provided in the article kannel gives me the > following error: > > HTTP/1.1 202 Accepted > Server: Kannel/1.4.1 > Content-Length: 253 > 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=""> > </badmessage-response> > </pap> > > > > So I created a simple control and service indicator XMLs following the simplest > form found in the Users Manual of Kannel but even with it I still get the > "malformed error" > > > > Am I doing it right? > > > > POST /wappush HTTP/1.1 > Host: localhost:8081 > X-Kannel-SMSC: FAKE > Content-Type: multipart/related; boundary=multipart-boundary; > type="application/xml" > Content-Length: 585 > > <?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]"> > <address address-value="WAPPUSH=+358408676001/[EMAIL PROTECTED]"/> > </push-message> > </pap> > > --multipart-boundary > <?xml version="1.0"?> > <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" > "http://www.wapforum.org/DTD/si.dtd"> > <si> > <indication href="http://www.gni.ch" > si-id="[EMAIL PROTECTED]"> > You have 4 new emails > </indication> > </si> > --multipart-boundary-- > > > > >
-- Hj Azaman Hj Suleiman Tel: +6738143127
