Hello!

I'm trying configure sending and receiving of sms via kannel (and mms
via mbuni, but if I understand it correctly, I'll need the sms working
correctly first). I'm complete newbie in this area, so I will be glad if
you can point me to a good source to learn more stuff about it.

So far, I managed to get the sms sending to work, but receiving is not
working at all. The debug (level 0) log of bearerbox shows the
communication with the modem. It lists the commands while sending the
sms and also when I try to call the number of SIM card in the modem, but
there is completely no indication that an sms was received (but my
mobile phone gets back the delivery notification).

The modem is Siemens ES75 (or MC75 as it identifies itself). I had to
set an explicit init-string otherwise there was an error on the
initialization step. I'm not sure the modem is configured properly, so
if somebody has any idea about proper init string, please tell me.

The kannel config and a log from bearerbox startup (modem
initialization) are below.

Thanks in advance for your help!

Peter


------------
kannel.conf:
------------

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
wapbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
smsbox-port = 13003
#smsbox-port-ssl = yes
unified-prefix = "+41,0041;+,00"
store-file = /var/spool/kannel/sms-store


group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
timer-freq = 10
map-url = "http://mmsc/* http://localhost:10002";


group = smsbox
bearerbox-host = localhost
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/kannel.access"
log-level = 0
sendsms-port = 13131
global-sender = 0041793456789


group = smsc
smsc = at
modemtype = auto
device = /dev/ttyACM0
#speed = 115200
speed = 460800
my-number = "0041793456789"
smsc-id = "ES75"
allowed-prefix = "0;+"
unified-prefix = "+41,0041;+,00"


# SMS modem Siemens ES75
group = modems
id = "ES75"
name = "Siemens ES75"
detect-string = "SIEMENS"
#detect-string2 = "MC75"
# the line below works for sending
init-string = AT+CGDCONT=1,"IP","internet"
# maybe &D3 - no hangup, reset instead
#init-string = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
# the line below partially works, some destination numbers ok (1 on sunrise) 
some end up with an error (1 on swisscom)
#init-string = ATZ0 Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
#keepalive-cmd = "AT+CBC;+CSQ"
#enable-hwhs = "AT\\Q3"
# line below required, otherwise sending fails
need-sleep = true
# message-storage = "SM"


# SMS service
group = sms-service
#keyword = default
keyword =
keyword-regex = .*
catch-all = true
#allowed-prefix = "0;+"
get-url = "http://localhost:3000?phone=%p&text=%a";
# if there are problems, try to uncomment the next line
#max-messages = 0


# SMS sending
group = sendsms-user
username = sms
password = sms
user-allow-ip = "127.0.0.1"
default-smsc = "ES75"
concatenation = true





----------------------
bearerbox startup log:
----------------------
(cleaned of threading and library version info)



2008-01-07 03:17:10 [6996] [0] INFO: Debug_lvl = 0, log_file = <none>,
log_lvl = 0
2008-01-07 03:17:10 [6996] [0] WARNING: DLR: using default 'internal'
for storage type.
2008-01-07 03:17:10 [6996] [0] INFO: DLR using storage type: internal
2008-01-07 03:17:10 [6996] [0] DEBUG: Kannel bearerbox version `1.4.1'.
Build `Nov 10 2006 22:22:29', compiler `4.1.2 20061103 (prerelease) (Ubuntu 
4.1.1-18ubuntu2)'.
System Linux, release 2.6.20-15-server, version #2 SMP Sun Apr 15 07:41:34 UTC 
2007, machine i686.
Hostname server01, IP 127.0.0.1.
Libxml version 2.6.26.
Using OpenSSL 0.9.8b 04 May 2006.
Compiled with MySQL 5.0.26, using MySQL 5.0.38.
Using native malloc.

