Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smsd with win, odbc, mysql does not set delivery report #252

Open
odibox opened this issue Oct 25, 2016 · 0 comments
Open

Smsd with win, odbc, mysql does not set delivery report #252

odibox opened this issue Oct 25, 2016 · 0 comments

Comments

@odibox
Copy link

odibox commented Oct 25, 2016

Hi

I have a problem to send an sms with delivery report if i use windows, odbc and mysql.
service = sql
driver = odbc
host = smsd
sql = mysql
If i use service = files everything works fine.
Version is 1.37.91

I think the problem is in file sql.c on line 1007
Config->currdeliveryreport = db->GetBool(Config, &res, 9);

The structure in the mysql database for the DeliveryReport is
DeliveryReport enum('default','yes','no') DEFAULT 'default',

I think that there's a problem with the enum Datatype and the Getbool function.

It doesn't matter if i use default, yes or no. The delivery report doesn't work. 'SendingOkNoReport'

If i change the DeliveryReport field to char and set it to '1'. The delivery report function works. 'SendingOk'

Thank you very much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants