Query for insert data on extension.conf

I use asterisk sip. In extension.conf:
I must enter a numeric data on a column (named busy) of a postgresql database at a specific table at a line named “name” = “variable”. How to do? Thanks

Easiest way System() and the postgre -c option

I’d suggest using FUNC_ODBC to do this.

You can define your own functions and call them anywhere in dialplan.

There is a older tutorial here that talks about ODBC inside asterisk.