Title: TAG: its_session_info, struct.error: required argument is not an integer · Issue #112 · python-smpplib/python-smpplib · GitHub
Open Graph Title: TAG: its_session_info, struct.error: required argument is not an integer · Issue #112 · python-smpplib/python-smpplib
X Title: TAG: its_session_info, struct.error: required argument is not an integer · Issue #112 · python-smpplib/python-smpplib
Description: Hi, I am using python3.6 Using this chunk of code parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Привет мир!\n'*1) r_pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, #source_addr_npi=smpplib.consts...
Open Graph Description: Hi, I am using python3.6 Using this chunk of code parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Привет мир!\n'*1) r_pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_T...
X Description: Hi, I am using python3.6 Using this chunk of code parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Привет мир!\n'*1) r_pdu = client.send_message( source_addr_ton=smpplib.const...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/112
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TAG: its_session_info, struct.error: required argument is not an integer","articleBody":"Hi, I am using python3.6\r\nUsing this chunk of code\r\n```\r\nparts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Привет мир!\\n'*1)\r\nr_pdu = client.send_message(\r\n source_addr_ton=smpplib.consts.SMPP_TON_INTL,\r\n #source_addr_npi=smpplib.consts.SMPP_NPI_ISDN,\r\n # Make sure it is a byte string, not unicode:\r\n source_addr='******',\r\n service_type =\"USSD\",\r\n ussd_service_op = 0x11,\r\n\r\n its_session_info =b'\\x00\\x01',\r\n dest_addr_ton=smpplib.consts.SMPP_TON_INTL,\r\n #dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,\r\n # Make sure thease two params are byte strings, not unicode:\r\n #Test Code\r\n destination_addr='******',\r\n short_message=parts[0],\r\n\r\n data_coding=encoding_flag,\r\n esm_class=msg_type_flag,\r\n registered_delivery=True,\r\n )\r\n```\r\n\r\nGetting this:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"main.py\", line 77, in \u003cmodule\u003e\r\n client.listen()\r\n File \"/home/pythonsmpp/smpplib/client.py\", line 343, in listen\r\n self.read_once(ignore_error_codes, auto_send_enquire_link)\r\n File \"/home/pythonsmpp/smpplib/client.py\", line 315, in read_once\r\n self._message_received(pdu)\r\n File \"/home/pythonsmpp/smpplib/client.py\", line 244, in _message_received\r\n status = self.message_received_handler(pdu=pdu)\r\n File \"main.py\", line 31, in deliver_sm\r\n registered_delivery=True,\r\n File \"/home/pythonsmpp/smpplib/client.py\", line 357, in send_message\r\n self.send_pdu(ssm)\r\n File \"/home/pythonsmpp/smpplib/client.py\", line 181, in send_pdu\r\n generated = p.generate()\r\n File \"/home/pythonsmpp/smpplib/pdu.py\", line 136, in generate\r\n body = self.generate_params()\r\n File \"/home/pythonsmpp/smpplib/command.py\", line 126, in generate_params\r\n value = self._generate_int_tlv(field)\r\n File \"/home/pythonsmpp/smpplib/command.py\", line 202, in _generate_int_tlv\r\n value = struct.pack(\"\u003eHH\" + fmt, field_code, field_length, data)\r\nstruct.error: required argument is not an integer\r\nWARNING:smpp.Client.139658711658224:\u003csmpplib.client.Client object at 0x7f04d3e5eef0\u003e was not closed\r\n```\r\nCould you help me?\r\n\r\nThanks in advance..","author":{"url":"https://github.com/drhidians","@type":"Person","name":"drhidians"},"datePublished":"2020-03-20T11:29:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/112/python-smpplib/issues/112"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26b94a70-782f-589c-c274-c9d322d2123a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC7E:F959F:2F4463:41ED4E:696FD29E |
| html-safe-nonce | 60d147c085d9aa8348731cb65e5b907120d2c916550edd8d870e5d52ad925029 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzdFOkY5NTlGOjJGNDQ2Mzo0MUVENEU6Njk2RkQyOUUiLCJ2aXNpdG9yX2lkIjoiNjU0MzEzODI0MjA0NjE4NjE0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa828633f837ec5df762cf43d8aee8a42882efd9d3ca9ded3414d41aa219a49b |
| hovercard-subject-tag | issue:585007003 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/python-smpplib/python-smpplib/112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ddfa9029146b37613cbf6ac4c7fb21bfe8068efa8209a6bdb554a2e69f809060/python-smpplib/python-smpplib/issues/112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ddfa9029146b37613cbf6ac4c7fb21bfe8068efa8209a6bdb554a2e69f809060/python-smpplib/python-smpplib/issues/112 |
| og:image:alt | Hi, I am using python3.6 Using this chunk of code parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Привет мир!\n'*1) r_pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drhidians |
| 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 |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width