-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SMPP client to send high priority, transactional messages before bulk messages #24
Comments
@simonkagwi Would you be up for thinking this through and making a PR? |
@tobiasmcnulty Yeah, sure. I'll do that |
@tobiasmcnulty Is there a way to filter on the MTMessage model to get transactional messages only, or how would we identify if a message is transactional or not? |
@tobiasmcnulty I've set up test data for the
|
@simonkagwi Amazing! Excellent work. |
To do:
MTMessage.priority_flag
integer column with choices based on thepriority_flag
values in the SMPP spec:-priority_flag
to the existing conditional index on theMTMessage
model to facilitate fast retrieval of new messages (descending, to return highest priority first) (see: https://docs.djangoproject.com/en/5.1/ref/models/indexes/#expressions, https://docs.djangoproject.com/en/5.1/ref/models/expressions/#using-f-to-sort-null-values)PriorityBlockingRouter
in therapidsms-smpp-gateway
repo that always sets priority_flag=2 inrespond()
--set-priority-flag
command line option (BooleanOptionalAction
) that includes thepriority_flag
in the PDU, if enabled. Defaults toFalse
. If apriority_flag
is included in the--submit-sm-params
on the command line, thepriority_flag
set on the individual message should take precedence.EXPLAIN ANALYZE
psql should use the index and be fast, like so (might need toVACUUM ANALYZE
):The text was updated successfully, but these errors were encountered: