for now, func_odbc.conf file looks like this , but asterisk still shows error
[SQL] dsn=mysql1 readsql=${ARG1}
; ODBC_ANTIGF - A blacklist. [ANTIGF] dsn=mysql1,mysql2 ; Use mysql1 as the primary handle, but fall back to mysql2
** ; if mysql1 is down. Supports up to 5 comma-separated**
** ; DSNs. “dsn” may also be specified as “readhandle” and**
** ; “writehandle”, if it is important to separate reads and**
** ; writes to different databases.** readsql=SELECT COUNT(*) FROM exgirlfriends WHERE callerid=’${SQL_ESC(${ARG1})}' syntax= synopsis=Check if a specified callerid is contained in the ex-gf database
; ODBC_PRESENCE - Retrieve and update presence [PRESENCE] dsn=mysql1 readsql=SELECT location FROM presence WHERE id=’${SQL_ESC(${ARG1})}' writesql=UPDATE presence SET location=’${SQL_ESC(${VAL1})}’ WHERE id=’${SQL_ESC(${ARG1})}’