+CMS Error 321 with kannel

Hello i have kannel and playsms running.

i can send sms but cannot receive.

Can somebody help me out here?

I find this error.

2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: --> AT+CMGR=21^M
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: <-- OK
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: not deleted.
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: --> AT+CMGR=22^M
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: <-- OK
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: not deleted.
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: --> AT+CMGR=23^M
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: <-- OK
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: not deleted.
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: --> AT+CMGR=24^M
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: <-- OK
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: not deleted.
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: --> AT+CMGR=25^M
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: <-- +CMS ERROR: 321
2016-11-30 21:14:56 [635] [6] ERROR: AT2[Huawei]: CMS ERROR: +CMS ERROR: 321
2016-11-30 21:14:56 [635] [6] ERROR: AT2[Huawei]: CMS ERROR: Invalid memory index -> don’t worry, just memory fragmentation. (321)
2016-11-30 21:14:56 [635] [6] DEBUG: AT2[Huawei]: failed to get message 25.

I think it cant remove the sms that’s in the buffer or something like that.

My kannel conf is as follow:

#CORE
group = core
admin-port = 13000
wapbox-port = 13008
admin-password = playsms
status-password = playsms
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
store-type = file
store-file = “/var/log/kannel/kannel.store”

#SMSC MODEM GSM
group = smsc
smsc = at
port = 13013
host = "localhost"
my-number = +999999 sorry for privacy reasons i cant tell you the number
unified-prefix = "+99,99,0;+,00"
smsc-id = Huawei
modemtype = Huawei
device = /dev/ttyUSB0
speed = 9600
log-file = /var/log/kannel/smsc-gsm1.log
log-level = 0
max-error-count = 5
sim-buffering = true

WAPBOX box

group = wapbox
bearerbox-host = 127.0.0.1
log-file = “/var/log/kannel/wapbox.log”

GROUP MODEM

group = modems
id = huawei
name = huawei
detect-string = "huawei"
init-string = "AT+CNMI=2,1,0,0,0;+CMEE=1"
message-storage = SM

#SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+"
global-sender = "isi dengan sms center"
log-file = “/var/log/kannel/smsbox.log”

Nobody knows about this?

Yes of course change the message-storage = SM to “SM” it will be work