我正在使用 Kannel 来发送/接收 SMS 的项目,到目前为止,我们被告知阅读有关 Kannel 的文档并进行模拟。我能够使用 Opensmpp 发送 SMS,但我无法将 SMS 接收到我的 Kannel 以进行处理。如果有任何机会使用 OpenSmpp 做到这一点,请告诉我,因为我被困在这里。如果不是,您能否将我推荐给另一个可以给我这种可能性的 SMSC 模拟器。提前谢谢你
问问题
11087 次
2 回答
7
感谢您的回答。我使用了 SMPPSIm,效果很好。我将放置我的配置,希望这会对某人有所帮助。Kannel.conf:
#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"
于 2012-02-28T09:29:14.767 回答
7
我强烈建议使用 Selenium Software 的 SMPPSIM 作为 SMSC 模拟器。上次我从这里得到它。它需要 Java,但如果我没记错的话,OpenSMPP 也是如此。启动并运行它后,您可以连接到它的 Web 接口端口,该端口允许您注入将发送到连接客户端的消息。它还允许 ESME 到 ESME 模式,基本上将您发送的所有内容发回。
于 2012-02-27T01:04:52.187 回答