Asterisk Agi+sqlserver+php+dialplan

hello i have searched this statment but i can’t find any can you give me some examples of agi+php+sqlserver? i tried some but i think php is not connecting sql server tooo if any help i will be gled

Although I’m pretty sure that there are a lot of examples n the net, is better if you start by PHP+SQL, once you understand that part then AGI+PHP is transparent and finally you got the Dialplan AGI example.

Really is not that hard.

1 Like

Are you using freetds?

You need to get the PHP MSSQL part working, you might use PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Microsoft SQL Server and Sybase databases through the FreeTDS library.

But the connection between PHP and MSSQL it is not supported on this forum, you need to get that working and we can help you with the Asterisk Side

i am using odbc right now but i will switch it on freetds

ty i will search some thnx for help