在 Kannel 上接收短信但无法在 URL 上转发

Receiving SMS on Kannel but not able to forward it on URL

我已经配置并连接了 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:]

我做错了什么或遗漏了什么?

对于发现自己遇到同样问题的任何人,我发现了我所缺少的东西。

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

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

只要添加这个块,我的回调就开始受到影响 URL。

原题中的conf没有问题,只是少了一块。

希望这对某人有所帮助:)