Skip to content
\n

handle_deliver_sm gets called after some time which appears to be random.

\n

I 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

\n
client.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)
\n

Am 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.

\n

Second 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"}}}
Discussion options

You must be logged in to vote

Turns out we have a SMSC with version 3 and the flag isn't supported until version 5.

Second 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@micartey
Comment options

@eigenein
Comment options

@micartey
Comment options

Answer selected by eigenein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #241 on December 13, 2023 20:01.