Issue While Sending MT using TLV in Kannel

0

I am using Kannel 1.4.4 for connection With SMSC. When try to Send SMS to Mobile number we are getting Error as below. However MO is comming to server perfectly. Issue is with MT only.

 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:]

My Configuration file is as below:

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"

Final Testing URL is with added 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    
sms
sms-gateway
smpp
kannel
asked on Stack Overflow Jun 13, 2016 by Pavnesh

1 Answer

0

i faced the same issue, it got fixed when i include sms-length parameter into 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"
answered on Stack Overflow Aug 4, 2016 by Rizwan Basheer

User contributions licensed under CC BY-SA 3.0