jookies / smpp.pdu Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
There is mapping error in PriorityFlag Enumeration , PriorityFlag enumeration value mappings are starting from 1.
Due to this issue , if we choose priority value 3 in jasmin sms request, the value receive will be 4 and thus it's failing the validation and causing the below exception.
Traceback (most recent call last):, File "/usr/local/lib/python3.9/site-packages/jasmin/protocols/smpp/factory.py", line 333, in submit_sm_event_interceptor, return self.submit_sm_post_interception(routable=routable, system_id=system_id, proto=proto), File "/usr/local/lib/python3.9/site-packages/jasmin/protocols/smpp/factory.py", line 474, in submit_sm_post_interception, c = self.SMPPClientManagerPB.perspective_submit_sm(, File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1613, in unwindGenerator, return _cancellableInlineCallbacks(gen), File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks, _inlineCallbacks(None, g, status), --- <exception caught here> ---, File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks, result = g.send(result), File "/usr/local/lib/python3.9/site-packages/jasmin/managers/clients.py", line 581, in perspective_submit_sm, c = SubmitSmContent(, File "/usr/local/lib/python3.9/site-packages/jasmin/managers/content.py", line 154, in __init__, raise InvalidParameterError("Priority must be set from 0 to 3, it is actually set to %s" %, jasmin.managers.content.InvalidParameterError: Priority must be set from 0 to 3, it is actually set to 4,
This issue can be fixed by replacing the pdu_types module code
PriorityFlag = Enum('PriorityFlag', list(constants.priority_flag_name_map.keys()))
with;
PriorityFlag = Enum('PriorityFlag', list(constants.priority_flag_name_map.keys()),start=0)
I've tried creating a pull request but seems like no permission to do that .
Please make this changes to avoid this error .
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.