I run a website at http://www.jumpbid.com that uses text messaging to
send eBay auction alerts to people based on search words. It's a free
website, and thus very low budget, so I don't use a commercial SMS
gateway. But it's a pain to keep track of changes to SMS gateways
around the world. I discovered kannel over the weekend while
researching for a better solution. Have I understood correctly - can I
use kannel as a sort of universal gateway that takes a cell phone or
pager number and finds its gateway? Or is kannel something more generic?
I decided to try it out and see what it could do, but my setup didn't
work. I did a simple bearerbox - smsbox setup. My conf file looks like
this:
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = /hidden/
status-password = /hidden/
smsbox-port = 13001
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 1
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = "0123456789 "
global-sender = "1111111"
access-log = "kannel.access"
log-file = "smsbox.log"
log-level = 0
group = sendsms-user
username = /hidden
/password = /hidden
/user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;192.168.0.*"
So, in the core section, I'm specifying my admin-port (13000) and my
smsbox-port (13001). When I start bearerbox, port 13000 starts
listening as expected, but port 13001 does not. It acts as though my
smsbox-port line isn't there. Here's the output when I start bearerbox:
2007-03-17 08:53:13 [10933] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2007-03-17 08:53:13 [10933] [0] INFO: HTTP: Opening server at port 13000.
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2007-03-17 08:53:13 [10933] [0] DEBUG: starting UDP sender/receiver module
2007-03-17 08:53:13 [10933] [0] INFO: Adding interface *
2007-03-17 08:53:13 [10933] [0] DEBUG: udpc_create: Bound to UDP
<0.0.0.0:9200>
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 4
(gw/bb_udp.c:udp_receiver)
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 5
(gw/bb_udp.c:udp_sender)
2007-03-17 08:53:13 [10933] [0] DEBUG: udpc_create: Bound to UDP
<0.0.0.0:9201>
2007-03-17 08:53:13 [10933] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 10933.
2007-03-17 08:53:13 [10933] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 10933.
2007-03-17 08:53:13 [10933] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps to pid 10933.
2007-03-17 08:53:13 [10933] [4] DEBUG: Thread 4
(gw/bb_udp.c:udp_receiver) maps to pid 10933.
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 6
(gw/bb_udp.c:udp_receiver)
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 7
(gw/bb_udp.c:udp_sender)
2007-03-17 08:53:13 [10933] [0] DEBUG: starting wapbox connection module
2007-03-17 08:53:13 [10933] [0] ERROR: Missing wapbox-port variable,
cannot start WAP
2007-03-17 08:53:13 [10933] [0] DEBUG: starting WDP router
2007-03-17 08:53:13 [10933] [0] DEBUG: Started thread 8
(gw/bearerbox.c:wdp_router)
2007-03-17 08:53:13 [10933] [0] INFO:
----------------------------------------
2007-03-17 08:53:13 [10933] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2007-03-17 08:53:13 [10933] [0] INFO: MAIN: Start-up done, entering mainloop
2007-03-17 08:53:13 [10933] [5] DEBUG: Thread 5 (gw/bb_udp.c:udp_sender)
maps to pid 10933.
2007-03-17 08:53:13 [10933] [6] DEBUG: Thread 6
(gw/bb_udp.c:udp_receiver) maps to pid 10933.
2007-03-17 08:53:13 [10933] [7] DEBUG: Thread 7 (gw/bb_udp.c:udp_sender)
maps to pid 10933.
2007-03-17 08:53:13 [10933] [8] DEBUG: Thread 8
(gw/bearerbox.c:wdp_router) maps to pid 10933.
2007-03-17 08:53:13 [10933] [8] DEBUG: udp_die: removing producers from
udp-lists
2007-03-17 08:53:13 [10933] [8] DEBUG: Thread 8
(gw/bearerbox.c:wdp_router) terminates.
The only error I see is where it says "missing wapbox-port variable,
cannot start WAP. That's okay by me, since that's not a part of the
tool I particularly need. And I can see where the admin server is
opened at port 13000. So since port 13001 isn't listening, of course
when I start up smsbox, it gives me this error:
2007-03-17 08:58:13 [10989] [0] ERROR: error connecting to server
`localhost' at port `13001'
Anyway, this is as far as I've gotten. Any ideas anyone? To someone
experienced with kannel, I'm sure this is an easy problem to spot. If
you would have pity on a newbie, I'd sure appreciate it.