Hi Yasser,

be sure there is no other instance of the bearerbox (or smsbox) already running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox

   If this is the case, stop it beforing restarting Kannel.

Rodrigo.

----- Original Message ----- From: "Yasser Sultan" <[EMAIL PROTECTED]>
To: <users@kannel.org>
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed



hi
I am trying to run the bearerbox and I am getting the following errors

I have connected a nokia 6630 as a gsm modem through usb port and I am using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser





2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id <(null)> disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration shows mode mtype <nokiaphone>
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem definitio ns from <smskannel.conf>
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) term inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) ma ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps t o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) [0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) [0x70916


//////////////////////////////////config file/////////////////////////


group = core admin-port = 13000 smsbox-port = 13002 admin-password = bar #status-password = foo #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 = "+358,00358,0;+,00" #access-log = "/tmp/access.log" #store-file = "/tmp/kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem"

# SMSC CONNECTIONS

# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167


group = modems id = nokiaphone name = "Nokia Phone" detect-string = "Nokia Mobile Phone" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = true



# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

# SERVICES

group = sms-service
keyword = nop
text = "its working yarr"

# there should be default always

group = sms-service
keyword = default
text = "No service specified"

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/






Reply via email to