Hi,
You are using the auto configuration. This is obviously not appropriate for
receiving MOs. To do this, you need to configure init-string and CNMI. There
is a section in UG. Read about it.
BR,
Nikos
----- Original Message -----
From: "Amirali Shambayati" <amirali.shambay...@gmail.com>
To: <users@kannel.org>
Sent: Saturday, May 21, 2011 5:30 PM
Subject: receiving incoming messages
Hello all,
I use following configuration to run kannel. I don't have any problem
about sending sms using kannel, but I can't send message from a mobile
to kannel. Any help is appreciated.
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = mysql
group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = 89117
database = mysql
# max count of connections that will be opened for dbpool
#default is 1
#max-connections = 1
group = dlr-db
id = sqlbox-db
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 = boxc
group = smsc
smsc = at
modemtype = auto
device=/dev/ttyACM0
#my-number = 8998112700000077051
my-number = 09367913772
connect-allow-ip = 127.0.0.1
log-level = 0
group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port=13003
sendsms-port = 13013
#global-sender = 8998112700000077051
global-sender = 09367913772
log-level = 0
group = sendsms-user
username = kanneluser
password = mypassword
concatenation= true
max-messages = 10
group = sms-service
keyword = default
text="salam"
#keyword-regex = .*
catch-all = true
max-messages = 1
#get-url = "http://localhost/sms?phone=%p&text=%a"
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true
group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true
group = modems
id = siemens_sl45
name = "Siemens SL45"
detect-string = "SIEMENS"
detect-string2 = "SL45"
init-string = "AT+CNMI=1,2,2,2,1"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
message-storage = "SM"
group = modems
id = nokia
name = "Nokia N81"
detect-string = "Nokia"
init-string ="ATZ"
init-string ="ATQ0 V1 E1 S0=0 &C1 &D2 + FCLASS=0"
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true
group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
no-smsc = true
group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"
group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true
group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"
group = smsc
smsc = fake
port = 10000
--
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran