08.08.2012 18:31, Rene Kluwen пишет:
The error is self-explanatory:
Mallformed addr `TestSMSSender', alphanum length greater 11 chars.
Alpha sender addresses have a maximum length of 11 characters.
== Rene
*From:*admin [mailto:[email protected]] **
Good time of day.
After last change, my opensmppbox is working. But after sendeing 2 or 3
sms one after one, it crushes. :(
After that the kannel script runs opensmppbox again, usually after one
minute.
At this time I have working PHP script, sending sms, it works correct
with the other kannel server.
Here are the debug logs.
2012-08-11 15:41:46 [30830] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `1'.
2012-08-11 15:41:46 [30830] [0] WARNING: DLR: using default 'internal'
for storage type.
2012-08-11 15:41:46 [30830] [0] INFO: DLR using storage type: internal
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: opensmppbox DLR storage using
type: mysql
2012-08-11 15:41:46 [30830] [0] INFO: Waiting for SMPP connections on
port 13006.
2012-08-11 15:41:48 [30830] [1] INFO: Client connected from <1.1.1.1>
2012-08-11 15:41:48 [30830] [1] INFO: Connected to bearerbox at 1.1.1.1
port 13001.
2012-08-11 15:41:48 [30830] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread starts # the errors
2012-08-11 15:41:48 [30830] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread starts # the errors
2012-08-11 15:41:50 [30830] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread terminates # the errors
2012-08-11 15:41:50 [30830] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread terminates # the errors
2012-08-11 15:41:51 [30830] [0] INFO: No more waiting for SMPP connections.
2012-08-11 15:42:46 [30844] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `1'. # restart by kannel
service. After that I can send 2-3 sms, and it crashes again.
There are my config files
kannel.conf
group = core
admin-port = 13000
admin-password =
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/kannel-access.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "0.0.0.0"
dlr-storage = mysql
smsbox-max-pending = 100
sms-resend-retry = 20
sms-resend-freq = 180
#unified-prefix = ",+"
ssl-server-cert-file="/home/aamst/commcert/cert.crt"
ssl-server-key-file="/home/aamst/commcert/cert.key"
group = mysql-connection
id = dlr
host = 192.168.102.2
username = sms
password =
database = smsbox
port = 3306
max-connections = 5
group = dlr-db
id = dlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid
group = smsbox
bearerbox-host = 1.1.1.1
bearerbox-port = 13005
sendsms-port = 13131
sendsms-port-ssl = false
mo-recode = 1
sendsms-chars = "0123456789"
reply-couldnotfetch = "Service unavailable"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
group = sendsms-user
username = example
password =
default-sender = "platbox"
user-deny-ip = "11.11.11.11"
user-allow-ip = "*.*.*.*"
max-messages = 3
omit-empty = true
split-chars = "|"
concatenation = true
group = sendsms-user
username = user09
password =
default-sender = "09"
user-deny-ip = "11.11.11.11"
user-allow-ip = "*.*.*.*"
max-messages = 5
omit-empty = true
split-chars = "|"
concatenation = true
default-smsc = process
group = smsc
smsc = smpp
smsc-id = process
allowed-smsc-id = process
host = smpp3.test.ru
port = 8888
transceiver-mode = 1
smsc-username = "test1"
smsc-password =
system-type = NULL
source-addr-ton = 0x00
source-addr-npi = 0x00
dest-addr-ton = 0x00
dest-addr-npi = 0x00
reconnect-delay = 20
enquire-link-interval = 30
log-file = "/var/log/kannel/smsc-operator-process.log"
log-level = 0
group = sms-service
keyword = default
catch-all = true
accepted-smsc = "process"
text = Hello
max-messages = 5
concatenation = true
omit-empty = true
accept-x-kannel-headers = true
sqlbox.conf
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
#global-sender = ""
bearerbox-host = 1.1.1.1
bearerbox-port = 13001
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
check-balance = 1
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#access-log = "/var/log/kannel/sqlaccess.log"
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""
# Database connection examples. Please uncomment as needed
# Example MYSQL Connection
group = mysql-connection
id = sqlbox-db
host = 192.168.102.2
username = sms
password =
database = smsbox
port = 3306
max-connections = 5
smppbox.conf
group = core
#dlr-storage = mysql
# this group defines your opensmppbox
group = opensmppbox
box-dlr-storage = mysql
# our boxc type
opensmppbox-id = opensmppbox
# the port to listen on for smpp connections
opensmppbox-port = 13006
# we connect to the following host as a box
bearerbox-host = 1.1.1.1
bearerbox-port = 13001
#bearerbox-dcs = utf-8
log-level = 1
log-file = /var/log/kannel/opensmppbox.log
our-system-id = platbox
route-to-smsc = process
smpp-logins = "/etc/opensmppbox/clients"
# the following is just standard dlr configuration
group = mysql-connection
id = dlr
host = 192.168.102.2
username = sms
password =
database = smsbox
port = 3306
# you can increase this upon a higher load
max-connections = 5
group = dlr-db
id = dlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid