Hi Nikos,
For the record, the full config, including smsbox definition:
group = core
admin-port = 13000
admin-password = "xxxxxx"
status-password = "xxxxxx"
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;xx.xx.xx.xx"
smsbox-port = 13001
wapbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;xx.xx.xx.xx"
dlr-storage = mysql
store-file = "/var/lib/kannel/store"
sms-resend-freq = 60
sms-resend-retry = 10
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
group = smsbox
smsbox-id = "smsbox"
bearerbox-host = "127.0.0.1"
sendsms-port = 13003
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/access.log"
immediate-sendsms-reply = "true"
reply-emptymessage = ""
group = mysql-connection
id = "dlrdb"
host = "dbserver"
username = "dbuser"
password = "dbpass"
database = "db"
max-connections = 1
group = dlr-db
id = "dlrdb"
table = "kannel_dlr_modem"
field-smsc = "smsc"
field-timestamp = "ts"
field-source = "`from`"
field-destination = "`to`"
field-service = "service"
field-url = "url"
field-mask = "mask"
field-status = "status"
field-boxc-id = "boxc"
# SMSCs
group = smsc
smsc = at
smsc-id = "4550503111"
allowed-smsc-id = "4550503111"
device = telnet
modemtype = mc35
host = 192.168.1.241
port = 7014
my-number = "4550503111"
preferred-smsc-id = MC35
keepalive = 2
alt-dcs = 1
log-file = "/var/log/kannel/4550503111.log"
log-level = 0
# MODEM Configuration
group = modems
id = "mc35"
name = "mc35"
detect-string = "SIEMENS"
detect-string2 = "MC35"
init-string = "AT+CNMI=3,2,0,1,1"
enable-hwhs = "AT\\Q3"
need-sleep = true
speed = 57600
# Default SMS Service
group = sms-service
catch-all = true
keyword = default
get-url = "http://hostname.dk/?sender=%p&text=%r"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
accepted-smsc = 4550503111
# user
group = sendsms-user
username = "user"
password = "password"
concatenation = "true"
max-messages = 10
......................................
Med venlig hilsen / Best Regards
Mads N. Vestergaard
Teknisk ansvarlig / CTO CoolSMS
www.coolsms.com
Phone: +45 7026 1272
Fax: +45 7630 1046
Mobile: +45 4270 1272
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. This message contains confidential information and
is intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. If you
are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents
of this information is strictly prohibited.
Den 12/02/2009 kl. 21.43 skrev Nikos Balkanas:
Hi,
Logs tell your story. It seems that you have not defined an smsbox
in your configuration. Therefore, no routing to your sms-service and
no smsbox-logs.
BR,
Nikos
----- Original Message -----
From: Mads N. Vestergaard
To: Kannel Users
Sent: Thursday, February 12, 2009 9:26 PM
Subject: Re: Messages not being forwarded
Hi Nikos,
catch-all is set to true:
group = sms-service
catch-all = true
keyword = default
get-url = "http://hostname.dk/?sender=%p&text=%r"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
Log:
==> /var/log/kannel/4550503111.log <==
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <-- >
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <-- +CMGS: 1
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <-- OK
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: send command
status: 0
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <-- +CMT: ,22
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <--
06915404939099040A91540505131100009020210242354004D4F29C0E
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: received
message from SMSC: +xxxxxx
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: Numeric
sender (international) <+XXXXXX>
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: User data
length read as (4)
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: Udh decoding
done len=4 udhi=0 udhlen=0 udh=''
2009-02-12 20:24:54 [10740] [6] WARNING: smsbox_list empty!
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: --> AT+CNMA^M
2009-02-12 20:24:54 [10740] [6] DEBUG: AT2[4550503111]: <-- OK
2009-02-12 20:24:58 [10740] [6] DEBUG: AT2[4550503111]: --> AT^M
2009-02-12 20:24:58 [10740] [6] DEBUG: AT2[4550503111]: <-- OK
2009-02-12 20:25:02 [10740] [6] DEBUG: AT2[4550503111]: --> AT^M
2009-02-12 20:25:02 [10740] [6] DEBUG: AT2[4550503111]: <-- OK
==> /var/log/kannel/bearerbox.log <==
2009-02-12 20:25:03 [10740] [15] DEBUG: Dumping 19 messages to store
I did send the message "Test" to the modem
Still nothing happens.
Nothing is beeing wrote to the smsbox.log
......................................
Med venlig hilsen / Best Regards
Mads N. Vestergaard
Teknisk ansvarlig / CTO CoolSMS
www.coolsms.com
Phone: +45 7026 1272
Fax: +45 7630 1046
Mobile: +45 4270 1272
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please
notify the system manager. This message contains confidential
information and is intended only for the individual named. If you
are not the named addressee you should not disseminate, distribute
or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail
from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action
in reliance on the contents of this information is strictly
prohibited.
Den 12/02/2009 kl. 19.57 skrev Nikos Balkanas:
Hi,
Try "catch-all = true" in your sms-service. If this doesn't work
please post the message you are trying to send and detailed smsbox
logs.
BR,
Nikos
----- Original Message -----
From: Mads N. Vestergaard
To: Kannel Users
Sent: Thursday, February 12, 2009 8:33 PM
Subject: Messages not being forwarded
Hi There,
We have just compiled 1.4.3 from source.
We are trying to received messages from a Siemens MC35, and it
seems to work fine:
2009-02-12 19:24:41 [2695] [6] DEBUG: AT2[4550503111]: <--
07916437109901F0240A91542407212700009020219142734004D4F29C0E
2009-02-12 19:24:41 [2695] [6] DEBUG: AT2[4550503111]: received
message from SMSC: +XXXXXXXX
2009-02-12 19:24:41 [2695] [6] DEBUG: AT2[4550503111]: Numeric
sender (international) <+XXXXXXXX>
2009-02-12 19:24:41 [2695] [6] DEBUG: AT2[4550503111]: User data
length read as (4)
2009-02-12 19:24:41 [2695] [6] DEBUG: AT2[4550503111]: Udh decoding
done len=4 udhi=0 udhlen=0 udh=''
But it is never being forwarded to the url.
my sms-service config:
group = sms-service
keyword = default
get-url = "http://hostname.dk/service?sender=%p&text=%r"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
In the log I can see:
2009-02-12 19:31:25 [4557] [15] DEBUG: Dumping 14 messages to store
What could be causing these issues ?
......................................
Med venlig hilsen / Best Regards
Mads N. Vestergaard
Teknisk ansvarlig / CTO CoolSMS
www.coolsms.com
Phone: +45 7026 1272
Fax: +45 7630 1046
Mobile: +45 4270 1272
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This message contains confidential
information and is intended only for the individual named. If you
are not the named addressee you should not disseminate, distribute
or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail
from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.