chintan: Hi,
Just to give an update - We haven't received this failed message since a week now (without anything changed)..
So I have to agree with George. It must be related to mobile network (in our case its Vodafone as well).
Regards,
Chintan
|
chintan: Operating system name and version: Debian 6
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Vodafone (Huawei)
Interface: USB
Hello,
We are getting inconsistent error "+CMS ERROR: 500 (Unknown error)". Messages with the same content and phone number get sent successfully but some time it fails. We have two devices (GSM) and both are having the same behaviour.
Any help will be greatly appreciated. Thanks in advance.
Following are the logs:
2015-01-05 14:18:41,6, GSM1: Sending SMS from to 614xxxxxxxx
2015-01-05 14:18:41,6, GSM1: Checking if modem is ready
2015-01-05 14:18:41,7, GSM1: -> AT
2015-01-05 14:18:41,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:41,7, GSM1: <- OK
2015-01-05 14:18:41,6, GSM1: Pre-initializing modem
2015-01-05 14:18:41,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2015-01-05 14:18:41,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:42,7, GSM1: <- OK
2015-01-05 14:18:42,7, GSM1: -> AT+CSQ
2015-01-05 14:18:42,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:42,7, GSM1: <- +CSQ: 13,0 OK
2015-01-05 14:18:42,6, GSM1: Signal Strength Indicator: (13,0) -87 dBm (Workable), Bit Error Rate: less than 0.2 %
2015-01-05 14:18:42,6, GSM1: Checking if Modem is registered to the network
2015-01-05 14:18:42,7, GSM1: -> AT+CREG?
2015-01-05 14:18:42,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:43,7, GSM1: <- +CREG: 2,1,"0152","05339E6E" OK
2015-01-05 14:18:43,6, GSM1: Modem is registered to the network
2015-01-05 14:18:43,6, GSM1: Selecting PDU mode
2015-01-05 14:18:43,7, GSM1: -> AT+CMGF=0
2015-01-05 14:18:43,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:43,7, GSM1: <- OK
2015-01-05 14:18:43,7, GSM1: -> AT+CMGS=97
2015-01-05 14:18:43,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:18:44,7, GSM1: <- >
2015-01-05 14:18:44,7, GSM1: -> 0011000B911604114884F20000FF5E4C64B21584C6363C7A99ED2ED3373E507A0E22BFEF6E508CA68BE174B09C221683B96433992B46C3B96430992E279BC114557758CC2E83E86FD0F8ED7697C77410FD0DA2A3CB2079B9FDA69741E4B23D3D2E03
2015-01-05 14:18:44,7, GSM1: Command is sent, waiting for the answer
2015-01-05 14:19:22,7, GSM1: <- +CMS ERROR: 500 (Unknown error)
2015-01-05 14:19:22,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2015-01-05 14:19:22,5, GSM1: Waiting 10 sec. before retrying
And following are the config details:
devices = GSM1,GSM2
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smsd_stats
loglevel = 7
national_prefixes = 0
blocktime = 60
receive_before_send = no
autosplit = 3
alarmhandler = /home/sms/devel/scripts/errmail.sh
alarmlevel = 2
eventhandler = /home/sms/devel/scripts/postaction.sh
[GSM1]
device = /dev/ttyUSB0
baudrate = 115200
check_memory_method = 1
memory_start = 0
incoming = yes
outgoing = yes
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
[GSM2]
device = /dev/ttyUSB4
baudrate = 115200
check_memory_method = 1
memory_start = 0
incoming = yes
outgoing = yes
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
Thanks..
Regards,
Chintan
|