jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.02k stars 549 forks source link

save the tag in sms_logger #1021

Closed ChenYiHsiang closed 2 years ago

ChenYiHsiang commented 2 years ago

Hi, if we try the tag filters , use it in the interceptor and send sms. is it possible to save tag info with the sms log in sms_logger program?

farirat commented 2 years ago

since the sms_logger consumes messages directly from rabbitmq topics then it will only get Content objects holding smpp PDUs and some minimalistic metadata, the "routable" object holds the tagging data and is not exchanged over the rabbitmq broker.

You still can catch the routable inside the router (after interception occurs), the evalpy filter can be used for that, this is an example of logging the routable from within the filter (here), you can adapt it to your needs.