ossobv / asterisklint

Asterisk PBX configuration syntax checker
GNU General Public License v3.0
63 stars 12 forks source link

Add writesql+= syntax support for func_odbc.conf #44

Open utrumo opened 4 years ago

utrumo commented 4 years ago

When i check my extensions conf, i have got an error: func_odbc.conf:6 E_CONF_KEY_INVALID: expected valid var/object or new context, got 'writesql+' My func_odbc.conf:

[ADD]
prefix=REPORTS
synopsis=Get report values from VAL1 and add it to the reports table
dsn=int-dsn-asterisk
writesql=INSERT INTO pbx.call_reports (values_list)
writesql+=VALUES ('${SQL_ESC(${VAL1})}')