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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080806/08562916/attachment.htm
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>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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080807/3b528898/attachment.htm
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