我正在使用Kannel项目来发送/接收SMS短信。目前我们被告知需要阅读有关Kannel的文档并进行模拟。我已经能够使用Opensmpp来发送SMS,但是在接收SMS以便处理它时遇到了问题。如果使用OpenSmpp有这样的机会,请告诉我,因为我现在卡住了。如果没有,请向我推荐另一个SMSC模拟器,可以给我这个可能性。
谢谢您的帮助!
#kannel.conf
group = core
admin-port = 13000
smsbox-port = 14000
admin-password = saad
log-file = /home/saad/klogs/kannel.log
log-level = 0
access-log = /home/saad/klogs/access_kannel.log
dlr-storage = pgsql
#--- postgresql connection
group = pgsql-connection
id = mydlr
host = 127.0.0.1
port = 5432
username = saad
password = ****
database = kannelDb
max-connections = 1
#---- DLR table structure
group = dlr-db
id = mydlr
table = "kannel_dlr"
field-smsc = smsc
field-timestamp = timstamp
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc_id
group = smsbox
#smsbox-id = mysmsbox do not uncomment this if you have only one smsbox
bearerbox-host = localhost
sendsms-port = 1025
#global-sender = 1000
log-file = /home/saad/klogs/smsbox.log
log-level = 0
mo-recode = true
group = smsc
smsc = smpp
smsc-id = SMPPSim
host = 127.0.0.1
port = 2775
transceiver-mode = 1
receive-port = 2775
smsc-username = smppclient1
smsc-password = password
system-type = 'VMA'
#service-type = 'test'
interface-version = 34
#system-id = smppclient
preferred-smsc-id = SMPPSim
group = sendsms-user
username = saad
password = ****
#forced-smsc = SMPPSim
default-sender = '1000'
group = sms-service
keyword = default
accept-x-kannel-headers = true
#text = "No service specified"
catch-all = true
max-messages = 0 # it's better to put this parameter to 0 or you will have a lot Ack in your network
get-url = "http://localhost/kannel/?phone=%p&text=%a"
我强烈建议使用Selenium Software的SMPPSIM作为SMSC模拟器。上一次我是从这里获取的。它需要Java,但如果我没记错,OpenSMPP也是需要的。一旦你启动并运行它,你可以连接到它的Web接口端口,从而可以注入消息并发送给连接的客户端。它还允许ESME-to-ESME模式,基本上会将你发送的所有内容都返回。
Linux
环境或者Windows
上尝试过这个吗? - Kulasangar