{"action":"created","issue":{"url":"https://api.github.com/repos/gammu/gammu/issues/150","repository_url":"https://api.github.com/repos/gammu/gammu","labels_url":"https://api.github.com/repos/gammu/gammu/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/gammu/gammu/issues/150/comments","events_url":"https://api.github.com/repos/gammu/gammu/issues/150/events","html_url":"https://github.com/gammu/gammu/issues/150","id":118556332,"number":150,"title":"Add USSD support to SMSD [$200]","user":{"login":"nijel","id":212189,"avatar_url":"https://avatars0.githubusercontent.com/u/212189?v=4","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"labels":[{"id":182811680,"url":"https://api.github.com/repos/gammu/gammu/labels/bounty","name":"bounty","color":"129e5e","default":false},{"id":161622223,"url":"https://api.github.com/repos/gammu/gammu/labels/enhancement","name":"enhancement","color":"bfdadc","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-11-24T08:25:34Z","updated_at":"2017-09-06T13:11:54Z","closed_at":null,"author_association":"OWNER","body":"USSD is needed for example for querying prepaid card credit and would be useful addition to SMSD.\n## \n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nThere is a **[$200 open bounty](https://www.bountysource.com/issues/28560918-add-ussd-support-to-smsd?utm_campaign=plugin&utm_content=tracker%2F253405&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253405&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/gammu/gammu/issues/comments/327478521","html_url":"https://github.com/gammu/gammu/issues/150#issuecomment-327478521","issue_url":"https://api.github.com/repos/gammu/gammu/issues/150","id":327478521,"user":{"login":"gnidorah","id":12064730,"avatar_url":"https://avatars2.githubusercontent.com/u/12064730?v=4","gravatar_id":"","url":"https://api.github.com/users/gnidorah","html_url":"https://github.com/gnidorah","followers_url":"https://api.github.com/users/gnidorah/followers","following_url":"https://api.github.com/users/gnidorah/following{/other_user}","gists_url":"https://api.github.com/users/gnidorah/gists{/gist_id}","starred_url":"https://api.github.com/users/gnidorah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnidorah/subscriptions","organizations_url":"https://api.github.com/users/gnidorah/orgs","repos_url":"https://api.github.com/users/gnidorah/repos","events_url":"https://api.github.com/users/gnidorah/events{/privacy}","received_events_url":"https://api.github.com/users/gnidorah/received_events","type":"User","site_admin":false},"created_at":"2017-09-06T13:11:54Z","updated_at":"2017-09-06T13:11:54Z","author_association":"CONTRIBUTOR","body":"@nijel As what more fits the Gammu! But at least I want to hear what charset works for him.\r\n@melones Please write what works for which modem.\r\n\r\nBecause as a strange case I have here a Sony Ericsson Z710i:\r\nWith default settings\r\n`Chosen UTF-8 as unicode charset`\r\nUSSD reply received:\r\n```\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 1 \"AT+CUSD=1,\"#102#\",15\"\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 2 \"+CUSD: 0,\" Vash balans 968.98 r.\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: Dlya vas - nedelya besplatnogo SMS-obsh'eniya s drugom! Podkl.: *320#\"\"\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 3 \"OK\"\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: Checking line: OK\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: AT reply state: 1\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: RECEIVED frame type 0x00/length 0x86/134\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 41A|54T|2B+|43C|55U|53S|44D|3D=|311|2C,|22\"|23#|311|300|322|23# AT+CUSD=1,\"#102#\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 22\"|2C,|311|355|0D |0D |0A |2B+|43C|55U|53S|44D|3A:|20 |300|2C, \",15...+CUSD: 0,\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 22\"|20 |56V|61a|73s|68h|20 |62b|61a|6Cl|61a|6En|73s|20 |399|366 \" Vash balans 96\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 388|2E.|399|388|20 |72r|2E.|0A |44D|6Cl|79y|61a|20 |76v|61a|73s 8.98 r..Dlya vas\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 20 |2D-|20 |6En|65e|64d|65e|6Cl|79y|61a|20 |62b|65e|73s|70p|6Cl  - nedelya bespl\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 61a|74t|6En|6Fo|67g|6Fo|20 |53S|4DM|53S|2D-|6Fo|62b|73s|68h|27' atnogo SMS-obsh'\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 65e|6En|69i|79y|61a|20 |73s|20 |64d|72r|75u|67g|6Fo|6Dm|21!|20  eniya s drugom!\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 50P|6Fo|64d|6Bk|6Cl|2E.|3A:|20 |2A*|333|322|300|23#|22\"|0D |0A  Podkl.: *320#\"..\r\nTue 2017/09/05 17:40:59 gammu-smsd[3626]: gammu: 0D |0A |4FO|4BK|0D |0A                                          ..OK..\r\n```\r\nBut ATGEN_ReplyGetUSSD is not called, as \"+CUSD\" is not a first line. [Is it even correct frame?]\r\nSame with GSM. But once I switch to UCS2 as unicode charset, things start to work:\r\n```\r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 1 \"+CUSD: 0,\"00200056006100730068002000620061006C0061006E00730020003900350030002E0030003800200072002E000A004700750064006F006B0020\"Shape of you\"002000450064002000530068006500650072[204/43268]\r\n0006E006100200031003500200064006E0065006A00200062006500730070006C00610074006E006F002100200050006F0064006B006C003A002A0034003100380023\"\"                                                                 \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: Checking line: +CUSD: 0,\"00200056006100730068002000620061006C0061006E00730020003900350030002E0030003800200072002E000A004700750064006F006B0020\"Shape of you\"0020004500640020005300680065006500$\r\n20061006E0020006E006100200031003500200064006E0065006A00200062006500730070006C00610074006E006F002100200050006F0064006B006C003A002A0034003100380023\"                                                                                             \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: AT reply state: 4                                                                                                                                                                             \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: RECEIVED frame type 0x00/length 0x143/323                                                                                                                                                     \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 2B+|43C|55U|53S|44D|3A:|20 |300|2C,|22\"|300|300|322|300|300|300 +CUSD: 0,\"002000                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 355|366|300|300|366|311|300|300|377|333|300|300|366|388|300|300 5600610073006800                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 322|300|300|300|366|322|300|300|366|311|300|300|366|43C|300|300 2000620061006C00                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 366|311|300|300|366|45E|300|300|377|333|300|300|322|300|300|300 61006E0073002000                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 333|399|300|300|333|355|300|300|333|300|300|300|322|45E|300|300 3900350030002E00                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 333|300|300|300|333|388|300|300|322|300|300|300|377|322|300|300 3000380020007200                                       \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 322|45E|300|300|300|41A|300|300|344|377|300|300|377|355|300|300 2E000A0047007500                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 366|344|300|300|366|46F|300|300|366|42B|300|300|322|300|22\"|53S 64006F006B0020\"S               \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 68h|61a|70p|65e|20 |6Fo|66f|20 |79y|6Fo|75u|22\"|300|300|322|300 hape of you\"0020                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|344|355|300|300|366|344|300|300|322|300|300|300|355|333 0045006400200053                   \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|366|388|300|300|366|355|300|300|366|355|300|300|377|322 0068006500650072\r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|366|311|300|300|366|45E|300|300|322|300|300|300|366|45E 0061006E0020006E                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|366|311|300|300|322|300|300|300|333|311|300|300|333|355 0061002000310035                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|322|300|300|300|366|344|300|300|366|45E|300|300|366|355 00200064006E0065                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|366|41A|300|300|322|300|300|300|366|322|300|300|366|355 006A002000620065                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|377|333|300|300|377|300|300|300|366|43C|300|300|366|311 00730070006C0061                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|377|344|300|300|366|45E|300|300|366|46F|300|300|322|311 0074006E006F0021                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|322|300|300|300|355|300|300|300|366|46F|300|300|366|344 00200050006F0064                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|366|42B|300|300|366|43C|300|300|333|41A|300|300|322|41A 006B006C003A002A                                                                                                              \r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 300|300|333|344|300|300|333|311|300|300|333|388|300|300|322|333 0034003100380023\r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: 22\"|0D |0A                                                      \"..\r\nWed 2017/09/06 16:06:35 gammu-smsd[3399]: gammu: Incoming USSD received\r\n\r\n```"}}
{"actor":{"display_login":"gnidorah"}}