Carla,
Thank you for the quick reply.
I was able to get both the bearerbox and wapbox up and running.
My config file looks as follows:
group = core
admin-port = 13000
wapbox-port = 13002
admin-password = xxx
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
wdp-interface-name = "*"
log-file = "/tmp/bearerbox.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#access-log = "access.log"
#store-file = "kannel.store"
group = wapbox
bearerbox-host = localhost
log-file = "/tmp/wapbox.log"
log-level = 0
syslog-level = none
I am able to start up the servers as follows:
heidi:~/kannel/sbin> ./bearerbox ./wapkannel.conf
2004-02-16 12:14:35 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl =
0
2004-02-16 12:14:35 [0] WARNING: DLR: using default 'internal' for storage
type.
2004-02-16 12:14:35 [0] DEBUG: Kannel bearerbox version `1.2.1'.
System Linux, release 2.4.19, version #3 Tue Sep 3 00:02:30 EDT 2002,
machine i686.
Hostname cosby.dhs.org, IP 69.50.192.72.
Libxml version 20511.
Using OpenSSL 0.9.6 24 Sep 2000.
Using native malloc.
2004-02-16 12:14:35 [0] INFO: Added logfile `/tmp/bearerbox.log' with
level `1'.
2004-02-16 12:14:35 [0] DEBUG: HTTP: Opening server at port 13000.
2004-02-16 12:14:35 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2004-02-16 12:14:35 [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2004-02-16 12:14:35 [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2004-02-16 12:14:35 [0] DEBUG: starting UDP sender/receiver module
2004-02-16 12:14:35 [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200>
2004-02-16 12:14:35 [0] DEBUG: Started thread 4 (gw/bb_udp.c:udp_receiver)
2004-02-16 12:14:35 [0] DEBUG: Started thread 5 (gw/bb_udp.c:udp_sender)
2004-02-16 12:14:35 [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201>
2004-02-16 12:14:35 [0] DEBUG: Started thread 6 (gw/bb_udp.c:udp_receiver)
2004-02-16 12:14:35 [0] DEBUG: Started thread 7 (gw/bb_udp.c:udp_sender)
2004-02-16 12:14:35 [0] DEBUG: starting wapbox connection module
2004-02-16 12:14:35 [0] DEBUG: Started thread 8
(gw/bb_boxc.c:wdp_to_wapboxes)
2004-02-16 12:14:35 [0] DEBUG: Started thread 9 (gw/bb_boxc.c:wapboxc_run)
2004-02-16 12:14:35 [0] DEBUG: starting WDP router
2004-02-16 12:14:35 [0] DEBUG: Started thread 10
(gw/bearerbox.c:wdp_router)
2004-02-16 12:14:35 [0] INFO: ----------------------------------------
2004-02-16 12:14:35 [0] INFO: Kannel bearerbox II version 1.2.1 starting
2004-02-16 12:14:35 [0] INFO: MAIN: Start-up done, entering mainloop
and then:
heidi:~/kannel/sbin> ./wapbox ./wapkannel.conf
2004-02-16 12:14:54 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl =
0
2004-02-16 12:14:54 [0] DEBUG: Kannel wapbox version `1.2.1'.
System Linux, release 2.4.19, version #3 Tue Sep 3 00:02:30 EDT 2002,
machine i686.
Hostname cosby.dhs.org, IP 69.50.192.72.
Libxml version 20511.
Using OpenSSL 0.9.6 24 Sep 2000.
Using native malloc.
2004-02-16 12:14:54 [0] DEBUG: Dumping Cfg 0x80de550
2004-02-16 12:14:54 [0] DEBUG: filename = <./wapkannel.conf>
2004-02-16 12:14:54 [0] DEBUG: dumping group (wapbox):
2004-02-16 12:14:54 [0] DEBUG: <log-level> = <0>
2004-02-16 12:14:54 [0] DEBUG: <log-file> = </tmp/wapbox.log>
2004-02-16 12:14:54 [0] DEBUG: <bearerbox-host> = <localhost>
2004-02-16 12:14:54 [0] DEBUG: <group> = <wapbox>
2004-02-16 12:14:54 [0] DEBUG: <access-log> = </tmp/wapaccess.log>
2004-02-16 12:14:54 [0] DEBUG: <syslog-level> = <none>
2004-02-16 12:14:54 [0] DEBUG: dumping group (core):
2004-02-16 12:14:54 [0] DEBUG: <wapbox-port> = <13002>
2004-02-16 12:14:54 [0] DEBUG: <log-level> = <1>
2004-02-16 12:14:54 [0] DEBUG: <log-file> = </tmp/bearerbox.log>
2004-02-16 12:14:54 [0] DEBUG: <box-allow-ip> = <127.0.0.1>
2004-02-16 12:14:54 [0] DEBUG: <admin-password> = <hello44>
2004-02-16 12:14:54 [0] DEBUG: <box-deny-ip> = <*.*.*.*>
2004-02-16 12:14:54 [0] DEBUG: <group> = <core>
2004-02-16 12:14:54 [0] DEBUG: <wdp-interface-name> = <*>
2004-02-16 12:14:54 [0] DEBUG: <admin-port> = <13000>
2004-02-16 12:14:54 [0] DEBUG: Dump ends.
2004-02-16 12:14:54 [0] INFO: Added logfile `/tmp/wapbox.log' with level
`0'.
2004-02-16 12:14:54 [0] INFO: Starting to log to file /tmp/wapbox.log
level 0
2004-02-16 12:14:54 [0] DEBUG: syslog parameter is none
2004-02-16 12:14:54 [0] INFO: Logging accesses to '/tmp/wapaccess.log'.
2004-02-16 12:14:54 [0] INFO: Started access logfile `/tmp/wapaccess.log'.
2004-02-16 12:14:54 [0] DEBUG: map_url_max = -1
2004-02-16 12:14:54 [0] INFO:
------------------------------------------------------------
2004-02-16 12:14:54 [0] INFO: Kannel wapbox version 1.2.1 starting up.
2004-02-16 12:14:54 [0] DEBUG: Started thread 1
(wap/wsp_session.c:main_thread)
2004-02-16 12:14:54 [0] DEBUG: Started thread 2
(wap/wsp_unit.c:main_thread)
2004-02-16 12:14:54 [0] DEBUG: Started thread 3
(wap/wsp_push_client.c:main_thread)
2004-02-16 12:14:54 [0] DEBUG: Started thread 4
(wap/timers.c:watch_timers)
2004-02-16 12:14:54 [0] DEBUG: Started thread 5
(wap/wtp_resp.c:main_thread)
2004-02-16 12:14:54 [0] DEBUG: Started thread 6
(gw/wap-appl.c:main_thread)
2004-02-16 12:14:54 [0] DEBUG: Started thread 7
(gw/wap-appl.c:return_replies_thread)
2004-02-16 12:14:54 [0] INFO: Connected to bearerbox at localhost port
13002.
2004-02-16 12:14:54 [0] DEBUG: Started thread 8
(gw/heartbeat.c:heartbeat_thread)
The problem is that I don't know what to do after I have the
servers started. Once they are both up and running, how do you actually
use them to do anything? For example, how do you tell a phone to connect
to the WAP gateway to fetch a URL such as http://www.kannel.org ?
- Eric
On Mon, 16 Feb 2004, Godinho, Carla wrote:
> Hi,
> It seems that you're trying to start the Kannel without mentioning the
> configuration file.
>
> Try first to locate your Kannel configuration file and then when
> starting the bearerbox mention the configuration file with the full
> path.
>
> For ex:
> 1)The configuration file is located at /usr/local/etc/gateway-1.2.1/gw/
> 2) The executable bearerbox is also located at
> /usr/local/etc/gateway-1.2.1/gw
>
> Try to launch the bearerbox like this:
>
>
> /usr/local/etc/gateway-1.2.1/gw/bearerbox
> /usr/local/etc/gateway-1.2.1/gw/smskannel.conf
>