Kannel两次调用sms-service get-url

时间:2015-11-17 05:06:36

标签: kannel

我使用GSM MODEM和网关1.4.3发送短信。 我在配置文件中定义了sms-service以捕获所有带有关键字'TT'的消息,并在接收到sunch消息时调用URL。

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

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?

提前致谢

1 个答案:

答案 0 :(得分:1)

删除“catch-all = yes”。 “catch-all = yes”使kannel捕获每条消息,即使消息与关键字不匹配并调用get-url。