Я новичок в Каннеле. Попытка настроить отправку / получение SMS с использованием Kannel 1.4.3 с модемом Huawei e220. ОС: Ubuntu 14.04 лтс.
Я получаю эту ошибку в bearerbox:
2014-10-15 20:55:50 [3425] [6] DEBUG: AT2[Huawei-E220-00]: --> AT+CSCA="my number"
2014-10-15 20:55:51 [3425] [6] DEBUG: AT2[Huawei-E220-00]: <-- ERROR
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Generic error: ERROR
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Initialization of device failed.
2014-10-15 20:55:51 [3425] [6] INFO: AT2[Huawei-E220-00]: Closing device
2014-10-15 20:55:51 [3425] [6] ERROR: AT2[Huawei-E220-00]: Couldn't connect (retrying in 10 seconds).
Не удается сбросить CSCA из команд AT Minicom, также выдается ОШИБКА.
Вот моя настройка smskannel.conf:
#---------------------------------------------
# CORE
#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#---------------------------------------------
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = Huawei-E220-00
port = 10000
modemtype = huawei_e220_00
device = /dev/ttyUSB0
sms-center = "my number"
my-number = "my number"
connect-allow-ip = 127.0.0.1
sim-buffering = true
keepalive = 5
log-level = 0
#---------------------------------------------
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = "my number"
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
log-level = 0
#access-log = "/tmp/access.log"
#---------------------------------------------
# SEND-SMS USERS
#
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
concatenation= true
max-messages = 10
#---------------------------------------------
# SERVICES
#
group = sms-service
keyword = default
catch-all = yes
max-messages = 0
#get-url = "http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar& to=number&text=Hello"
get-url = http://localhost/sms?phone=%p&text=%a
#---------------------------------------------
# MODEMS
#
group = modems
id = huawei_e220_00
name = "Huawei E220"
detect-string = "huawei"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
message-storage = "SM"
need-sleep = true
speed = 9600