[asterisk-users] How to reuse mysql connection between AGI's

Faheem faheem_imt at yahoo.com
Fri Aug 6 00:54:45 CDT 2010


Hey, Is there any way to share MySQL connection between different agi's.Actually when call comes to asterisk box it executes various agi scripts sequentially. Each script checks various values by making a new MySQL connection and then execute query and then disconnects. 
So, Ideally there should be one connection, and it should be reused between each agi and when a call is over it should be disconnected. Is there any mechanism to reuse single MySQL connection between agi scripts?The agi scripts are written in Perl
Thanks,
Faheem, M.  




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100805/959a64cf/attachment.htm 


More information about the asterisk-users mailing list