Author |
Post |
|
#1 Thu Apr 27, 2017 09:17, 90 months ago.
|
Member
Registered: May 2012
Location: Krasnodar, Russian Federation
|
This is result with ussd_convert = 1 Sometimes instead decoded tex I can see numeric tail.....
|
|
#2 Thu Apr 27, 2017 16:32, 90 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Both numeric responses from the modem are incomplete. Smsd does not decode responses because the last " is missing.
Longer response is: СпаÑибо за обращение! Мы направим ответ на Ваш Length: 46 ('Thank you for contacting us! We will send a response to your')
Shorter response is the same but only 21.5 characters.
You could change loglevel to 7 and send this USSD command again. As soon as other response than balance is received, show the log so we can see if a response is truncated by the modem or is it sent in two pieces, with remarkable delay between pieces.
|
|
#3 Thu Apr 27, 2017 17:24, 90 months ago.
|
Member
Registered: May 2012
Location: Krasnodar, Russian Federation
Topic owner
|
|
|
#4 Thu Apr 27, 2017 20:03, 90 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Thanks for the log.
In this case a modem gives the answer in two parts, and smsd accepts the first part because it starts as expected. Remaining part is seen as unexpected input, because smsd already had the answer. I have to change the code somehow in this case. 3.1.21 anyways is going to be released very soon.
What is the version of smsd you are running?
|
|
#5 Thu Apr 27, 2017 20:30, 90 months ago.
|
Member
Registered: May 2012
Location: Krasnodar, Russian Federation
Topic owner
|
My version is 3.1.20 las one....
When 3.1.21 will be released?
Thank you for quick reply)
|
|
#6 Thu Apr 27, 2017 22:18, 90 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
3.1.21 will be released within the next few days. While waiting, could you please test the following change: Edit smsd.c. Search +CUSD:) which is on the line 5903: put_command(cmd, answer, sizeof(answer), "cusd", "(\\+CUSD:)|(ERROR)");Change the line to: put_command(cmd, answer, sizeof(answer), "cusd", "(\\+CUSD:.*\",)|(ERROR)");Recompile and test. Responses should not be truncated anymore. If the answer is "СпаÑибо за обращение! ...", I do not know what is happening. But that answer too should be shown properly after fixing the code. Thanks for reporting this bug. « Last edit by keke on Fri Apr 28, 2017 14:35, 90 months ago. »
|
|
#7 Fri Apr 28, 2017 08:41, 90 months ago.
|
Member
Registered: May 2012
Location: Krasnodar, Russian Federation
Topic owner
|
It still working buggy, but I can`t understand the difference.... Also it seems to that replies to uusd come back later.....but not sure..... So let me send to you the full log file and log DB table whith records Please send to my email letter, will include files in reply.....
It`s to big to post here.....
|
|
#8 Fri Apr 28, 2017 14:40, 90 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Sorry, there was a typo in my instruction. Asterisk was missing. Characters to add are: .*\",If still working buggy, my email is: Hidden private text.
|
|
#9 Fri Apr 28, 2017 17:42, 90 months ago.
|
Member
Registered: May 2012
Location: Krasnodar, Russian Federation
Topic owner
|
It seems to me bug fixed
If any news, will inform!
Thank you!
|