我打开brearerbox,smsbox(bearerbox./kannel.conf和smsbox./kannel.conf)和startsmppsim.sh文件;然后当我打开 http://localhost:15000/status 时,将显示以下内容:
Kannel bearerbox version `1.4.5'. Build `Jul 28 2018 11:15:38', compiler `7.3.0'. System Linux, release 4.15.0-29-generic, version #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018, machine x86_64. Hostname shaghayegh-VirtualBox, IP 127.0.1.1. Libxml version 2.9.4. Using native malloc.
Status: running, uptime 0d 0h 9m 56s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: received 0, sent 0
DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storage
Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 9m 45s)
SMSC connections:
SMPPSim[SMPPSim] SMPP:internal.smpp.ddj.co.za:2775/2775:smppclient1:smpp (re-connecting, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs)
我无法确切地知道发生了什么。我想如果一切正常,我应该可以通过以下网址发送短信:http://localhost:13015/cgi-bin/sendsms 但什么也没发生。 我是这个学科的新手,我不知道自己在做什么错。
这是我的kannel.conf文件
group = core
admin-port = 15000
smsbox-port = 15001
admin-password = bar
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
group = smsc
smsc = smpp
smsc-id = SMPPSim
system-type = smpp
service-type = smpp
host = internal.smpp.ddj.co.za
port = 2775
smsc-username = smppclient1
smsc-password = password
throughput=7
transceiver-mode = true
send-url = http://localhost:13015/cgi-bin/sendsms
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-level = 0
group = sms-service
keyword = default
text = "No services defined"
答案 0 :(得分:1)
确认端口是配置文件“ SMPPSim / conf / smppsim.props”第4行上的一个端口,并且该端口已使用telnet打开,
telnet internal.smpp.ddj.co.za 2775
如果SMPPSim与kannel在同一台服务器上运行,则可以将主机从“ internal.smpp.ddj.co.za”更改为“ 127.0.0.1”