我正在尝试在ubuntu Server 14.04上使用playSMS。 我安装了showSMS,如show here,我已经将Kannel配置为show here。 我的/etc/Kannel/kannel.conf是:
# CORE
group = core
admin-port = 13000
admin-password = playsms
status-password = playsms
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-type = file
store-file = /var/log/kannel/kannel.store
smsbox-max-pending = 100
# SMSBOX
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+"
log-file = /var/log/kannel/smsbox.log
log-level = 0
global-sender = "isi dengan sms center"
access-log = /var/log/kannel/access.log
#SMSC MODEM GSM
group = smsc
smsc = at
port = 13013
host = localhost
smsc-id = modex
modemtype = auto
device = /dev/ttyUSB0
sms-center = "+393359609600"
speed = 230400
# GROUP MODEM
group = modems
id = siemens_mc35i
name = "SIEMENS MC35i"
detect-string = "SIEMENS"
detect-string2 = "MC35i"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 230400
enable-hwhs = "AT\\Q3"
need-sleep = true
# SENDSMS-USER
group = sendsms-user
default-smsc = default
username = playsms
password = playsms
max-messages = 10
concatenation = true
# SMS SERVICE 'default'
group = sms-service
keyword = default
accept-x-kannel-headers = true
max-messages = 0
assume-plain-text = true
catch-all = true
get-url = "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q"
但是当我在playms应用程序中登录时,我的短信进入了queque,我可以在带有黄色框的外发短信中看到它们。
如果我去管理局 - >管理网关 - > Kannel - >管理kannel,kannel状态被拒绝。
有人可以帮我吗?
答案 0 :(得分:0)
确保您的Kannel正在运行,您可以执行ps ax和尾部Kannel日志以查看Kannel是否正常运行。
ps ax | grep box
tail -f /var/log/kannel/kannel.log
一旦您知道Kannel正在运行,然后通过菜单登录您的playSMS网站:管理 - >管理网关 - > Kannel - >管理kannel,你需要设置Kannel管理端口和Kannel管理员密码,根据你的kannel.conf它们是:
admin-port = 13000 admin-password = playsms
答案 1 :(得分:0)
尝试在浏览器中检查此链接的kannel状态网址: 有链接: http://localhost:13000/status?password=playsms