You probably use same port for test_http_server and test_ppg. If it is not so, try netstat -a | grep 8080 to see is some other program running in that port (or some not really dead leftover thread).
Aarno
On 12.3.2004, at 18:05, Eric Carlson wrote:
I have setup Kannel fine with a bearerbox and an smsbox with an Ericsson R320 as a GSM modem. I can send SMS's via the smsbox-port http port fine and have set up some SMS services, so I know the hardware and basic conf is ok. Now I want to get test_ppg to work and I think I'm following the user guide correctly (!) but it won't play.
I understand I must start bearerbox, start wapbox then start the test_http_server but when I do them in that order I get the first two running fine then the test_http server give me:
2004-03-12 16:54:39 [2898] [0] INFO: HTTP: Opening server at port 8080. 2004-03-12 16:54:39 [2898] [0] ERROR: bind failed 2004-03-12 16:54:39 [2898] [0] ERROR: System error 98: Address already in use 2004-03-12 16:54:39 [2898] [0] PANIC: http_open_server failed 2004-03-12 16:54:39 [2898] [0] PANIC: ./test_http_server [0x8059fe9] 2004-03-12 16:54:39 [2898] [0] PANIC: ./test_http_server(vfprintf+0x1651) [0x804c109] 2004-03-12 16:54:39 [2898] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xe4) [0x42015574] 2004-03-12 16:54:39 [2898] [0] PANIC: ./test_http_server(SSL_write+0x41) [0x804b189]
So I have failed at the first attempt. First, am I correct in that those need to be run in that order? Next, what port should I use? Thanks very much for any help...
The way I start the test_http_server is:
./test_http_server -p 8080
Here is my config file
group = core admin-port = 13000 smsbox-port = 13001 wapbox-port = 13002 admin-password = bar status-password = foo wdp-interface-name = "*" #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel2.log" #log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "00358,0" #access-log = "access2.log" #store-file = "kannel2.store" dlr-storage = mysql
# MYSQL DLR DB
group = mysql-connection id = dlr-db host = <omitted> mysql-username = <omitted> mysql-password = <omitted> database = <omitted>
group = dlr-db id = dlr-db table = dlr field-smsc = smsc field-timestamp = ts field-source = source field-destination = destination field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxcid
# SMSC CONNECTIONS
group = smsc system-type = kannel port = 10000 smsc-username = foo smsc-password = bar send-url = "http://localhost:13013" smsc = at modemtype = ericsson_r320 device = /dev/ttyS0 smsc-id = Xcvr-R320
# SMSBOX SETUP
group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 3000
# SEND-SMS USERS
group = sendsms-user username = foo password = bar #user-deny-ip = "" #user-allow-ip = "" max-messages = 10 concatenation = true
# WAPBOX group = wapbox bearerbox-host = localhost log-file = "filename" log-level = 0 syslog-level = none
group = ppg ppg-url = /cgi-bin/wap-push.cgi ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = "127.0.0.1" ppg-deny-ip = "192.168.1.*" trusted-pi = true
group = wap-push-user wap-push-user = foo ppg-username = foo ppg-password = bar allow-ip = 127.0.0.1
# SERVICES
# there should be default always
group = sms-service keyword = default text = "No service specified"
group = sms-service keyword = nop text = "You asked nothing and I did it!"
# MODEM DEFINITIONS
group = modems id = ericsson_r320 name = "Ericsson R320" detect-string = "R320" init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true
