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: patch-diff.githubusercontent.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:86eaa36a-eab2-27e7-e78c-2e4bda765073 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A16A:268775:6C9585:99EDFE:696F886F |
| html-safe-nonce | d09f5f9143668b72dc3c252ed9f88e8dc722a2615821a3ed24e5d9a8fcd37af4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTZBOjI2ODc3NTo2Qzk1ODU6OTlFREZFOjY5NkY4ODZGIiwidmlzaXRvcl9pZCI6IjY2NzM3NTk2MjY0MjU1MDE4MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5dbcb40a04abfa60166321a1fe0203014c1ee8ccfacd4ba0b270c62bb992205d |
| 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 | c1b02b4e3a8edff2fe0bd71b0551654be66034591c7ab65aaaaf61a6096862d3 |
| 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 | 4a1073fcc34432ac33cec03885ff2d96920686de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width