Hi,

I want to configure and test the kannel wap gateway..
can anyone sujjest how to do it ? I don't have a phone ..

I have configured wapbox and tried the following test :

[EMAIL PROTECTED] gateway-1.4.1]$ ./test/fakewap -g 127.0.0.1
http://wap.google.com/
2007-02-28 12:27:58 [5278] [0] INFO: fakewap starting
2007-02-28 12:28:18 [5278] [0] INFO: fakewap complete.
2007-02-28 12:28:18 [5278] [0] INFO: fakewap: 1 client threads made total 1
transactions.
2007-02-28 12:28:18 [5278] [0] INFO: fakewap: total running time 20.0seconds
2007-02-28 12:28:18 [5278] [0] INFO: fakewap: 0.1 messages/seconds on
average
2007-02-28 12:28:18 [5278] [0] INFO: fakewap: time of best, worst and
average transaction: 20.4 s, 20.4 s, 20.4 s

On the Wapbox I see the following error:
[EMAIL PROTECTED] PyroGW]$ ./sbin/wapbox -v 1 pyrogw.conf
2007-02-28 11:55:09 [5144] [0] INFO: Debug_lvl = 1, log_file = <none>,
log_lvl = 0
2007-02-28 11:55:09 [5144] [0] INFO: SSL not supported, no SSL
initialization done.
2007-02-28 11:55:09 [5144] [0] INFO: Added logfile `log/wapbox.log' with
level `0'.
2007-02-28 11:55:09 [5144] [0] INFO: Starting to log to file log/wapbox.log
level 0
2007-02-28 11:55:09 [5144] [0] INFO:
------------------------------------------------------------
2007-02-28 11:55:09 [5144] [0] INFO: PyroGW wapbox version 1.4.1 starting
up.
2007-02-28 11:55:09 [5144] [0] INFO: Connected to bearerbox at localhost
port 13002.
2007-02-28 11:55:45 [5144] [6] INFO: Fetching URL <http://wap.google.com/>
for MSISDN <>, IP <127.0.0.1:1025>
2007-02-28 11:56:10 [5144] [10] ERROR: Error while gw_gethostbyname occurs.
2007-02-28 11:56:10 [5144] [10] ERROR: System error 2: No such file or
directory
2007-02-28 11:56:10 [5144] [10] ERROR: gethostbyname failed
2007-02-28 11:56:10 [5144] [10] ERROR: error connecting to server
`wap.google.com' at port `80'
2007-02-28 11:56:10 [5144] [10] ERROR: Couldn't send request to <
http://wap.google.com/>
2007-02-28 11:56:10 [5144] [7] ERROR: WSP: HTTP lookup failed, oops.
2007-02-28 11:56:10 [5144] [7] WARNING: WSP: Content type <text/plain> not
supported by client, deleting body.


the following is the config file:
group = core
admin-port = 13000
admin-password = bar
#admin-deny-ip = "*.*.*.*"
#admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
wapbox-port = 13002
#wapbox-port = 9201
wdp-interface-name = "*"
log-file = "log/bearer.log"
log-level = 0
access-log = "log/bearer-access.log"
dlr-storage = internal
smsbox-max-pending = 60
sms-resend-freq = 60
sms-resend-retry = 3


group = smsc
smsc = smpp
smsc-id = SMPPSim
#pyrogw
throughput = 20
log-file = "log/smpp.log"
log-level = 0
reconnect-delay = 10
host = 127.0.0.1
port = 2775
transceiver-mode = false
receive-port = 2775
smsc-username = ""
smsc-password = ""
system-type = "VMA"
service-type = ""
interface-version = 34
address-range = ""
my-number = 333
enquire-link-interval = 30
reconnect-delay = 10
source-addr-ton = 0
source-addr-npi = 0
source-addr-autodetect = true
dest-addr-ton = 0
dest-addr-npi = 0
bind-addr-ton = 0
bind-addr-npi = 0
msg-id-type = 0x00
connection-timeout = 54000
wait-ack = 60
wait-ack-expire = 0x00
validityperiod = 2880

group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
smsbox-id = pyrosmsbox
sendsms-port = 13013
#sendsms-url =
http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=8888&to=123456&text=Hello&charset=UTF-16BE&mclass=0&coding=2&pid=0
#sendsms-chars = "0123456789 +-"
global-sender = 8888
log-file = "log/smsbox.log"
log-level = 0
access-log = "log/smsbox-access.log"
max-pending-requests = 512


group = sms-service
keyword = default
name = "pyrosmsgw"
get-url="
http://localhost:8080/myapp/test.jsp?username=%s&password=%s&from=%s";
#get-url="http://www.gmail.com";
#text = "service."
catch-all = true
accept-x-kannel-headers = true
max-messages = 3
concatenation = true

group = sendsms-user
username = pyro
password = pyro
name = "pyrosmsgw"
#user-deny-ip = ""
#user-allow-ip = ""
default-sender = 333
max-messages = 3
concatenation = true


group = wapbox
bearerbox-host = localhost
timer-freq = 1
log-file = "log/wapbox.log"
log-level = 0
#access-log = "log/wapbox-access.log"
http-interface-name = "http://www.gmail.com";

group = mysql-connection
id = mydlr
host = 127.0.0.1
username = surya
password = surya
database = test
max-connections = 1

group = dlr-db
id = mydlr
table = tbl_delivery_reports
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

Reply via email to