test_ppg problem
"Shridhar Raju" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Tanla Solutions Ltd. |
| Message-ID | <003401c30eda$74b05b40$6500a8c0@td01> |
Hi,
I wanted to test m-notification.ind using kannel & test_ppg. Here is what I have been doing.
----------------------------Kannel.conf
# BEARERBOX SETUP
group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
wdp-interface-name = "202.56.199.69"
log-file = "/home/shridhar/log/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/home/shridhar/log/access.log"
# WAPBOX SETUP
group = wapbox
bearerbox-host = localhost
log-file = "/home/shridhar/log/wapbox.log"
log-level = 0
syslog-level = none
# PPG CORE SETUP
group = ppg
ppg-url = /wap-push
ppg-port = 8080
concurrent-pushes = 100
trusted-pi = false
users = 1024
ppg-allow-ip = "*.*.*.*"
# PPG USER SETUP
group = wap-push-user
wap-push-user = foo
ppg-username = foo
ppg-password = bar
# SMSC CONNECTIONS
group = smsc
smsc = fake
smsc-id = FAKE
port = 10001
connect-allow-ip = 127.0.0.1
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
log-file = "/home/shridhar/log/smsbox.log"
log-level = 0
----------------------------
-------mms.txt----------
X-MMS-Message-Type: m-notification-ind
X-MMS-Transaction-Id: 100
X-MMS-Version: 1.0
X-MMS-Message-Class: Personal
X-MMS-Message-Size: 2557
X-MMS-Expiry: 256; Type=Relative
X-MMS-Content-Location: http://202.56.199.69/cats.mms
----------------------------
-------pap.txt----------
<?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]"
progress-notes-requested="false">
<address mailto:address-value="WAPPUSH=+91xxxxxxxxxx/[email protected]>
</address>
</push-message>
</pap>
----------------------------
When I do
[shridhar@RHLinux bin]$ ./test_ppg http://202.56.199.69:8080/wap-push?username=foo&password=bar -a mms -c mms mms.txt pap.txt
[1] 803
2003-04-30 09:25:30 [0] INFO: a configuration file input assumed
2003-04-30 09:25:30 [0] ERROR: fopen failed: couldn't open `http://202.56.199.69:8080/wap-push?username=foo'
2003-04-30 09:25:30 [0] ERROR: System error 2: No such file or directory
2003-04-30 09:25:30 [0] PANIC: Failed to load main configuration file `http://202.56.199.69:8080/wap-push?username=foo'. Aborting!
-bash: -a: command not found
[1]+ Exit 1 ./test_ppg http://202.56.199.69:8080/wap-push?username=foo
But if I do like this
[shridhar@RHLinux bin]$ ./test_ppg "http://202.56.199.69:8080/wap-push?username=foo&password=bar" -a mms -c mms mms.txt pap.txt
Here is wapbox.log
2003-04-30 09:27:09 [14] INFO: PPG: Accept request </wap-push> from <202.56.199.69>
2003-04-30 09:27:09 [14] WARNING: MIME: pass_data_headers: an unparsable optional header
2003-04-30 09:27:09 [14] WARNING: erroneous content entity (push message)
2003-04-30 09:27:09 [14] DEBUG: PPG: send_bad_message_response: telling pi
2003-04-30 09:27:09 [14] DEBUG: HTTP: Resetting HTTPClient for `202.56.199.69'.
2003-04-30 09:27:09 [10] DEBUG: HTTP: Destroying HTTPClient area 0x8207800.
2003-04-30 09:27:09 [10] DEBUG: HTTP: Destroying HTTPClient for `202.56.199.69'.
2003-04-30 09:27:09 [14] WARNING: PPG: unable to parse mime content, the request unacceptable
With using -e base64
[shridhar@RHLinux bin]$ ./test_ppg "http://202.56.199.69:8080/wap-push?username=foo&password=bar" -e base64 -a mms -c mms mms.txt pap.txt
Fakesmsc gets 3 msgs
2003-04-30 09:40:54 [0] DEBUG: Got message 1: <1234 +91xxxxxxxxxx udh %0B%05%04%0B%84%23%F0%00%03%01%03%01 %01%06%3D%BE%96202.56.199.69%3A8080%00%AF%84Content-Transfer-Encoding%00binary%00%8D%01%E2%B4%80X-MMS-Message-Type%3A+m-notification-ind%0AX-MMS-Transaction-Id%3A+100>
2003-04-30 09:40:54 [0] DEBUG: Got message 2: <1234 +91xxxxxxxxxx udh %0B%05%04%0B%84%23%F0%00%03%01%03%02 %0AX-MMS-Version%3A+1.0%0AX-MMS-Message-Class%3A+Personal%0AX-MMS-Message-Size%3A+2557%0AX-MMS-Expiry%3A+256%3B+Type%3DRelative%0AX-MMS-Content-Locati>
2003-04-30 09:40:54 [0] DEBUG: Got message 3: <1234 +91xxxxxxxxxx udh %0B%05%04%0B%84%23%F0%00%03%01%03%03 on%3A+http%3A%2F%2F202.56.199.69%2Fcats.mms%0A>
Access.log
2003-04-30 09:40:54 Sent SMS [SMSC:FAKE] [SVC:] [ACT:] [from:1234] [to:+91xxxxxxxxxx] [flags:0:2:0:0:0] [msg:128:01063DBE963230322E35362E3139392E36393A3830383000AF84436F6E74656E742D5472616E736665722D456E636F64696E670062696E617279008D01E2B480582D4D4D532D4D6573736167652D547970653A206D2D6E6F74696669636174696F6E2D696E640A582D4D4D532D5472616E73616374696F6E2D49643A20313030] [udh:12:0B05040B8423F00003010301]
2003-04-30 09:40:54 Sent SMS [SMSC:FAKE] [SVC:] [ACT:] [from:1234] [to:+91xxxxxxxxxx] [flags:0:2:0:0:0] [msg:128:0A582D4D4D532D56657273696F6E3A20312E300A582D4D4D532D4D6573736167652D436C6173733A20506572736F6E616C0A582D4D4D532D4D6573736167652D53697A653A20323535370A582D4D4D532D4578706972793A203235363B20547970653D52656C61746976650A582D4D4D532D436F6E74656E742D4C6F63617469] [udh:12:0B05040B8423F00003010302]
2003-04-30 09:40:54 Sent SMS [SMSC:FAKE] [SVC:] [ACT:] [from:1234] [to:+91xxxxxxxxxx] [flags:0:2:0:0:0] [msg:34:6F6E3A20687474703A2F2F3230322E35362E3139392E36392F636174732E6D6D730A] [udh:12:0B05040B8423F00003010303]
I have no clue why does it require 3 sms to send m-notification.ind. As I have been observing the list, the m-notification.ind can be sent in a single sms which Aarno explained in detail.
http://202.56.199.69:13013/cgi-bin/sendsms?username=foo&password=bar&to=+91xxxxxxxxxx&from=test&udh=%06%05%04%0b%84%23%f0&text=%0f%06%03%be%af%84%8c%82%98%39%39%39%35%40%66%6c%79%65%72%6f%6e%65%2e%63%6f%6d%00%8d%90%8a%80%8e%01%64%88%06%80%04%3d%64%8d%80%83http://202.56.199.69/cats.mms%00
My question is, is my conf and m-notification docs are correct or am I missing some thing. Can anybody provide me with solution which is working.
Thanx in advance
Regards
Shridhar Raju