René's URL Explorer Experiment


Title: smpplib.exceptions.UnknownCommandError: Unknown SMPP command code "0x2001" · Issue #190 · python-smpplib/python-smpplib · GitHub

Open Graph Title: smpplib.exceptions.UnknownCommandError: Unknown SMPP command code "0x2001" · Issue #190 · python-smpplib/python-smpplib

X Title: smpplib.exceptions.UnknownCommandError: Unknown SMPP command code "0x2001" · Issue #190 · python-smpplib/python-smpplib

Description: Hi. I use python 3.6 and I get this error when sending a delivery report from SMSC. Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/client.py", line 401, in listen File "/us...

Open Graph Description: Hi. I use python 3.6 and I get this error when sending a delivery report from SMSC. Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/c...

X Description: Hi. I use python 3.6 and I get this error when sending a delivery report from SMSC. Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpp...

Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/190

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"smpplib.exceptions.UnknownCommandError: Unknown SMPP command code \"0x2001\"","articleBody":"Hi. I use python 3.6 and I get this error when sending a delivery report from SMSC.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/client.py\", line 401, in listen\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/client.py\", line 355, in read_once\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/client.py\", line 268, in read_pdu\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/smpp.py\", line 41, in parse_pdu\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/pdu.py\", line 127, in parse\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/command.py\", line 315, in parse_params\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/command.py\", line 333, in parse_optional_params\r\n  File \"/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/command.py\", line 71, in get_optional_name\r\nsmpplib.exceptions.UnknownCommandError: Unknown SMPP command code \"0x2001\"\r\n```\r\n\r\nI also have to respond to this message with the `deliver_sm_resp` status. But how can I do it? Here is my code\r\n\r\n```python\r\ndef received_handler(pdu):\r\n    lambda pdu: sys.stdout.write('--'.format(pdu.short_message))\r\n    pdu_body = pdu.short_message\r\n    pdu_phone = pdu.source_addr\r\n    sms_1 = 'sms %s' % (pdu_body)\r\n    logger.info(sms_1)\r\n    phone_1 = 'phone %s' % (pdu_phone)\r\n    logger.info(phone_1)\r\n\r\ntry:\r\n    client = smpplib.client.Client(host,port)\r\n    client.set_message_sent_handler(\r\n        lambda pdu: sys.stdout.write('sent {} {}\\n'.format(pdu.sequence, pdu.message_id)))\r\n    client.set_message_received_handler(received_handler)\r\n    client.connect()\r\n    client.bind_transceiver(system_id=sys_id, password=pwd)\r\n\r\n    client.listen()\r\nexcept UnknownCommandError as e:\r\n    logger.error('UnknownCommandError DELIVER SMS')\r\n    deliver = smpplib.smpp.make_pdu('deliver_sm_resp', client=client)\r\n    client.send_pdu(deliver)\r\n    logger.info(\"SEND deliver_sm_resp\")\r\nexcept Exception as e:\r\n    client.listen()\r\n```","author":{"url":"https://github.com/AnnaLupanova","@type":"Person","name":"AnnaLupanova"},"datePublished":"2022-02-16T05:45:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/190/python-smpplib/issues/190"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0305506a-3f94-ccc1-5c49-e6716f7afa2f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFF2:11AD5B:B0135F:F96281:696FB7AD
html-safe-nonce001be8cac522cb84fff08370a00eb912a47da6bf674213e84dfaff3436c768fc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkYyOjExQUQ1QjpCMDEzNUY6Rjk2MjgxOjY5NkZCN0FEIiwidmlzaXRvcl9pZCI6IjU3MjEyMjYyMDMzMzQ5NDg3ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4d123c13e7922749a9ec92cc5fd7289742e5d768a8ab019ca5cec6c01d1260ef
hovercard-subject-tagissue:1139570145
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-smpplib/python-smpplib/190/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c52e265a70bc0e8b4975165aba5aab960c76104d6985cbb13e1c5db19d76d21c/python-smpplib/python-smpplib/issues/190
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c52e265a70bc0e8b4975165aba5aab960c76104d6985cbb13e1c5db19d76d21c/python-smpplib/python-smpplib/issues/190
og:image:altHi. I use python 3.6 and I get this error when sending a delivery report from SMSC. Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/smpplib-2.2.1-py3.6.egg/smpplib/c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAnnaLupanova
hostnamegithub.com
expected-hostnamegithub.com
Noned146dfd2c89f9048de9fd6d73ec4ffcf201cc2c89880fcf1c73ff73970d46e64
turbo-cache-controlno-preview
go-importgithub.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git
octolytics-dimension-user_id45378833
octolytics-dimension-user_loginpython-smpplib
octolytics-dimension-repository_id9441405
octolytics-dimension-repository_nwopython-smpplib/python-smpplib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9441405
octolytics-dimension-repository_network_root_nwopython-smpplib/python-smpplib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1866f0fdabd6ce28d22bf272fe23b56a9d475be6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-smpplib%2Fpython-smpplib%2Fissues%2F190
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-smpplib%2Fpython-smpplib%2Fissues%2F190
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-smpplib%2Fpython-smpplib
Reloadhttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190
Reloadhttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190
Reloadhttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190
python-smpplib https://patch-diff.githubusercontent.com/python-smpplib
python-smpplibhttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib
Please reload this pagehttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Fork 143 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Star 187 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-smpplib%2Fpython-smpplib
Code https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib
Issues 20 https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues
Pull requests 15 https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/pulls
Discussions https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/discussions
Actions https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190
Insights https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/pulse
Code https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib
Issues https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues
Pull requests https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/pulls
Discussions https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/discussions
Actions https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/actions
Security https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/security
Insights https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-smpplib/python-smpplib/issues/190
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-smpplib/python-smpplib/issues/190
smpplib.exceptions.UnknownCommandError: Unknown SMPP command code "0x2001"https://patch-diff.githubusercontent.com/python-smpplib/python-smpplib/issues/190#top
https://github.com/AnnaLupanova
https://github.com/AnnaLupanova
AnnaLupanovahttps://github.com/AnnaLupanova
on Feb 16, 2022https://github.com/python-smpplib/python-smpplib/issues/190#issue-1139570145
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.