如果你有我的问题的解决方案,那就太好了:我必须限制发送的短信由150短信每小时。这意味着如果gammu在下午08:00开始发送sms,并在08:20完成发送150条sms下一段时间将在晚上9点发送另外150条短信
每天的配额是1000条短信
我试过这个:select,InsertIntoDB,SendingDateTime,SenderID FROM发件箱WHERE SendingDateTime < NOW() and SendingTimeOut < NOW() AND SendBefore >= CURTIME() AND SendAfter <= CURTIME() AND (isnull( SenderID ) OR SenderID = '') and (select count(1) FROM select count( 1) FROM select count(1) AND TIMESTAMPDIFF(hour,SendingDateTime,now()) <1)< 150 ORDER BY SendingDateTime ASC LIMIT 1
但是它不起作用。任何帮助对我来说都是很好的。
发布于 2016-10-23 19:15:52
Gammu没有速率限制。您可以使用monitor工具查看已发送了多少条消息,并在达到限制后停止守护进程。
https://stackoverflow.com/questions/40170128
复制相似问题