Title: Get message_id when sending sms · Issue #245 · python-smpplib/python-smpplib · GitHub
Open Graph Title: Get message_id when sending sms · Issue #245 · python-smpplib/python-smpplib
X Title: Get message_id when sending sms · Issue #245 · python-smpplib/python-smpplib
Description: The example contains the following snipped for sending a SMS: for part in parts: pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, #source_addr_npi=smpplib.consts.SMPP_NPI_ISDN, # Make sure it is a byte string, not...
Open Graph Description: The example contains the following snipped for sending a SMS: for part in parts: pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, #source_addr_npi=smpplib.consts.SMPP_NPI_IS...
X Description: The example contains the following snipped for sending a SMS: for part in parts: pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, #source_addr_npi=smpplib.consts.SMPP_NPI_IS...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/245
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get message_id when sending sms","articleBody":"The example contains the following snipped for sending a SMS:\r\n\r\n```python\r\nfor part in parts:\r\n pdu = client.send_message(\r\n source_addr_ton=smpplib.consts.SMPP_TON_INTL,\r\n #source_addr_npi=smpplib.consts.SMPP_NPI_ISDN,\r\n # Make sure it is a byte string, not unicode:\r\n source_addr='SENDERPHONENUM',\r\n\r\n dest_addr_ton=smpplib.consts.SMPP_TON_INTL,\r\n #dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,\r\n # Make sure thease two params are byte strings, not unicode:\r\n destination_addr='PHONENUMBER',\r\n short_message=part,\r\n\r\n data_coding=encoding_flag,\r\n esm_class=msg_type_flag,\r\n registered_delivery=True,\r\n )\r\n print(pdu.sequence)\r\n```\r\n\r\nIs it somehow possible to get the `message_id` that will be later echoed as `receipted_message_id` at this point?\r\nI know that I can use the following listener:\r\n\r\n```python\r\nclient.set_message_sent_handler(\r\n lambda pdu: logger.debug(f\"sent {pdu.message_id}\")\r\n)\r\n```\r\n\r\nBut I cannot know if the message_id is the message id for the message I just sent in a multi-threaded environment 🤔 ","author":{"url":"https://github.com/micartey","@type":"Person","name":"micartey"},"datePublished":"2024-01-03T12:18:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/245/python-smpplib/issues/245"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:873b0dd2-fbca-b939-1f72-591df9ecee3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8FA:22E260:33FC310:45E06E9:69706E06 |
| html-safe-nonce | 5dfe0b389c19cabde667f740aac7fbf1acf742a413a3c5ef3379a9f2bf456d7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEZBOjIyRTI2MDozM0ZDMzEwOjQ1RTA2RTk6Njk3MDZFMDYiLCJ2aXNpdG9yX2lkIjoiMjY1Nzg5NzEyNTEzODk1MTY4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 98697217a3327b46e97d32ff53b7ac9060f990764fa3d5c78cc24240a2ed7012 |
| hovercard-subject-tag | issue:2063929870 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-smpplib/python-smpplib/245/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0bbd0cd598c23597ee58e380a3300c2922d0a8d2f720e711fefc1494bd052322/python-smpplib/python-smpplib/issues/245 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0bbd0cd598c23597ee58e380a3300c2922d0a8d2f720e711fefc1494bd052322/python-smpplib/python-smpplib/issues/245 |
| og:image:alt | The example contains the following snipped for sending a SMS: for part in parts: pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, #source_addr_npi=smpplib.consts.SMPP_NPI_IS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | micartey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git |
| octolytics-dimension-user_id | 45378833 |
| octolytics-dimension-user_login | python-smpplib |
| octolytics-dimension-repository_id | 9441405 |
| octolytics-dimension-repository_nwo | python-smpplib/python-smpplib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9441405 |
| octolytics-dimension-repository_network_root_nwo | python-smpplib/python-smpplib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width