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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:621ab39d-dd5f-20ea-2dae-efac1ec893de |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E306:6E82B:1C685F8:2799B73:696FE61C |
| html-safe-nonce | 9f8b31ca672847b00d8d318bb7d699621f470f70606dc161f38331dfe8c82a7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzA2OjZFODJCOjFDNjg1Rjg6Mjc5OUI3Mzo2OTZGRTYxQyIsInZpc2l0b3JfaWQiOiIzMjk3NTQ0MTI2MzM2MDY3MTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9137f909138a41213c85efa3501b47a99e974f1485043540ad83023aed7bc6fe |
| hovercard-subject-tag | pull_request:302926372 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | bb7c872aa74896d911608183f4997f8b9c121a1624064705ec4570cd91bd7839 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 257e1b418957178bd3ac9f7520608a40ebbb0f1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width