[asterisk-users] shared mysql connection in dialplan

Al Baker bwentdg at pipeline.com
Fri Aug 8 10:42:53 CDT 2008


HOW ?

Rizwan Hisham wrote:
> have done it, and its working fine. but still expecting to receive 
> some new ideas.
>
> On Wed, Aug 6, 2008 at 2:12 PM, Rizwan Hisham <rizwanhasham at gmail.com 
> <mailto:rizwanhasham at gmail.com>> wrote:
>
>     hi all,
>     i just finished developing some incoming call features in a macro.
>     that macro gets executed everytime an incoming call is received
>     and a new mysql connection is made using the MYSQL cmd in
>     dialplan. i want to use a single mysql connection for every
>     incoming call.
>
>     my idea of doing it is like this, i want to get a mysql connection
>     in a global variable, just to share the connection with different
>     incoming calls. Im not sure if this can be done. I am going to try
>     doing it somehow, meanwhile i want your suggestions about how i
>     can share a mysql connection with different calls in a dialplan.
>
>     I am using asterisk1.4.2 and asterisk addon1.4.0 package for mysql
>     connectivity.
>
>     Thanx in advance
>
>     -- 
>     Best Regards
>     Rizwan Hisham
>
>
>
>
> -- 
> Best Regards
> Rizwan Hisham
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list