Title: Message received handler called without actually receiving the SMS · python-smpplib/python-smpplib · Discussion #244 · GitHub
Open Graph Title: Message received handler called without actually receiving the SMS · python-smpplib/python-smpplib · Discussion #244
X Title: Message received handler called without actually receiving the SMS · python-smpplib/python-smpplib · Discussion #244
Description: Message received handler called without actually receiving the SMS
Open Graph Description: The handler gets called while the SMS is not received. I tested it by turning flight mode on and thus disconnecting from cell services. client.set_message_received_handler(lambda pdu: handle_delive...
X Description: The handler gets called while the SMS is not received. I tested it by turning flight mode on and thus disconnecting from cell services. client.set_message_received_handler(lambda pdu: handle_delive...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/discussions/244
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Message received handler called without actually receiving the SMS","text":"The handler gets called while the SMS is not received.
\nI tested it by turning flight mode on and thus disconnecting from cell services.
\nclient.set_message_received_handler(lambda pdu: handle_deliver_sm(pdu))
\nhandle_deliver_sm gets called after some time which appears to be random.
\nI printed some fields of the DeliverSM object in hopes to see a flag or sth similar...
\nHowever, I could not find anything that seemed to be different from actually receiving the SMS
\nclient.listen(auto_send_enquire_link=False)\n...\nclient.send_message(\n source_addr_ton=smpplib.consts.SMPP_TON_ALNUM,\n source_addr_npi=smpplib.consts.SMPP_NPI_UNK,\n source_addr=config.SOURCE_NAME,\n dest_addr_ton=smpplib.consts.SMPP_TON_INTL,\n dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,\n destination_addr=phone_number,\n short_message=part,\n data_coding=encoding_flag,\n esm_class=msg_type_flag,\n registered_delivery=True,\n)
\nAm I missing sth?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Turns out we have a SMSC with version 3 and the flag isn't supported until version 5.
\nSecond mistake was that the messages are actually older confirmations that haven't been processed. The SMSC seems to send those confirmations occasionally when not received yet.
","upvoteCount":0,"url":"https://github.com/python-smpplib/python-smpplib/discussions/244#discussioncomment-8012589"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:28de9d6c-afda-97d0-f994-7aafff28f9f4 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | D66C:F5764:18C161E:22A4D92:696F536A |
| html-safe-nonce | c03a1a3fe762f476617420632f4b3431d34b8e35a93180b14c06db5ae7e77fe8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjZDOkY1NzY0OjE4QzE2MUU6MjJBNEQ5Mjo2OTZGNTM2QSIsInZpc2l0b3JfaWQiOiIzNTc2MTgwODQyNjI4NjAwNjgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 56c1dfc867d5a4df608030daf7a0102a2b86dfb7e51aac701faab8e2f80ccf6f |
| hovercard-subject-tag | discussion:5958051 |
| github-keyboard-shortcuts | repository,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/Voltron::DiscussionsFragmentsController/show/python-smpplib/python-smpplib/244/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/6f29b6798d6b0383a602e437681eeb17f422a4a8bc2a6995f2849811f1af7f0d/python-smpplib/python-smpplib/discussions/244 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f29b6798d6b0383a602e437681eeb17f422a4a8bc2a6995f2849811f1af7f0d/python-smpplib/python-smpplib/discussions/244 |
| og:image:alt | The handler gets called while the SMS is not received. I tested it by turning flight mode on and thus disconnecting from cell services. client.set_message_received_handler(lambda pdu: handle_delive... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49bb2ee76ae1b4ec758faefafda636ff20b05a9708bb290d28422cdf542ae979 |
| 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 | 036f37fe552777ac9c6ee661957f947285aab936 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width