ossobv / asterisklint

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

func_odbc-check does not recognize [general] context #36

Open Grendel7 opened 5 years ago

Grendel7 commented 5 years ago

In func_odbc.conf it's possible to specify general options for ODBC through the [general] context.

However, Asterisk Lint does not seem to recognize this. These are the validation errors returned for a func_odbc.conf with a [general] context.

./func_odbc.conf:17 W_ODBC_BADTOKENS: odbc function 'general' should be uppercase with A-Z0-9_ only
./func_odbc.conf:22 E_CONF_KEY_INVALID: expected valid var/object or new context, got 'single_db_connection'
./func_odbc.conf:17 E_ODBC_NOSQL: a readsql and/or writesql (and insertsql) statement is required