How to preserve connection for outgoing sms? #262
lujamaharjan
started this conversation in
Ideas
Replies: 1 comment
-
|
👋 Keep the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to reuse an SMPP connection for multiple SMS sends without reconnecting each time?
I’m building an API for sending outgoing SMS using SMPP. Currently, my implementation creates a new connection and binds to the SMSC every time I send a message. This is quite expensive because connection setup, binding, and unbinding are costly operations.
Here’s a simplified version of my current code:
I’d like to reuse the same SMPP connection across multiple API calls instead of reconnecting and rebinding every time.
Is there a recommended way to maintain a persistent SMPP connection in Python using smpplib so that I can efficiently send multiple messages without repeated connect/unbind/disconnect operations?
Thanks in advance for any guidance!
Beta Was this translation helpful? Give feedback.
All reactions