【问题标题】:Receiving SMS on Kannel but not able to forward it on URL在 Kannel 上接收短信但无法在 URL 上转发
【发布时间】:2018-09-11 08:12:08
【问题描述】:

我已配置并连接 SMSC 以在 Kannel 上正确接收 SMS。 正如我从访问日志中看到的那样,我能够成功接收 SMS,但我的 API 没有受到攻击。

这是配置文件:

group = smsc
smsc = smpp
smsc-id = XXXXXX
host = abc.abc.abc.abc
port = 1111
transceiver-mode = true
throughput = 10
smsc-username = xxxxx
smsc-password = xxxxx
reconnect-delay = 60
system-type = XXXXXX
allowed-smsc-id = XXXXXX
#get-url = "https://example.org/sms-receive?sender=%P&recipient=%p&timestamp=%t&smstext=%a" //tried this too, but didnt work


group = sms-service
keyword-regex = .*
catch-all = true
forced-smsc = XXXXXX
get-url = "https://example.org/sms-receive?sender=%P&recipient=%p&timestamp=%t&smstext=%a" //tried this too, but didnt work
#post-url = "https://example.org/sms-receive?sender=%P&recipient=%p&timestamp=%t&smstext=%a" //tried this too, but didnt work

我在访问日志中得到关注:

2018-09-11 13:08:38 Receive SMS [SMSC:XXXXXX] [SVC:] [ACT:xxxxx] [BINF:CMT] [FID:] [META:?smpp?] [from:91xxxxxxxxxx] [to:+91xxxxxxxxxx] [flags:-1:0:-1:0:-1] [msg:16:Hello World] [udh:0:]

我做错了什么或错过了什么?

【问题讨论】:

    标签: callback sms sms-gateway kannel geturl


    【解决方案1】:

    对于任何发现自己有同样问题的人,我发现我错过了什么。

    我还需要在主 conf 文件中添加以下块:

    group = smsbox-route
    smsbox-id = smsbox
    smsc-id = XXXXXX; //name of the smsc
    

    刚刚添加了这个块,我的回调 URL 开始受到攻击。

    原始问题中的 conf 没有任何问题,只是缺少一个块。

    希望这可以帮助某人:)

    【讨论】:

      猜你喜欢
      • 2017-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多