René's URL Explorer Experiment


Title: How to handle delivery reports? · Issue #250 · python-smpplib/python-smpplib · GitHub

Open Graph Title: How to handle delivery reports? · Issue #250 · python-smpplib/python-smpplib

X Title: How to handle delivery reports? · Issue #250 · python-smpplib/python-smpplib

Description: Hello, I am trying to use the library to create a sms sending app with billing and routing. The main idea is to open one client instance per SMPP provider fetched from MySQL DB and run it in separate thread. An Flask route is waiting for...

Open Graph Description: Hello, I am trying to use the library to create a sms sending app with billing and routing. The main idea is to open one client instance per SMPP provider fetched from MySQL DB and run it in separa...

X Description: Hello, I am trying to use the library to create a sms sending app with billing and routing. The main idea is to open one client instance per SMPP provider fetched from MySQL DB and run it in separa...

Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/250

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to handle delivery reports?","articleBody":"Hello, \r\n\r\nI am trying to use the library to create a sms sending app with billing and routing. \r\nThe main idea is to open one client instance per SMPP provider fetched from MySQL DB and run it in separate thread.\r\n\r\nAn Flask route is waiting for HTTP/HTTPS requests and does send SMS on request while the thread with client.listen() is running in background. I pass over the client object to sending function.\r\n\r\nI figure out that the client instance reference is available in the handlers for submit_sm_resp and delivery_sm_resp in \"pdu._client\" and i was able to pass some additional data inside my class which inherits from client. \r\n\r\nThe main issue is that pdu._client (object reference) from delivery_sm is different object than in submit_sm_resp (object reference) and i don't know how to exchange the data between client sending the message and the one from delivery report.\r\n\r\nCurrently i save the pdu.sequence and msg_id in mysql DB. However i would like to wait with HTTP response to client sending SMS message unil get delivery report to send proper response about sending status.\r\n\r\nMaybe my idea of handling this problem is incorrect or i miss something on how to handle this using the library.\r\n\r\nPlease let me know if keeping the client connection open with SMPP server is good practice.\r\nAlso how to get the delivery_response correlated to submit_sm_response (i see sequence is different because the pdu._client instances are different and the smpp unique message id is same however i don't want use DB pooling for synchronization when waiting for delivery report).\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/tom17031","@type":"Person","name":"tom17031"},"datePublished":"2024-04-22T20:45:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/250/python-smpplib/issues/250"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e5973051-cbdf-d57a-64d1-57f645c8a268
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC99E:2E4E4F:EBAC94:14C49F4:696FC110
html-safe-noncea07283901411c09aaa0460e3bb576295b51c6d4fde18c026f040480b88e75c40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTlFOjJFNEU0RjpFQkFDOTQ6MTRDNDlGNDo2OTZGQzExMCIsInZpc2l0b3JfaWQiOiIzMzY5MzEzNjg1NzIyNzI5MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac40589fc75fe9cd8794a35a478229ab831cba24925d774984747b14aae9d24b1a
hovercard-subject-tagissue:2257433028
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-smpplib/python-smpplib/250/issue_layout
twitter:imagehttps://opengraph.githubassets.com/968213c3272a493b1affbfc9a71d48000113e25ff9d440011d4a84fe5e7448c8/python-smpplib/python-smpplib/issues/250
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/968213c3272a493b1affbfc9a71d48000113e25ff9d440011d4a84fe5e7448c8/python-smpplib/python-smpplib/issues/250
og:image:altHello, I am trying to use the library to create a sms sending app with billing and routing. The main idea is to open one client instance per SMPP provider fetched from MySQL DB and run it in separa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametom17031
hostnamegithub.com
expected-hostnamegithub.com
None330ca0f04ee8ecef1da04306a0dd49293f64679ee9a4bd5eaf2e1272bfdcf145
turbo-cache-controlno-preview
go-importgithub.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git
octolytics-dimension-user_id45378833
octolytics-dimension-user_loginpython-smpplib
octolytics-dimension-repository_id9441405
octolytics-dimension-repository_nwopython-smpplib/python-smpplib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9441405
octolytics-dimension-repository_network_root_nwopython-smpplib/python-smpplib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release816ad575e27a390de2e2089ebe75261d12de9b37
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-smpplib/python-smpplib/issues/250#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-smpplib%2Fpython-smpplib%2Fissues%2F250
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-smpplib%2Fpython-smpplib%2Fissues%2F250
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-smpplib%2Fpython-smpplib
Reloadhttps://github.com/python-smpplib/python-smpplib/issues/250
Reloadhttps://github.com/python-smpplib/python-smpplib/issues/250
Reloadhttps://github.com/python-smpplib/python-smpplib/issues/250
python-smpplib https://github.com/python-smpplib
python-smpplibhttps://github.com/python-smpplib/python-smpplib
Please reload this pagehttps://github.com/python-smpplib/python-smpplib/issues/250
Notifications https://github.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Fork 143 https://github.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Star 187 https://github.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Code https://github.com/python-smpplib/python-smpplib
Issues 20 https://github.com/python-smpplib/python-smpplib/issues
Pull requests 15 https://github.com/python-smpplib/python-smpplib/pulls
Discussions https://github.com/python-smpplib/python-smpplib/discussions
Actions https://github.com/python-smpplib/python-smpplib/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-smpplib/python-smpplib/security
Please reload this pagehttps://github.com/python-smpplib/python-smpplib/issues/250
Insights https://github.com/python-smpplib/python-smpplib/pulse
Code https://github.com/python-smpplib/python-smpplib
Issues https://github.com/python-smpplib/python-smpplib/issues
Pull requests https://github.com/python-smpplib/python-smpplib/pulls
Discussions https://github.com/python-smpplib/python-smpplib/discussions
Actions https://github.com/python-smpplib/python-smpplib/actions
Security https://github.com/python-smpplib/python-smpplib/security
Insights https://github.com/python-smpplib/python-smpplib/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-smpplib/python-smpplib/issues/250
New issuehttps://github.com/login?return_to=https://github.com/python-smpplib/python-smpplib/issues/250
How to handle delivery reports?https://github.com/python-smpplib/python-smpplib/issues/250#top
https://github.com/tom17031
https://github.com/tom17031
tom17031https://github.com/tom17031
on Apr 22, 2024https://github.com/python-smpplib/python-smpplib/issues/250#issue-2257433028
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.