Forguet to add my kannel config: #CORE BEARERBOX group = core admin-port = 13000 smsbox-port = 13001 wapbox-port = 13002 dlr-storage = mysql # usar en vez del MYSQL-DLR #dlr-storage = internal admin-password = user status-password = passwd # box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 access-log = "/var/log/kannel/beareraccess.log" # LOG LEVEL 0 = DEBUG, 4 = INFO
#################################### # TEST WAP group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" access-log = "/var/log/kannel/wapaccess.log" log-level = 0 syslog-level = none group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = "*.*.*.*" trusted-pi = true service-name = ppg1 group = wap-push-user wap-push-user = wappush ppg-username = user ppg-password = pass allow-ip = "*.*.*.*" ################################## # SMSBOX SETUP # group = smsbox bearerbox-host = localhost sendsms-chars = "0123456789 +" sendsms-port = 13013 global-sender = SmsGlobal log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/smsaccess.log" http-request-retry = 3 http-queue-delay = 10 mo-recode = yes # LOG LEVEL 0 = DEBUG, 4 = INFO ##################### ### MODEM GROUPS ### ##################### group = modems id = K510a name = K510a detect-string = "K510" init-string = "AT+CNMI=2,3,0,1,0;+CMEE=2" message-storage = ME keepalive-cmd = AT+CBC;+CSQ reset-string = AT+CFUN=1 group = modems id = T610 name = T610 detect-string = "T610" init-string = AT+CNMI=2,3,0,0,0 message-storage = ME group = modems id = T68 name = T68 detect-string = "T68" init-string = AT+CNMI=3,1,2,0,0 message-storage = ME keepalive-cmd = AT+CBC;+CSQ reset-string = AT+CFUN=1 group = modems id = Enfora1218 name = Enfora1218 need-sleep = true enable-mms = true detect-string = "Enfora" init-string = AT+CNMI=2,1,2,0,0;AT+CMEE=2 message-storage = SM keepalive-cmd = AT+CBC;+CSQ reset-string = AT$RESET ################## #### SMSC AT #### ################## # SMSC ENFORA 1218 I # group = smsc smsc = at smsc-id = t1 modemtype = auto device = /dev/ttyS0 speed = 0 ##denied-smsc-id = click allowed-smsc-id = t1 sim-buffering = false keepalive = 60 max-error-count = 5 log-file = "/var/log/kannel/enforaserial.log" ### SETTINGS PARA ACCESO VIA ### TERMINAL SERVER ###device = rawtcp ###host = 192.168.1.199 ###port = 2100 ## SMSC K510A ## #group = smsc #smsc = at #smsc-id = t #modemtype = auto #device = /dev/ttyACM0 #speed = 115200 ##denied-smsc-id = nxtl_mail; click #allowed-smsc-id = telcel #sim-buffering = true #keepalive = 60 #log-file = "/var/log/kannel/k510a.log" ##max-error-count = 5 # SMSC T610 / T68i # #group = smsc #smsc = at #smsc-id = t #modemtype = auto #device = /dev/ttyUSB0 #speed = 115200 #sim-buffering = false ##denied-smsc-id = click #allowed-smsc-id = t #keepalive = 30 #max-error-count = 5 #### CONEXION A MYSQL LOCALHOST group = mysql-connection id = mydlr host = localhost username = root password = pass database = kannel_db max-connections = 5 #### DLR DB DEFINITION group = dlr-db id = mydlr table = tblkannel_dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc ################################### # SMS SERVICES ################################### # SEND-SMS USERS group = sendsms-user username = user password = paswd name = playsms #user-allow-ip = localhost, 192.168.80.9 #user-deny-ip = *.*.*.* # SMS SERVICE Playsms GET-URL group = sms-service keyword = default concatenation = true get-url = "http://localhost/getmsg.php?t=%t&q=%q&a=%a&inc_smsc=%i" max-messages = 0 On Jan 28, 2008 6:51 PM, Alvaro Cornejo <[EMAIL PROTECTED]> wrote: > 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: [email protected] > > > > 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 > -- |-----------------------------------------------------------------------------------------------------------------| 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
