Hi is it possible in asterisk to connect to oracle by using php ? …can you please show me simple code that php can connect to oracle database… also is there some other dependencies to install in asterisk in other php can connect to oracle ?
You can connect to an Oracle DB using the PHP’s function oci_connect() there re many examples on the PHP official website. Related to the integration between Asterisk and PHP you can use the class PHPAGI, no special package required to use this class.
Ok thanks, Never mind I thought I need to do this in asterisk configuration…because I am using external database.which is already exist and I need to connect it.
You can put the the files in any location just make sure you specify the correct path on the diaplan, but by default /var/lib/asterisk/agi-bin, Asterisk looks here for the AGI scripts by default.