Проблема при отправке MT с использованием TLV в Kannel

Я использую Kannel 1.4.4 для связи с SMSC. При попытке отправить SMS на номер мобильного телефона мы получаем сообщение об ошибке, как показано ниже. Однако МО отлично подходит к серверу. Проблема только с МТ.

 2016-06-13 14:54:50 FAILED Send SMS [SMSC:smsc1] [SVC:anyuser] [ACT:] [BINF:] [FID:] [META:?smpp?PARTNER+ROLE+ID=623&PRICEPOINT=1900599&PRODUCT=4359&?smpp_resp?] [from:4819] [to:971559532788] [flags:-1:0:-1:-1:31] [msg:12:test message] [udh:0:]
 2016-06-13 14:54:50 Receive DLR [SMSC:smsc1] [SVC:anyuser] [ACT:] [BINF:] [FID:] [META:?smpp?PARTNER+ROLE+ID=623&PRICEPOINT=1900599&PRODUCT=4359&?smpp_resp?] [from:4819] [to:971559532788] [flags:-1:-1:-1:-1:16] [msg:44:NACK/0x000000fe/Transaction Delivery Failure] [udh:0:]

Мой файл конфигурации, как показано ниже:

group = core
admin-port = 13000
admin-password = anypassword
status-password = foo
smsbox-port = 13001
#admin-deny-ip = ""
admin-allow-ip =  "*.*.*.*"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 4
dlr-storage = internal
access-log="/var/log/kannel/access.log"
store-type=spool
store-location=/var/spool/kannel/

group = smpp-tlv
name = PRICEPOINT
tag = 0x1400
type = octetstring
length = 20
smsc-id=smsc1

group = smpp-tlv
name = PRODUCT
tag = 0x1401
type = octetstring
length = 8
smsc-id=smsc1

group = smpp-tlv
name = PARTNER_ROLE_ID
tag = 0x1402
type = octetstring
length = 8
smsc-id=smsc1

group = smsc
smsc = smpp
host = 185.127.160.1
port = 12621
receive-port = 0
smsc-username = 623
smsc-password = idnu
system-type = smpp
interface-version = 34
throughput = 60
smsc-id = smsc1
keepalive = 30
wait-ack = 30
#alt-charset=3
alt-charset = UTF-8
alt-addr-charset = "GSM"
wait-ack-expire=0x03
msg-id-type = 0x00
source-addr-ton = 0x01
source-addr-npi = 0x00
dest-addr-ton = 0x01
dest-addr-npi = 0x00
max-pending-submits = 10
log-file = "/var/log/kannel/kannel_1.log"
log-level = 4
alt-charset=3

# Receiver
group = smsc
smsc = smpp
host = 135.129.120.13
receive-port = 13025
smsc-username = 623
smsc-password = idnu
system-type = smpp
interface-version = 34
throughput = 60
smsc-id = smsc1
keepalive = 30
wait-ack = 30
#alt-charset=3
alt-charset = UTF-8
alt-addr-charset = "GSM"
wait-ack-expire=0x03
msg-id-type = 0x00
source-addr-ton = 0x01
source-addr-npi = 0x00
dest-addr-ton = 0x01
dest-addr-npi = 0x00
max-pending-submits = 10
log-file = "/var/log/kannel/kannel_1.log"
log-level = 4
alt-charset=3

group = smsbox
smsbox-id=smsbox1
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsbox-access.log"
log-level=4
sendsms-port=13013
bearerbox-port=13001
mo-recode = true

# SMSBOX - ROUTE
group = smsbox-route
smsbox-id = smsbox1
smsc-id = "smsc11;test"

group = sendsms-user
username = anyuser
password = anypassword
dlr-url = "http://localhost/DLR?smsc-id=%i&kannel-id=%I&kannel-ans=%A&for-id=%F&dlr-val=%d&msg=%b&src=%p&dst=%P&dcs=%O"
max-messages = 10
concatenation = true
#user-deny-ip = ""
user-allow-ip = "*.*.*.*"

group = sms-service
keyword = default
text = This facility is down for maintenance. Sorry for the inconvenience. Please try again after some time.
accept-x-kannel-headers = true
max-messages = 3
omit-empty = true
concatenation = true
get-url = "http://localhost/MO?msisdn=%p&psms=%P&msg=%a&smscid=%i&   charset=%C"

Окончательный URL-адрес тестирования с добавленным TLV

http://localhost:13013/cgi-bin/sendsms?username=anyuser&password=anypassword&to=0559532788&text=test%20message&from=4819&dlr-mask=31&meta-data=?smpp?PRICEPOINT=1900599%26PRODUCT=4359%26PARTNER+ROLE+ID=623    

1 ответ

Я столкнулся с той же проблемой, она была исправлена, когда я включил параметр sms-length в group = smsbox.

group = smsbox
bearerbox-host = localhost
sendsms-port = 12015
sms-length = 500
log-file = "/home/smsbox_server.log"
log-level = 0
access-log = "/home/access_smsbox_server.log"
Другие вопросы по тегам