Hi, I configured Kannel with my USB Modem and sending SMS is successful. But incoming SMS isn’t working.
I tried some different configurations and haven’t found one that works yet for receiving SMS. Here’s my Kannel config:
# CORE
group = core
admin-port = 13000
admin-password = xxxx
status-password = xxxx
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100
# SMSBOX
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+ "
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log
mo-recode = true
## SMSC gsm1
group = smsc
smsc = at
smsc-id = gsm1
allowed-smsc-id = gsm1
preferred-smsc-id = gsm1
my-number = +642110xxxxx
#allowed-prefix = "+64;64;0"
unified-prefix = "+64,64,0;+,00"
modemtype = generic
device = /dev/ttyUSB0
speed = 115200
validityperiod = 143
sim-buffering = true
max-error-count = 5
log-file = /var/log/kannel/smsc-gsm1.log
log-level = 0
## SMSC gsm2
group = smsc
smsc = at
smsc-id = gsm2
allowed-smsc-id = gsm2
preferred-smsc-id = gsm2
my-number = +6420403xxxxx
#allowed-prefix = "+64;64;0"
unified-prefix = "+64,64,0;+,00"
modemtype = generic
device = /dev/ttyUSB6
speed = 115200
validityperiod = 143
sim-buffering = true
max-error-count = 5
log-file = /var/log/kannel/smsc-gsm1.log
log-level = 0
group = modems
id = generic
message-storage = ME
need-sleep = true
sendline-sleep = 200
init-string = "AT+CNMI=2,2,0,1,0;+CMEE=1"
#reset-string = "AT+CFUN=1"
group = modems
id = generic
message-storage = ME
need-sleep = true
sendline-sleep = 200
init-string = "AT+CNMI=2,2,0,1,0;+CMEE=1"
#reset-string = "AT+CFUN=1"
# SENDSMS-USER
group = sendsms-user
default-smsc = none
username = admin
password = pwd
max-messages = 6
concatenation = true
# SMS SERVICE
group = sms-service
keyword = default
omit-empty = true
max-messages = 0
get-url = "https://example.com/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i"