Oops!

<?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="nbalkanas"
                        deliver-before-timestamp="2009-01-01T00:00:00Z"
                        deliver-after-timestamp="2008-09-01T00:00:00Z"
                        progress-notes-requested="false">
                <address address-value="WAPPUSH=+358408676001/[EMAIL 
PROTECTED]"/>
                <address address-value="WAPPUSH=+302106997073/[EMAIL 
PROTECTED]"/>
                <address address-value="WAPPUSH=+302116914496/[EMAIL 
PROTECTED]"/>
                <quality-of-service priority="high"
                        delivery-method="confirmed"
                        
notify-requested-to="http://www.kannel.gr:9200/pap_rsl.xml";
                        network-required="true"
                        network="gsm"
                        bearer-required="true"
                        bearer="SMS"/>
        </push-message>
</pap>

  ----- Original Message ----- 
  From: Nikos Balkanas 
  To: [email protected] 
  Sent: Monday, November 17, 2008 12:43 AM
  Subject: Re: test_ppg help


  Hi,

  I have been able to solve (2) by consulting openmobilealliance. I would 
appreciate some timely help with the rest of them, though. A couple of 
additional minor points:

  1) bearerbox complains that store_file is depreciated

  2008-11-17 00:34:19 [14866] [0] WARNING: 'store-file' option deprecated, 
please use 'store-location' and 'store-type' instead.

  But when I try to use "store-type = internal" I get:

  2008-11-17 00:35:45 [15340] [0] ERROR: Unknown 'store-type' defined.
  2008-11-17 00:35:45 [15340] [0] PANIC: Could not start with store init failed.

  2) Can test_ppg handle confirmations (i.e. notifications)?. How can I test 
it? I use the following pap control file and it just reports successful on the 
first leg (push_response).

  Thanx,
  Nikos


    ----- Original Message ----- 
    From: Nikos Balkanas 
    To: [email protected] 
    Sent: Sunday, November 16, 2008 3:05 AM
    Subject: test_ppg help


    Hi list,

    I have succesfuly setup and benchmarked the kannel wap gateway. I am now 
trying to setup the PPG. I don't need smsc. 
    I have setup a lighttpd http server and use the test_ppg program to test 
it. I am using latest CVS head. Configuration at end.
    I have a couple of questions:

    1) When I type in "test_ppg -q <configuration file>" I get:

    2008-11-16 02:49:35 [6546] [0] DEBUG: Dump ends.
    2008-11-16 02:49:35 [6546] [0] PANIC: Trying to fetch variable `retries' in 
non-existing group

    Where is retries configured?

    Also "-q" doesn't seem to work. I get loads of diagnostics.

    2) I am using http smsc and run test_ppg:

    test_ppg http://www.kannel.gr:9200/ ~/www/kannel/index.wml 
~/www/kannel/pap.xml

    Basically the web server serves a wml page "Hello world!!!". Obviously 
that's not smt that pap parser understands because I am getting:

    2008-11-16 02:07:41 [22214] [1] DEBUG: Octet string dump ends.
    2008-11-16 02:07:41 [22214] [1] DEBUG: PAP COMPILER: unknown element:
    2008-11-16 02:07:41 [22214] [1] DEBUG: Octet string at 4c76d0:
    2008-11-16 02:07:41 [22214] [1] DEBUG:   len:  3
    2008-11-16 02:07:41 [22214] [1] DEBUG:   size: 4
    2008-11-16 02:07:41 [22214] [1] DEBUG:   immutable: 0
    2008-11-16 02:07:41 [22214] [1] DEBUG:   data: 77 6d 6c                     
                     wml
    2008-11-16 02:07:41 [22214] [1] DEBUG: Octet string dump ends.
    2008-11-16 02:07:41 [22214] [1] WARNING: TEST_PPG: receive_push_reply: 
cannot compile pap message
    2008-11-16 02:07:41 [22214] [1] INFO: TEST_PPG: In thread 1 0 succeeded, 1 
failed

    Is there an example of the content that pap parser expects?

    3) With trusted-pi = true does it try to authenticate? Documentation is not 
very clear on that.

    Thanx,
    Nikos

    Configuration:

    group = core
    admin-port = 13001
    wapbox-port = 13002
    smsbox-port = 13003
    admin-password = bar
    #status-password = foo
    #admin-deny-ip = ""
    #admin-allow-ip = ""
    wdp-interface-name = "*"
    log-file = "/tmp/bearerbox.log"
    log-level = 4
    #box-deny-ip = "*.*.*.*"
    box-allow-ip = "*.*.*.*"
    access-log = "/tmp/access.log"
    store-file = "/tmp/kannel.store"
    #ssl-server-cert-file = "cert.pem"
    #ssl-server-key-file = "key.pem"
    #ssl-certkey-file = "mycertandprivkeyfile.pem"

    group = wapbox
    bearerbox-host = 127.0.0.1
    log-file = "/tmp/wapbox.log"
    log-level = 4
    syslog-level = none
    #access-log = "/tmp/wapaccess.log"
    access-log = "/dev/null"

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

    group = smsc
    smsc = http
    smsc-id = HTTP
    port = 9200
    connect-allow-ip = 127.0.0.1
    system-type = kannel
    smsc-username = foo
    smsc-password = bar
    no-sender = true
    no-coding = true
    send-url = http://www.kannel.gr:9200/

    # SMSBOX SETUP (a kludge!)

    group = smsbox
    bearerbox-host = 127.0.0.1
    smsbox-id = dlrbox

    # PPG CORE SETUP, for defining the push request interface

    group = ppg
    ppg-url = /cgi-bin/wap-push.cgi
    ppg-port = 9200
    #ppg-ssl-port = 8081
    concurrent-pushes = 100
    trusted-pi = false
    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"

Reply via email to