As I understand it, this can be done via func_odbc
. But I don’t quite understand how it can be used?
I found something similar on the forum. I can’t quite make it out.
I can’t understand the syntax.
I have a query select val from table where phone = 103
. For example, the calling number 103, by which I can request a value from the database and write it to a variable in Asterisk, so that later I can use this variable in the dialplan.