Hi Anton,
I’m having problem when trying to send sms ,using SMPPSim as smsc.
Trying to test sending sms with this command :
Connecting to xxxxxxxxx:13131… connected.
HTTP request sent, awaiting response… 403 Forbidden
2016-08-23 09:20:19 ERROR 403: Forbidden.
the bearerbox is showing the following messages
2016-08-23 09:20:19 [21824] [8] DEBUG: boxc_receiver: sms received
2016-08-23 09:20:19 [21824] [8] WARNING: Cannot find SMSCConn for message to <0123456789>, rejected.
2016-08-23 09:20:19 [21824] [8] DEBUG: SMSC[UNKNOWN]: creating DLR message
2016-08-23 09:20:19 [21824] [8] DEBUG: SMSC[UNKNOWN]: DLR = http://xxxxxxxxx/sentSMS.php?&status=%d&sender=%p&receiver=%P&url=%R&time=%t&sms=%a
2016-08-23 09:20:19 [21824] [8] WARNING: Message rejected by bearerbox, no router!
2016-08-23 09:20:19 [21824] [8] DEBUG: send_msg: sending msg to boxc:
2016-08-23 09:20:19 [21824] [9] DEBUG: send_msg: sending msg to boxc:
2016-08-23 09:20:19 [21824] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2016-08-23 09:20:19 [21824] [8] DEBUG: boxc_receiver: got ack
2016-08-23 09:20:38 [21824] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received
and this is my kannel conf file:
CORE
group = core
admin-port = 13000
admin-password = pass
status-password = changemetoo
log-file = /var/log/kannel/kannel.log
log-level = 0
box-allow-ip = "..."
admin-allow-ip= "..."
access-log = /var/log/kannel/access.log
smsbox-port = 130O1
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100
#SQl connection
group = mysql-connection
id = dlr_db
host = localhost
port = 3306
username = root
password = admin
database = balance
max-connections = 3
#dlr-db
group = dlr-db
id = dlr_db
table = balance
field-smsc = smsc
field-timestamp = timeStamp
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
SMSC smpp1
group= smsc
smsc = smpp
smsc-id = SMPPSim
allowed-smsc-id = SMPPSim
preferred-smsc-id = SMPPSim
host = localhost
port = 2775
transceiver-mode = yes
smsc-username = "smppclient"
smsc-password = password
system-type = "SMPPSim"
log-file = /var/log/kannel/smsc-smpp1.log
log-level = 0
SMSBOX
group = smsbox
smsbox-id = smsbox1
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = "0123456789+ "
global-sender= 123456
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log
mo-recode = true
#Route
group = smsbox-route
smsbox-id= smsbox1
smsc-id= SMPPSim
shortcode = “*”
SENDSMS-USER
group = sendsms-user
default-smsc = none
username = user
password = pass
max-messages = 6
user-allow-ip = “...”
#concatenation = true
dlr-url = “http//:xxxxxxxxxxx/sentSMS.php?myId=123456&status=%d&sender=%p&receiver=%P&smsc=%i&url=%R&time=%t&sms=%a”
SMS SERVICE
group = sms-service
password = password
keyword = start
omit-empty = true
max-messages = 3
get-url = “http://xxxxxxxxxx/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i”
thank you for helping