[Serusers] mysql dies -- accounting stopped -- call continues
Alexandr Dubovikov
shurik at start4.info
Thu May 24 11:17:41 CEST 2007
On Thu, May 24, 2007 at 05:09:43PM +0800, Nhadie wrote:
> Hi can you help me on how i can configure it to send 403 Forbidden if it
> cannot connect to mysql.
> That's good enough for now until i figure out why ser loses connection
> to mysql.
you can use mysql_ping function from C Mysql API.
if(!your_module_mysql_ping())
{
sl_reply("403 Forbidden");
break;
}
smth. like this.
>
> thanks in advanced
>
> nhadie
>
Wbr,
--
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
AD1-UANIC * ICQ: 122351182 * http://www.start4.info
More information about the sr-users
mailing list