you mean Date header ?
Aarno
On Friday, July 4, 2003, at 11:04 AM, Magnus Adler - Sun Microsystems wrote:
Hello,
I have problems getting Kannel to accept WAP push requests from my Java application. I keep getting "erroneous content entity" in the kannel log and "Not understood due to malformed syntax" in the client log. It seems that Kannel doesn't like my date value, even though I think it follows the PAP specs.
I have seen mailings about similar errors, but never a solution in the archives.
I'm not sure about the Kannel version, but I expect it to be 1.2.1
[EMAIL PROTECTED] root]# uname -a Linux sms 2.4.18-24.7.SL #1 Wed Feb 5 22:39:03 PST 2003 i686 unknown
TIA
//Magnus
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# It is run like this:
#
# 1% gw/bearerbox gw/smskannel.conf
# 2% gw/smsbox gw/smskannel.conf
# 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to [EMAIL PROTECTED]
#
# Kalle Marjola May 2000
# Changed for new fakesmsc version by Uoti Urpala Jan 2001
# Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
#
group = core admin-port = 13000 smsbox-port = 13002 wapbox-port = 13003 admin-password = xxx wdp-interface-name = "*" #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/var/log/kannel/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "+358,00358,0;+,00" access-log = "/var/log/kannel/access.log" #store-file = "/tmp/kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem"
# wApbox group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" log-level = 0 syslog-level = none
# SMSC CONNECTIONS
group = smsc smsc = at2 smsc-id = WCE modemtype = auto device = /dev/ttyS1 speed = 9600 pin = xxx #sms-center = +46705008999 my-number=+46xxx #unified-prefix = +
#port = 10000 #connect-allow-ip = 127.0.0.1
# SMSBOX SETUP
group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = "0123456789 +-" log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/access.log"
# PPG group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = "*.*.*.*" #ppg-deny-ip = 194.100.32.89;194.100.32.103 trusted-pi = true
group = wap-push-user wap-push-user = foo ppg-username = xxx ppg-password = xxx #country-prefix = +358 #allowed-prefix = "40;60;70" #denied-prefix = 50 #white-list = http://localhost:8082/whitelist #black-list = http://localhost:8082/blacklist #deny-ip = "*.*.*.*" #allow-ip = "127.0.0.1"
# SEND-SMS USERS
group = sendsms-user username = xxx password = xxx #user-deny-ip = "" #user-allow-ip = ""
# SERVICES
group = sms-service keyword = nop text = "You asked nothing and I did it!"
# there should be default always
group = sms-service keyword = default text = "No service specified"
# Modems configuration # # Example and default values # # group = modems # id = "my-id" # name = "my-name" # detect-string = "MODEM" # detect-string2 = "" [Default] # init-string = "AT+CNMI=1,2,0,0,0" [Default] # speed = 9600 [Default] # enable-hwhs = "AT+IFC=2,2" [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = "AT" [Default] # broken = false [Default] # message-storage = "SM" # enable-mms = false [Default]
# If modemtype=auto, try everyone and defaults to this one group = modems id = generic name = "Generic Modem"
group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" need-sleep = true
group = modems id = premicell name = Premicell detect-string = "PREMICEL" no-pin = true no-smsc = true
group = modems id = siemens_tc35 name = "Siemens TC35" detect-string = "SIEMENS" detect-string2 = "TC35" init-string = "AT+CNMI=1,2,0,1,1" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true
group = modems id = siemens_m20 name = "Siemens M20" detect-string = "SIEMENS" detect-string2 = "M20" speed = 19200 enable-hwhs = "AT\\Q3" keepalive-cmd = "AT+CBC;+CSQ" need-sleep = true
group = modems id = siemens_sl45 name = "Siemens SL45" detect-string = "SIEMENS" detect-string2 = "SL45" init-string = "AT+CNMI=1,2,2,2,1" keepalive-cmd = "AT+CBC;+CSQ" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true message-storage = "SM"
group = modems id = nokiaphone name = "Nokia Phone" detect-string = "Nokia Mobile Phone" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = true
group = modems id = falcom name = "Falcom" detect-string = "Falcom" no-smsc = true
group = modems id = ericsson_r520m name = "Ericsson R520m" detect-string = "R520m" init-string = "AT+CNMI=3,2,0,0"
group = modems id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true
group = modems id = alcatel name = "Alcatel" detect-string = "Alcatel" init-string = "AT+CNMI=3,2,0,0"
2003-07-01 14:26:50 [11] DEBUG: HTTP: Creating HTTPClient for `10.0.104.16'.
2003-07-01 14:26:50 [14] INFO: PPG: Accept request </wappush> from <10.0.104.16>
2003-07-01 14:26:50 [14] WARNING: erroneous content entity (push message)
2003-07-01 14:26:50 [14] DEBUG: PPG: send_bad_message_response: telling pi
2003-07-01 14:26:50 [14] DEBUG: HTTP: Resetting HTTPClient for `10.0.104.16'.
2003-07-01 14:26:50 [14] WARNING: PPG: unable to parse mime content, the request unacceptable
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:Using http to access PPG.
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:Found all http properties
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:Start http access to PPG...
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:Start building PAP message for given +46701111111 and http://192.10.10.10:80/ ?msisdn=%2B46701111111%26uri=http%3A%2F%2Fm.service.artwork.logos%2Fm.w bmp
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:PAP version is set to 1
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:POST /wappush HTTP/1.1^M
Host: smsgw:8080^M
Date: Tue, 01 Jul 2003 14:07:01 CEST^M
Content-Type: multipart/related; boundary=B_O_U_N_D_A_R_Y; type="application/xml"^M
Content-Length: 824^M
^M
--B_O_U_N_D_A_R_Y^M
Content-Type: application/xml^M
<?xml version="1.0"?>^M
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" ^M
"http://www.wapforum.org/DTD/pap_1.0.dtd">^M
^M
<pap>^M
<push-message push-id="smsgw/1" source-reference="SERVICE_PROVIDER_NAME">^M
<address address-value="WAPPUSH=+46701111111/[EMAIL PROTECTED]"/>^M
</push-message>^M
</pap>^M
--B_O_U_N_D_A_R_Y^M
Date: Tue, 01 Jul 2003 14:07:01 CEST^M
Content-Language: en^M
Content-Length: 187^M
Content-Type: text/vnd.wap.si^M
X-Wap-Application-Id: x-wap-application:wml.ua^M
<?xml version="1.0"?>^M
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" ^M
"http://www.wapforum.org/DTD/si.dtd">^M
<si>^M
<indication href="http://192.10.10.10:80/ ?msisdn=%2B46701111111%26uri=http%3A%2F%2Fm.service.artwork.logos%2Fm.w bmp">Download content</indication>^M
</si>^M
--B_O_U_N_D_A_R_Y--
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: HTTP/1.1 202 Foo
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Server: Kannel/1.3.1
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Content-Length: 788
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Content-Type: application/xml
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG:
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: <?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="Date: Tue, 01 Jul 2003 14:07:01 CEST
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Content-Language: en
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Content-Length: 187
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: Content-Type: text/vnd.wap.si
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: X-Wap-Application-Id: x-wap-application:wml.ua
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: <?xml version="1.0"?>
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: "http://www.wapforum.org/DTD/si.dtd">
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: <si>
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: <indication href="http://192.10.10.10:80/ ?msisdn=%2B46701111111%26uri=http%3A%2F%2Fm.service.artwork.logos%2Fm.w bmp">Download content</indication>
0701.141801 [WorkerThread#97]: WapPushHandler DEBUG:response from PPG: </si>
