I have installed the gateway and with loglevel set to 0 , in the 
bearerbox.log
I see this type of errors :


2002-09-06 13:06:06 [2] ERROR: Error reading from fd 42:
2002-09-06 13:06:06 [2] ERROR: System error 104: Connection reset by peer
2002-09-06 13:10:08 [2] ERROR: Error reading from fd 42:
2002-09-06 13:10:08 [2] ERROR: System error 104: Connection reset by peer
2002-09-06 13:12:53 [2] ERROR: Error reading from fd 42:
2002-09-06 13:12:53 [2] ERROR: System error 104: Connection reset by peer
2002-09-06 13:18:23 [2] ERROR: Error reading from fd 42:
2002-09-06 13:18:23 [2] ERROR: System error 104: Connection reset by peer
2002-09-06 13:21:23 [2] ERROR: Error reading from fd 42:
2002-09-06 13:21:23 [2] ERROR: System error 104: Connection reset by peer

and in the smsbox.log I see this type of errors :

2002-09-06 13:09:55 [3] DEBUG: HTTP: Resetting HTTPClient for `10.0.0.20'.
2002-09-06 13:10:55 [1] ERROR: Error reading from fd 23:
2002-09-06 13:10:55 [1] ERROR: System error 104: Connection reset by peer
2002-09-06 13:10:55 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80dd870.
2002-09-06 13:10:55 [1] DEBUG: HTTP: Destroying HTTPClient for `10.0.0.20'.

where is the error ? Is a problem with the file permission of 
 kannel..store file , or the kannel.access file ?

ps. Sorry for my terrible english #

Here my kannel.conf

#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
# admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;10.0.0.20"
# wapbox-port = 13002
smsbox-port = 13003
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "kannel.access"
# box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;10.0.0.20"
log-level = 0
#dlr-storage = mysql
store-file = "/var/log/kannel/kannel.store"

group = smsc
smsc = at2
modemtype = nokiaphone
device = /dev/ttyS0


group = smsbox
bearerbox-host = localhost
log-file = "/var/log/kannel/smsbox.log"
sendsms-port = 13004
log-level = 0
#global-sender="+393351298859"
global-sender = "610610"
access-log = "kannel.access"
#http-request-retry = 3


group = sms-service
keyword = default
text = "Grazie per aver partecipato!"
#get-url = "http://nettuno.wavenet.it/sms/sms.exe?testo=%a";
post-url = 
"http://nettuno.wavenet.it/sms/sms.exe?testo=%a&from=%p&timestamp=%t&sendsmsuser=%n&firstword=%k&nextword=%s";
max-messages = 0
#http-request-retry = 3


group = sendsms-user
username = foo
password = bar
user-deny-ip = "*.*.*.*"
user-allow-ip = "10.0.0.20;10.0.0.29"

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

#
# DLR with MySQL support configuration
#
# Example defining a MySQL database connection resource and
# the required table and field values.
#

group = mysql-connection
id = mydlr
host = ivr.wavenet.it
mysql-username = smsgtw
mysql-password = smsgtw
database = smsgtw

#
# Create the required table for the DLR support in the database
# with something similar like this:
#
#   CREATE TABLE dlr (
#     smsc varchar(40),
#     ts varchar(40),
#     destination varchar(40),
#     service varchar(40),
#     url varchar(255),
#     mask int(10),
#     status int(10)
#   )
#


#group = sdb-connection
#id = mydlr
#url = "mysql:host=ivr.wavenet.it:db=slsgtw:uid=slsgtw:pwd=smsgtw"

group = dlr-mysql
mysql-id = mydlr
table = smsdlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status




Thanks in advance
Alex


Reply via email to