Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Evalpy filter issues #196
After creating an evalpy filter and adding it to a route, as soon as the message is sent jcli mtrouter command stops working. if, for example, "mtrouter -l" command is executed, jcli console exits with the "Connection closed by foreign host" message. Then jasmin service needs a restart.
Additionally, message never gets properly routed as neither username nor user_id is successfully matched to the "routable.user".
Speaking of persistence, I also noticed when evalpy filter with corresponding mtrouter is created, if not persisted before leaving jcli, after leaving jcli it's lost and recreation is needed for both filter an mtrouter.
Currently I'm on version b26.
I've tried to reproduce the issue with no success, here's what i did:
And here's the /tmp/issue-196.py file:
Please advise if you did anything different ? (using 0.6b26)
I suppose the best is to provide entire configuration causing the described issue.
Smppc list is provided to show which one was actually connected.
Script file /tmp/evalpy-test.py looks like this:
if routable.user == 'Evalpyusr2': result = False else: result = True
I've established SMPP connection and sent the message using the following details:
Given the username, message was NOT supposed to end up on smppc(CONNECT04), but that wasn't the case. Message log as follows:
And finally, when wanted to check mtrouter configuration, the following happened:
@ed-irwane this issue is closed in v0.6b27 so please update to get rid of it.
You have two issues:
Additionally, you can enable logging inside your filter in order to debug what's going on there when you send a message to the filter, checkout this: http://docs.jasminsms.com/en/latest/faq/developers.html#how-to-log-events-inside-an-evalpyfilter