Hi all Following Juan intructions I´m trying to setup a wapbox however I´m receiving a PAP error I ´v no idea where it comes from.
I ´ve googled arround for this PAP error but found no real solution to the issue. I´m using kannel II CVS-20071108 Can someone give me a tip? Regards Alvaro > I'v tried to follow your post but got this errors: > > 2008-01-25 18:59:32 [2417] [11] DEBUG: HTTP: Creating HTTPClient for > `127.0.0.1'. > 2008-01-25 18:59:33 [2417] [11] DEBUG: HTTP: Created HTTPClient area > 0x9f4a408. > 2008-01-25 18:59:33 [2417] [14] INFO: PPG: Accept request </wappush> > from <127.0.0.1> > 2008-01-25 18:59:33 [2417] [14] DEBUG: PPG: http_read_thread: pap > multipart accepted > 2008-01-25 18:59:34 [2417] [14] WARNING: PAP COMPILER: pap_compile: > parse error in pap source > 2008-01-25 18:59:34 [2417] [14] DEBUG: PPG: send_bad_message_response: > telling pi > 2008-01-25 18:59:34 [2417] [14] DEBUG: HTTP: Resetting HTTPClient for > `127.0.0.1'. > 2008-01-25 18:59:34 [2417] [10] DEBUG: HTTP: Destroying HTTPClient > area 0x9f4a408. > 2008-01-25 18:59:34 [2417] [10] DEBUG: HTTP: Destroying HTTPClient for > `127.0.0.1'. > 2008-01-25 18:59:34 [2417] [14] WARNING: PPG: pap control entity > erroneous, the request unacceptable > > [EMAIL PROTECTED]/var/www/html/genms/crons# ./wap-push-test.php > HTTP/1.1 202 Accepted > Server: Kannel/cvs-20071108 > Date: Sat, 26 Jan 2008 00:59:34 GMT > Content-Length: 721 > 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="<?xml version="1.0"?> > <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" > "http://www.wapforum.org/DTD/pap_1.0.dtd" > > <pap> > <push-message push-id="1"> > <address address-value="WAPPUSH=+525538957623/TYPE=PLMN > <at> ppg.nokia.com"/> > <quality-of-service delivery-method="unconfirmed" > network="GSM" > bearer="SMS"/></push-message> > </pap>"></badmessage-response></pap> > [EMAIL PROTECTED]/var/www/html/genms/crons# > > > I'v checked php syntax, LFs and CR but still getting the same error. > > Can you send me to the right direction?? > > Regards > > Alvaro > > > On Jan 24, 2008 8:05 AM, Juan Nin <[EMAIL PROTECTED]> wrote: > > check the linefeeds, etc > > > > on the webpage the code is shown with linebreaks which should not be there > > > > for example, what you may see in the webpage as: > > > > > > '<address > > address-value="WAPPUSH=+'.$country_code.$phone.'/TYPE=PLMN <at> > > ppg.nokia.com"/>'."\r\n". > > '<quality-of-service delivery-method="unconfirmed" > > network="GSM" > > bearer="SMS"/>'. > > > > should be only 2 lines and not 4 > > > > '<address address-value="WAPPUSH=+'.$country_code.$phone.'/TYPE=PLMN > > <at> ppg.nokia.com"/>'."\r\n". > > '<quality-of-service delivery-method="unconfirmed" > > network="GSM" > > bearer="SMS"/>'. > > > > > > > > > > On Jan 24, 2008 10:55 AM, Mike Nwaogu <[EMAIL PROTECTED]> wrote: > > > > > > hate to bother your juan, > > > I'm getting this error, > > > > > > 2008-01-24 07:21:47 [32336] [14] INFO: PPG: Accept request </wappush> from > > > <127.0.0.1> > > > 2008-01-24 07:21:47 [32336] [14] WARNING: PPG: No MIME content received, > > > the > > > request unacceptable > > > > > > and below is my config file. > > > > > > ========CONFIG FILE========== > > > group = core > > > admin-password = digital > > > admin-port = 13006 > > > wapbox-port = 13007 > > > smsbox-port = 13008 > > > wdp-interface-name = * > > > log-file = "/var/log/kannel/bearerbox.log" > > > log-level = 0 > > > access-log = "/var/log/kannel/access.log" > > > > > > group = wapbox > > > bearerbox-host = localhost > > > log-file = "/var/log/wapbox.log" > > > log-level = 0 > > > access-log = "/var/log/kannel/access.log" > > > > > > group = smsbox > > > bearerbox-host = localhost > > > sendsms-port = 13031 > > > sendsms-chars = "0123456789 +-" > > > log-file = /var/log/smsbox.log > > > log-level = 2 > > > > > > group = ppg > > > ppg-url = /wappush > > > ppg-port = 13014 > > > concurrent-pushes = 100 > > > global-sender = "MikeCom" > > > trusted-pi = true > > > users = 1024 > > > ppg-allow-ip = "127.0.0.1" > > > > > > group = wap-push-user > > > wap-push-user = miken > > > ppg-username = foo > > > ppg-password = bar > > > allow-ip = "127.0.0.1" > > > > > > group = sendsms-user > > > username = foo > > > password = bar > > > > > > group = sms-service > > > keyword = default > > > get-url = > > > "http://localhost/mikecom/index.php?SOURCEADDR=%p&DESTADDR=%P&KEYWORD=%k&ID=%I&ORIGIN=%i&MESSAGE=%a" > > > max-messages = 1 > > > catch-all=true > > > > > > ========CONFIG FILE========== > > > > > > Regards, > > > Mike Nwaogu > > > Tel: 234_802_325_6437 > > > Eml: [EMAIL PROTECTED] > > > > > > > > > ----- Original Message ---- > > > From: Juan Nin <[EMAIL PROTECTED]> > > > To: Mike Nwaogu <[EMAIL PROTECTED]> > > > Cc: users@kannel.org > > > Sent: Thursday, January 24, 2008 3:09:24 AM > > > Subject: Re: Setting up wappush > > > > > > http://thread.gmane.org/gmane.comp.mobile.kannel.user/11009 > > > > > > On Jan 23, 2008 4:03 PM, Mike Nwaogu <[EMAIL PROTECTED]> wrote: > > > > > > > > Hey People, > > > > I'm setting up a service were I have to send a wap push as a response to > > > the > > > > subscribers request. > > > > Question is how do I set up kannel to do this and how do compose the > > > > http > > > > url to send a wap push > > > > Regards, > > > > Mike Nwaogu > > > > Tel: 234_802_325_6437 > > > > Eml: [EMAIL PROTECTED] > > > > > > > > > > > > ________________________________ > > > > Never miss a thing. Make Yahoo your homepage. > > > > > > > > > > > > ________________________________ > > > Never miss a thing. Make Yahoo your homepage. > > > > > > > > -- > |-----------------------------------------------------------------------------------------------------------------| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y > Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via > SMS y GPRS online > Visitenos en www.smsglobal.com.mx y www.pravcom.com > -- |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.smsglobal.com.mx y www.pravcom.com