Hello

  I could configure and work with the Kannel SMS gateway successfully. Now, I am trying to setup the PPG server for doing WAP Push. I have some problem when trying to push a test message. It’s failing with message “ERROR: push failed, service not found” at console of test_ppg program.

 

The trace on wapbox console shows,

 

2006-01-25 14:46:33 [28403] [0] INFO: Connected to bearerbox at localhost port 13002.

2006-01-25 14:46:33 [28403] [0] DEBUG: Started thread 15 (gw/heartbeat.c:heartbeat_thread)

2006-01-25 14:46:33 [28403] [15] DEBUG: Thread 15 (gw/heartbeat.c:heartbeat_thread) maps to pid 28403.

2006-01-25 14:46:41 [28403] [11] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.

2006-01-25 14:46:41 [28403] [14] ERROR: Request </> from <127.0.0.1>: service not found

2006-01-25 14:46:41 [28403] [14] DEBUG: your configuration uses /wappush

2006-01-25 14:46:41 [28403] [14] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.

2006-01-25 14:46:41 [28403] [10] DEBUG: HTTP: Destroying HTTPClient area 0x94b1bf8.

2006-01-25 14:46:41 [28403] [10] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.

 

  I was following the document from the IBM site, http://www-128.ibm.com/developerworks/wireless/library/wi-proxy.html

 

I am using the test_ppg program to push a message,

./test_ppg -q http://localhost:8080 si.xml my_uncnfpap.xml

 

The kannel bearerbox and wapbox run on the same machine. I have a Nokia 7210 running on other IP address, 10.10.10.119 which is configured. The content xml si.xml and control file my_uncnfpap.xml are shown below.

 

Si.xml

<?xml version="1.0"?>

<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd">

<si>

  <indication href="">

        si-id="[EMAIL PROTECTED]"

        action="">

        created="2006-01-18T01:33:09Z"

        si-expires="2006-05-31T00:00:00Z">

        Want to test a fetch?

  </indication>

</si>

 

 

 

Control file: my_uncnfpap.xml

<?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="2006-09-28T06:45:00Z"

        deliver-after-timestamp="2006-01-18T06:45:00Z"

        progress-notes-requested="false">

<address address-value="WAPPUSH=http://10.10.10.119/[EMAIL PROTECTED]"/>

<quality-of-service

        priority="low"

        delivery-method="unconfirmed"

        network-required="true"

        network="GSM"

        bearer-required="true"

        bearer="CSD"/>

</push-message>

</pap>

  

  My kannel.conf is configured as shown below:

 

group = core

admin-port = 13000

smsbox-port = 13001

wapbox-port = 13002

admin-password = bar

#status-password = foo

#admin-deny-ip = ""

#admin-allow-ip = ""

wdp-interface-name = "*"

log-file = "bearerboxi_25-1.log"

log-level = 0

box-deny-ip = "*.*.*.*"

box-allow-ip = "127.0.0.1"

udp-allow-ip = "*.*.*.*"

#unified-prefix = "+358,00358,0;+,00"

#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"

 

# WAPBOX SETUP, for pushing and for pulling (fetching) the wap data

group = wapbox

bearerbox-host = localhost

log-file = "wapbox_25-1.log"

log-level = 0

syslog-level = none

timer-freq = 1

 

# PPG CORE SETUP, for defining the push request interface

group = ppg

ppg-url = "">

ppg-port = 8080

concurrent-pushes = 50

trusted-pi = true

users = 52

ppg-allow-ip = 10.10.10.119;127.0.0.1

 

# PPG USER SETUP, for authorizing a specific push user

group = wap-push-user

wap-push-user = foo

ppg-username = foo

ppg-password = bar

 

group = smsbox

bearerbox-host = localhost

sendsms-port = 13013

 

# SEND-SMS USERS

group = sendsms-user

username = tester

password = foobar

 

# SERVICES

# there should be default always

group = sms-service

keyword = default

get-url = "">

accept-x-kannel-headers = true

max-messages = 0

 

 

Can somebody help where exactly the problem is?

 

Thanks

Ajay

 

Reply via email to