Note: Forwarded message attached

-- Original Message --

From: "Nirav doshi" <[EMAIL PROTECTED]>
To: "users" <users@kannel.org>
Subject: Imp-Problem in using WAP PPG push



--- Begin Message ---

 
Hello

I have been trying to send an ppg msg from kannel using the ppg configuration mentioned in the userguide. i m always getting an error in the WAP Box. After opening the initial bearerbox and WAPbox i m running the command
./test_http_server -p 8900
and then on the next terminal running
./test_ppg -q http://localhost:8900/ppgurl iptestppg.xml sl.xml.
After running this i m getting an error.



2006-03-03 17:20:19 [13506] [0] INFO: an input without a configuration file assumed
2006-03-03 17:20:19 [13506] [0] DEBUG: using iptestppg.xml as a content file
2006-03-03 17:20:19 [13506] [0] DEBUG: using sl.xml as a control file
2006-03-03 17:20:19 [13506] [0] DEBUG: Started thread 1 (test/test_ppg.c:push_thread)
2006-03-03 17:20:19 [13506] [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) maps to pid 13506.
2006-03-03 17:20:19 [13506] [1] DEBUG: TEST_PPG: starting to push job 0
2006-03-03 17:20:19 [13506] [1] DEBUG: Started thread 2 (gwlib/fdset.c:poller)
2006-03-03 17:20:19 [13506] [1] DEBUG: Started thread 3 (gwlib/http.c:write_request_thread)
2006-03-03 17:20:19 [13506] [1] DEBUG: push done
2006-03-03 17:20:19 [13506] [3] DEBUG: Thread 3 (gwlib/http.c:write_request_thread) maps to pid 13506.
2006-03-03 17:20:19 [13506] [3] DEBUG: Parsing URL `http://localhost:8080//wappush':
2006-03-03 17:20:19 [13506] [3] DEBUG:  Scheme: http://
2006-03-03 17:20:19 [13506] [3] DEBUG:  Host: localhost
2006-03-03 17:20:19 [13506] [3] DEBUG:  Port: 8080
2006-03-03 17:20:19 [13506] [3] DEBUG:  Username: (null)
2006-03-03 17:20:19 [13506] [3] DEBUG:  Password: (null)
2006-03-03 17:20:19 [13506] [3] DEBUG:  Path: //wappush
2006-03-03 17:20:19 [13506] [3] DEBUG:  Query: (null)
2006-03-03 17:20:19 [13506] [3] DEBUG:  Fragment: (null)
2006-03-03 17:20:19 [13506] [3] DEBUG: HTTP: Opening connection to `localhost:8080' (fd=12).
2006-03-03 17:20:19 [13506] [3] DEBUG: Socket connecting
2006-03-03 17:20:19 [13506] [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) maps to pid 13506.
2006-03-03 17:20:19 [13506] [2] DEBUG: Get info about connecting socket
2006-03-03 17:20:19 [13506] [2] DEBUG: Socket not connected
2006-03-03 17:20:19 [13506] [2] ERROR: Couldn't fetch <http://localhost:8080//wappush>
2006-03-03 17:20:19 [13506] [1] ERROR: push failed, no reason found
2006-03-03 17:20:19 [13506] [1] INFO: TEST_PPG: In thread 1 0 succeeded, 1 failed
2006-03-03 17:20:19 [13506] [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) terminates.
2006-03-03 17:20:19 [13506] [0] INFO: TEST_PPG: 1 requests in 0.000000 seconds, inf requests per second
2006-03-03 17:20:19 [13506] [0] DEBUG: Waiting for 3 (gwlib/http.c:write_request_thread) to terminate
2006-03-03 17:20:19 [13506] [3] DEBUG: Thread 3 (gwlib/http.c:write_request_thread) terminates.
2006-03-03 17:20:19 [13506] [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) terminates.
2006-03-03 17:20:19 [13506] [0] DEBUG: Immutable octet strings: 10.

And the response that i get in the WAP BOX is the below one.

2006-03-03 17:03:51 [13413] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl = 0
2006-03-03 17:03:51 [13413] [0] INFO: SSL not supported, no SSL initialization done.
2006-03-03 17:03:51 [13413] [0] INFO: ------------------------------------------------------------
2006-03-03 17:03:51 [13413] [0] INFO: Kannel wapbox version 1.4.0 starting up.
2006-03-03 17:03:51 [13413] [0] INFO: HTTP: Opening server at port 8080.
2006-03-03 17:03:51 [13413] [0] INFO: Connected to bearerbox at localhost port 13002.
2006-03-03 17:04:00 [13413] [14] ERROR: Request </wappush> from <127.0.0.1>: service not found.

My config file is

group = wapbox
bearerbox-host = localhost
#log-file = "/tmp/wapbox.log"
#log-level = 0
syslog-level = none

# PPG CORE SETUP, for defining the push request interface

group = ppg
ppg-url = ""> ppg-port = 8080
#ppg-ssl-port = 8081
concurrent-pushes = 100
trusted-pi = true
users = 1024
#ppg-deny-ip = "*.*.*.*"
ppg-allow-ip = "*.*.*.*"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"

# PPG USER SETUP, for authorizing a specific push user

group = wap-push-user
wap-push-user = foo
ppg-username = foo
ppg-password = bar
#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"

# SMSC CONNECTIONS, for pushing SI, SL, MMS notifications or whatever over SMS

# group = smsc
# smsc = fake
# smsc-id = FAKE
# port = 10000
# connect-allow-ip = 127.0.0.1
# SMSBOX SETUP (a kludge!)

group = smsbox
bearerbox-host = localhost
#sendsms-port = 13013
#global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"

# TEST PAP PROTOCOL

group = test-ppg
retries = 2
pi-ssl = yes
#ssl-client-certkey-file = /etc/kannel/certkey.pem

# CONFIGURATION GROUP

group = configuration
push-url = ""> #pap-file = /etc/kannel/ipnoqos.txt
pap-file = /home/sachin/nirav/gateway-1.4.0/test/iptestppg.xml
#content-file = /etc/kannel/si.txt
content-file = /home/sachin/nirav/gateway-1.4.0/test/sl.xml
username = foo
password = bar

and modem configuration is

group = smsc
smsc = at
modemtype = ericsson_t68
device = /dev/ttyS0
speed = 9600
pin = 2345
validityperiod = 167

Please let me know how i can move forward to solve this problem. I have also tried to solve it by changing the port no but nothing ig worth.
My 2 .xml files are

<?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]"
  deliver-before-timestamp="2005-10-31T06:45:00Z"
  deliver-after-timestamp="2001-02-28T06:45:00Z"
  progress-notes-requested="false">
    <address address-value="WAPPUSH=213.243.140.102/[EMAIL PROTECTED]">
    </address>
    <quality-of-service
    priority="low"
    delivery-method="unconfirmed"
    bearer-required="true"
    bearer="CSD"
    network-required="true"
    network="GSM">
    </quality-of-service>
  </push-message>
</pap>

and sl.xml

<?xml version="1.0"?>
    <!DOCTYPE sl PUBLIC "-//WAPFORUM//DTD SL 1.0//EN"
                "http://www.wapforum.org/DTD/sl.dtd">
<sl
    href="">     action=""> </sl>

Please do reply as early as possible.




--- End Message ---

Reply via email to