I was setting upKannel for use as an SMSC (using Ericsson phone-as-smsc). I read the manual, and setup the "wapkannel.conf" file using the default provided but adding:
smsbox-port = 13001
group = smsbox bearerbox-host = localhost
No other changes there...
The smskannel.conf is attached.
The error returned is as follows:
2003-03-05 11:18:36 [0] DEBUG: Kannel smsbox version `1.1.5'.
System Linux, release 2.4.20, version #3 SMP Wed Feb 26 17:53:50 EET 2003, machine i686.
Hostname debian, IP 127.0.0.1.
Libxml version 20405.
Using checking malloc.
2003-03-05 11:18:36 [0] INFO: Service global sender set as '2010****'
2003-03-05 11:18:36 [0] DEBUG: HTTP: Opening server at port 13013.
2003-03-05 11:18:36 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2003-03-05 11:18:36 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2003-03-05 11:18:36 [0] INFO: Set up send sms service at port 13013
2003-03-05 11:18:36 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2003-03-05 11:18:36 [0] DEBUG: ----------------------------------------------
2003-03-05 11:18:36 [0] DEBUG: Kannel smsbox version 1.1.5 starting
2003-03-05 11:18:36 [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2003-03-05 11:18:36 [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
*2003-03-05 11:18:36 [0] ERROR: connect failed
2003-03-05 11:18:36 [0] ERROR: System error 111: Connection refused
2003-03-05 11:18:36 [0] ERROR: error connecting to server `localhost' at port `13001'
2003-03-05 11:18:36 [0] PANIC: Couldn't connect to the bearerbox.
*Should not my writting the port in the wapkannel.conf allows smsbox to connect?
TimS
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [EMAIL PROTECTED] # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 #
group = core admin-port = 13000 smsbox-port = 13001 admin-password = spybar #status-password = foo admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "+20,0020,0;+,00" #access-log = "access.log" #store-file = "kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem" # SMSC CONNECTIONS FOR ERICSSON T28 group = smsc smsc = at2 modemtype = ericsson_r520m device = /dev/ttyS0 # speed = 9600 # keepalive = 10 # sim-buffering = true pin = 1515 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 2010**** #sendsms-chars = "0123456789 +-" #log-file = "/tmp/smsbox.log" #log-level = 0 #access-log = "access.log" # SEND-SMS USERS group = sendsms-user username = tester password = **** user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" #user-deny-ip = "" #user-allow-ip = "" # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" # SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r"; max-messages = 0 group = sms-service keyword = default text = "No service specified"
