[asterisk-users] link to MySQL connection

Joshua Colp jcolp at digium.com
Tue Dec 3 08:42:21 CST 2013


Don Kelly wrote:
> I’m making changes to an Asterisk IVR designed by someone else.
>
> The application uses both func_odbc.conf and php agi to access an
> external MySQL database.
>
> In the php routines, I would like to use the persistent connection that
> is established in the dialplan, rather than creating a new connection
> each time they run. How can I do this?

You can't, they are completely separate processes and code.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org



More information about the asterisk-users mailing list