[asterisk-users] mySQL connection testing
Doug Lytle
support at drdos.info
Thu Mar 3 09:03:25 CST 2011
Andrew Thomas wrote:
> The wait is there as a test. This gives the 'tester' the option of
> hanging up before the disconnect or not.
>
And the purpose for that would be to share available connections?
I've always considered it bad to leave a connection open and have always
closed them down after a query.
Either way, I test for mysql connection errors by:
exten => s,n,GotoIf($["${MYSQL_STATUS}" = "-1"]?mysql_failed,s,1)
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
More information about the asterisk-users
mailing list