Project

General

Profile

Bug #785

Can’t send SMS with Kannel (+CMS ERROR: +CMS ERROR: 500)

Added by Vasia Pupkini4 about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/25/2018
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Hi everybody!
I Install Kannel as SMS Gateway but SMS don’t send with its and in Kannel log i found this:

2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: TP-Validity-Period: 55 minutes
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: --> AT+CMGS=24^M
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: <-- >
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: send command status: 1
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: --> 11000C8199985312678900000A0BC8329BFD06DDDF723619
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: --> ^Z
2018-08-25 13:29:39 [12014] [6] DEBUG: AT2[gsm1]: <-- >
2018-08-25 13:29:41 [12014] [6] DEBUG: AT2[gsm1]: <-- +CMS ERROR: 500
2018-08-25 13:29:41 [12014] [6] ERROR: AT2[gsm1]: +CMS ERROR: +CMS ERROR: 500
2018-08-25 13:29:41 [12014] [6] ERROR: AT2[gsm1]: +CMS ERROR: An unknown error occurred (500)
2018-08-25 13:29:41 [12014] [6] DEBUG: AT2[gsm1]: send command status: 1
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: TP-Validity-Period: 55 minutes
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: --> AT+CMGS=24^M
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: <-- >
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: send command status: 1
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: --> 11000C8199985312678900000A0BC8329BFD06DDDF723619
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: --> ^Z
2018-08-25 13:29:43 [12014] [6] DEBUG: AT2[gsm1]: <-- >
2018-08-25 13:29:46 [12014] [6] DEBUG: AT2[gsm1]: <-- +CMS ERROR: 500
2018-08-25 13:29:46 [12014] [6] ERROR: AT2[gsm1]: +CMS ERROR: +CMS ERROR: 500
2018-08-25 13:29:46 [12014] [6] ERROR: AT2[gsm1]: +CMS ERROR: An unknown error occurred (500)
2018-08-25 13:29:46 [12014] [6] DEBUG: AT2[gsm1]: send command status: 1

My Kannel config:

# CORE
group = core
admin-port = 13000
admin-password = p
$$w0rd
status-password = p@$$w0rd
box-allow-ip = "*.*.*.*"
unified-prefix = "+99890;+99891;+99893;+99894;+99895;+99897;+99898;+99899"
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13003
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100
#white-list-regex = ???

  1. SMSBOX
    group = smsbox
    smsbox-id = mainbox
    bearerbox-host = 192.168.100.225
    bearerbox-port = 13003
    global-sender = 988972979728
    sendsms-port = 13013
    sendsms-chars = "0123456789
    "
    log-file = /var/log/kannel/smsbox.log
    log-level = 0
    access-log = /var/log/kannel/access.log
    mo-recode = true
  1. SMSC gsm1
    group = smsc
    smsc = at
    smsc-id = gsm1
    modemtype = ztemodem
    allowed-smsc-id = gsm1
    preferred-smsc-id = gsm1
    #allowed-prefix = "+99890;+99891;+99893;+99894;+99895;+99897;+99898;+99899"
    unified-prefix = "+99890;+99891;+99893;+99894;+99895;+99897;+99898;+99899"
    device = /dev/ttyUSB1
    keepalive = 60
    #sms-center = +988970000003
    my-number = +998972979728
    speed = autodetect
    validityperiod = 10
    sim-buffering = true
    max-error-count = 5
    log-file = /var/log/kannel/smsc-gsm1.log
    log-level = 0

group = modems
id = ztemodem
name = "ZTE"
#init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0;+CNMI=1,2,0,1,0;+CMGF=1"
detect-string = "ZTE CORPORATION"
#need-sleep = true
#message-storage = "SM"
no-smsc = true
keepalive-cmd = "AT+CBC;+CSQ"
broken = true

  1. SENDSMS-USER
    group = sendsms-user
    default-smsc = gsm1
    username = playsms
    password = playsms
    max-messages = 6
    concatenation = true
  1. SMS SERVICE
    group = sms-service
    keyword = default
    omit-empty = true
    max-messages = 0
    concatenation=true
    get-url = "http://192.168.100.225/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i"
  1. SMS ROUTE
    group = smsbox-route
    smsbox-id = mainbox
    smsc-id = gsm1@

Please help! Thnak in advance.

History

#1 Updated by Vasia Pupkini4 about 1 year ago

In my situation, I use modem ZTE MF667 connected to host

ATI^M
Manufacturer: ZTE CORPORATION
Model: MF667
Revision: BD_HDMF667V1.0.0B01
IMEI: 864389022916896
+GCAP: +CGSM,+DS,+ES

#2 Updated by Vasia Pupkini4 about 1 year ago

I try send SMS (curl “http://127.0.0.1:13013/cgi-bin/sendsms?username=foo&password=bar&to=+998935217698&text=Hello+world”), I receive 0: Accepted for deliveryr in shell. In /var/log/kannel/access.log in last line I receive
request added - sender:foo:SMSd 127.0.0.1 target:998935217698 request: ‘Hello world’ without *+* sign and in /var/log/kannel/kannel.log

#3 Updated by Vasia Pupkini4 about 1 year ago

Problem was solved with specifying unified-prefix In me case it is ==> unified-prefix = "+9989,009989,0;+,00".
But that is not all. In this situation, sending SMS will not work from the command line, since the + character is interpreted as a space, and therefore, instead of + it will be necessary to specify 00 (in my cases, since in unified-prefix it is indicated like this). As for the IPA, it is perfectly well interpreted via IPA +. The topic is closed.

Also available in: Atom PDF