我只是在磨练我的短信服务的技能,现在我正在尝试为此目的配置JASMIN。
我已经在ubuntu18.04上安装了jasmin SMS和图形用户界面PlaySMS。我也成功地使用短信服务发送短信使用SMPP,现在我想进入更多的细节。我想在将SMS发送给提供者之前,对SMS属性进行grep并设置一些规则集。为此,我想知道如何在JASMIN中使用拦截器并对其进行配置。
我已经向https://jasmin.readthedocs.io/推荐了这一点。但是在这里,我没有得到这样的文件https://jasmin.readthedocs.io/en/latest/interception/index.html
以下是一些日志,它们表明已成功连接到拦截器。
2020-05-11 15:01:50 INFO 8354 Interceptor configured and ready.
2020-05-11 15:01:51 INFO 8354 Authenticated Avatar: iadmin作为参考链接,我还在jasmin中为MT路由添加了一些过滤器。这是它的配置。
#Order Type Rate Connector ID(s) Filter(s)
#102 StaticMTRoute 3.45000 smppc(smpptest) <TG (tag=21403)>
#101 StaticMTRoute 1.36000 smppc(smppclient1) <TG (tag=21401)>
#100 StaticMTRoute现在,当我尝试发送短信时,它正在工作,但拦截器不会以任何方式出现在画面中。如果有人可以纠正我的配置错误或任何其他想法,以满足我的需求,请让我知道。
这里我还分享了我的SMPP日志。
SMPP日志:
2020-05-07 16:54:34 INFO 934 SMS-MT [cid:smpptest] [queue-msgid:af4e11d7-d83b-4988-9ee8-c0de955554b3] [smpp-msgid:8fcc3dab-d715-41fd-9cac-6f1bb2ec5b0a] [status:ESME_ROK] [prio:0] [dlr:SMSC_DELIVERY_RECEIPT_REQUESTED] [validity:none] [from:006542] [to:8965475636] [content:'Hi u there, good morning!! \x00admin']
2020-05-07 16:57:45 INFO 934 SMS-MT [cid:smpptest] [queue-msgid:1f58e285-a64d-4fb0-ae96-8f0f2ad6a4ee] [smpp-msgid:e6aa27cc-9b30-4878-8463-096f2949e0ae] [status:ESME_ROK] [prio:0] [dlr:SMSC_DELIVERY_RECEIPT_REQUESTED] [validity:none] [from:006542] [to:+21401896324] [content:'Hello , please hurry up, boss summons us ! \x00admin']
2020-05-07 16:59:42 INFO 934 SMS-MT [cid:smpptest] [queue-msgid:c112affd-7932-4f88-b20d-d5164fddbb72] [smpp-msgid:f0bbfdd2-ef91-4262-93b4-e5ba63cef259] [status:ESME_ROK] [prio:0] [dlr:SMSC_DELIVERY_RECEIPT_REQUESTED] [validity:none] [from:006542] [to:21401963874] [content:'Hello , please hurry up, boss summons us ! \x00admin']```发布于 2020-06-24 09:11:31
尝试启用拦截器
sudo systemctl start jasmin-interceptord 您还可以通过查看以下地址的日志来查看状态
/var/log/jasmin/interceptor.log希望这能有所帮助
发布于 2021-07-23 01:48:15
您是否创建了拦截规则和拦截文件( python文件)?
(/opt/jasmin-scripts/interception/mt-interceptor.py)侦听器文件示例
routable.pdu.params['source_addr'] = 'NewSource'
routable.lockPduParam('source_addr')截取规则示例(在Jasmin网关的命令行界面中)
telnet <ip> <port>
mtinterceptor -a
type DefaultInterceptor
script python3(/opt/jasmin-scripts/interception/mt-interceptor.py)
ok
persist
quit您可能还需要重新启动Jasmin SMS拦截器
sudo systemctl start jasmin-interceptordhttps://stackoverflow.com/questions/61772267
复制相似问题