Title: Function to parse short_message from deliver_sm by Lynesth · Pull Request #90 · python-smpplib/python-smpplib · GitHub
Open Graph Title: Function to parse short_message from deliver_sm by Lynesth · Pull Request #90 · python-smpplib/python-smpplib
X Title: Function to parse short_message from deliver_sm by Lynesth · Pull Request #90 · python-smpplib/python-smpplib
Description: Not sure if needed ot if correctly implemented but I've added a function to parse the short_message property of pdus from deliver_sm commands since not all vendors fill in optional parameters like receipted_message_id. Example: # Inside the message_received_handler pdu.parse_deliver_receipt() This returns a dict like this one: { 'dlvrd': b'000', 'done_date': b'1907311208', 'err': b'001', 'id': b'6C7C7DE28BB3E961947700000000FE37', 'stat': b'UNDELIV', 'sub': b'001', 'submit_date': b'1907311208', 'text': b'This is a test.' } Since it depends on a regex and all vendor surely don't implement the receipt the same way (according to the specs: The format for this Delivery Receipt message is SMSC vendor specific but following is a typical example of Delivery Receipt report.) I've added a way to set the regex manually: smpp.pdu.set_delivey_receipt_regex(br'myawesomeregex') Note that the regex must be bytes.
Open Graph Description: Not sure if needed ot if correctly implemented but I've added a function to parse the short_message property of pdus from deliver_sm commands since not all vendors fill in optional parameters l...
X Description: Not sure if needed ot if correctly implemented but I've added a function to parse the short_message property of pdus from deliver_sm commands since not all vendors fill in optional paramete...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/pull/90
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c3325fc0-749c-94ad-a89d-6b3079bee96b |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9C7E:32935C:7A7BA:A3E58:696FCC7D |
| html-safe-nonce | c0c7c838b164eb57f5fc660c6f4f7ec2a4fb778d1e975a7594942e6aab658613 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzdFOjMyOTM1Qzo3QTdCQTpBM0U1ODo2OTZGQ0M3RCIsInZpc2l0b3JfaWQiOiI0NTMzMDA5MzgzMzM5MDUyMTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53c73aed69ac928700b6bc003caee9a5cc5acf3e956fc6fe18ca57f9c90d2c4c |
| hovercard-subject-tag | pull_request:302926372 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python-smpplib/python-smpplib/pull/90/checks |
| twitter:image | https://avatars.githubusercontent.com/u/5318258?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5318258?s=400&v=4 |
| og:image:alt | Not sure if needed ot if correctly implemented but I've added a function to parse the short_message property of pdus from deliver_sm commands since not all vendors fill in optional parameters l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a44b41159f8508d767a50a41d4355b6e6607de801262664cbe75414886e44e9 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 347f3ebfaef84b36b267c7a20bade84594f267d5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width