[asterisk-users] mySQL connection testing

Andrew Thomas andy at datavox.co.uk
Fri Mar 4 03:03:41 CST 2011


Thanks Tilghman - this is exactly what I wanted to hear.  As for the
'inclusion' bit - true, but it's still infused in to the addons package
at the Digium end (isn't it?).

Anyway, I'll go create a mysql.conf file now :)

Cheers

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: 04 March 2011 08:54
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] mySQL connection testing


On Thursday 03 March 2011 08:42:42 Andrew Thomas wrote:
> Does anybody know of a way to test whether a mySQL connection invoked 
> from the dialplan is current or not?

There is no way to test it.  If you want this, you should track the
information yourself or don't disconnect anywhere but in the "h"
extension.

BTW, the disconnect is not strictly needed in all versions of the addons
since 1.4.9.  Due to the possibility of a memory leak, the connections
are tracked and deleted when the channel is destroyed.

See this issue (and the patch) for more information:
https://issues.asterisk.org/view.php?id=14757

-- 
Tilghman

-- _____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


 If you have received this communication in error we would appreciate
you advising us either by telephone or return of e-mail. The contents
of this message, and any attachments, are the property of DataVox,
and are intended for the confidential use of the named recipient only.
If you are not the intended recipient, employee or agent responsible
for delivery of this message to the intended recipient, take note that
any dissemination, distribution or copying of this communication and
its attachments is strictly prohibited, and may be subject to civil or
criminal action for which you may be liable.
Every effort has been made to ensure that this e-mail or any attachments
are free from viruses. While the company has taken every reasonable
precaution to minimise this risk, neither company, nor the sender can
accept liability for any damage which you sustain as a result of viruses.
It is recommended that you should carry out your own virus checks
before opening any attachments. 

Registered in England. No. 27459085.





More information about the asterisk-users mailing list