Kannel呼叫短信服务获得url两次



我使用GSM调制解调器和网关1.4.3发送短信。我在配置文件中定义了短信服务,以捕获所有带有关键字"TT"的消息,并在收到sunch消息时调用URL。

我的问题是,即使收到的消息很小,geturl也会被调用两次。这是我的配置文件。。

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-file ="/tmp/smsbox.log"
log-level = 0
global-sender = 123456
group = sendsms-user
username = tester
password = foobar
#dlr-url = "http://192.168.13.67:8084/TestSMSDelReport/DeliveryReport/getDeliveryReport?smsID=?&timestamp=%t&status=%d&number=%p"
concatenation= true
max-messages = 3 
forced-smsc = gsm_modem
group = sms-service
keyword = TT
#keyword-regex = .*
catch-all = yes
max-messages = 0 
get-url = "http://192.168.75.241:8080/InwardMsg/InwardMsg/inwardMessages?phone=%p&text=%a"
text = "You asked nothing and I did it!"

我必须更改任何属性才能只调用一次get-url吗?

提前感谢

删除"catch-all=yes"。"catch-all=yes"使kannel捕获每条消息,即使消息与关键字不匹配,也可以调用geturl。

最新更新