SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Nov 25, 2017 11:32
SMSTools3 Community » Bug reports Bottom

[Fixed in 3.1.21] Ussd converting bug....

Login and Post Reply

Page:  1

Author Post
Member
Registered:
May 2012
Location: Krasnodar, Russian Federation
This is result with ussd_convert = 1

Sometimes instead decoded tex I can see numeric tail.....



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.

Member
Registered:
May 2012
Location: Krasnodar, Russian Federation
Topic owner


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?

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)

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, 7 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.....

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.



Member
Registered:
May 2012
Location: Krasnodar, Russian Federation
Topic owner
It seems to me bug fixed

If any news, will inform!

Thank you!

Login and Post Reply

Page:  1

SMSTools3 Community » Bug reports Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.