C.36. ODBC_SQL()

ODBC_SQL(SQL-query)
Executes the specified SQL query and returns the result, if any.
; Query:
exten => 123,1,Set(Name=${ODBC_SQL(SELECT name FROM list WHERE number='123')})

; Set:
exten => 123,1,Set(ODBC_SQL(UPDATE list SET name='Robert' WHERE number='123'))