2008-01-07 03:17:10 [6996] [0] ERROR: Couldn't open logfile 
`/var/log/kannel/bearerbox.log'.
2008-01-07 03:17:10 [6996] [0] ERROR: System error 13: Permission denied
2008-01-07 03:17:10 [6996] [0] INFO: HTTP: Opening server at port 13000.
2008-01-07 03:17:10 [6996] [0] DEBUG: starting smsbox connection module
2008-01-07 03:17:10 [6996] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
default (100).
2008-01-07 03:17:10 [6996] [0] INFO: Set SMS resend frequency to 60 seconds.
2008-01-07 03:17:10 [6996] [0] INFO: SMS resend retry set to unlimited.
2008-01-07 03:17:10 [6996] [0] INFO: DLR rerouting for smsc id <ES75> disabled.
2008-01-07 03:17:10 [6996] [0] INFO: AT2[ES75]: configuration doesn't show 
modemtype. will autodetect
2008-01-07 03:17:10 [6996] [0] DEBUG: starting UDP sender/receiver module
2008-01-07 03:17:10 [6996] [0] INFO: Adding interface *
2008-01-07 03:17:10 [6996] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200>
2008-01-07 03:17:10 [6996] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201>
2008-01-07 03:17:10 [6996] [0] DEBUG: starting wapbox connection module
2008-01-07 03:17:10 [6996] [0] DEBUG: starting WDP router
2008-01-07 03:17:10 [6996] [0] INFO: ----------------------------------------
2008-01-07 03:17:10 [6996] [0] INFO: Kannel bearerbox II version 1.4.1 starting
2008-01-07 03:17:10 [6996] [6] DEBUG: AT2[ES75]: detecting modem type
2008-01-07 03:17:10 [6996] [6] INFO: AT2[ES75]: opening device
2008-01-07 03:17:10 [6996] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2008-01-07 03:17:10 [6996] [0] INFO: Loading store file 
`/var/spool/kannel/sms-store'
2008-01-07 03:17:10 [6996] [0] INFO: Store-file size 0, starting to unpack
2008-01-07 03:17:10 [6996] [0] INFO: Retrieved 0 messages, non-acknowledged 
messages: 0
2008-01-07 03:17:10 [6996] [6] DEBUG: AT2[ES75]: device opened
2008-01-07 03:17:10 [6996] [0] INFO: MAIN: Start-up done, entering mainloop
2008-01-07 03:17:10 [6996] [0] DEBUG: AT2[ES75]: start called
2008-01-07 03:17:10 [6996] [7] DEBUG: sms_router: gwlist_len = 0
2008-01-07 03:17:10 [6996] [15] DEBUG: Dumping 0 messages to store
2008-01-07 03:17:11 [6996] [6] DEBUG: AT2[ES75]: device opened
2008-01-07 03:17:11 [6996] [6] INFO: AT2[ES75]: speed set to 460800
2008-01-07 03:17:11 [6996] [6] DEBUG: AT2[ES75]: --> ^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: --> AT^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: --> AT&F^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: --> ATE0^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- ATE0
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: --> ATI^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- SIEMENS
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- MC75
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- REVISION 03.010
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: found string <SIEMENS>, using 
modem definition <Siemens ES75>
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: --> AT+CSMS=?^M
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- +CSMS: (0,1)
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:13 [6996] [6] INFO: AT2[ES75]: Phase 2+ is supported
2008-01-07 03:17:13 [6996] [6] INFO: AT2[ES75]: closing device
2008-01-07 03:17:13 [6996] [6] INFO: AT2[ES75]: opening device
2008-01-07 03:17:13 [6996] [6] DEBUG: AT2[ES75]: device opened
2008-01-07 03:17:14 [6996] [6] DEBUG: AT2[ES75]: device opened
2008-01-07 03:17:14 [6996] [6] INFO: AT2[ES75]: init device
2008-01-07 03:17:14 [6996] [6] INFO: AT2[ES75]: speed set to 460800
2008-01-07 03:17:14 [6996] [6] DEBUG: AT2[ES75]: --> ATZ^M
2008-01-07 03:17:14 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:14 [6996] [6] DEBUG: AT2[ES75]: --> AT^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- AT
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT&F^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- AT&F
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> ATE0^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- ATE0
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT\Q3^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT+CPIN?^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- +CPIN: READY
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT+CMGF=0^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT+CSMS=?^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- +CSMS: (0,1)
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] INFO: AT2[ES75]: Phase 2+ is supported
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> AT+CSMS=1^M
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- +CSMS: 1,1,1
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:15 [6996] [6] DEBUG: AT2[ES75]: --> 
AT+CGDCONT=1,"IP","internet"^M
2008-01-07 03:17:16 [6996] [6] DEBUG: AT2[ES75]: <-- OK
2008-01-07 03:17:16 [6996] [6] INFO: AT2[ES75]: AT SMSC successfully opened.


Reply via email to