[Serusers] mysql dies -- accounting stopped -- call continues

Andrey Kuprianov andrey.kouprianov at gmail.com
Thu May 24 12:15:49 CEST 2007


In my case, SER send 403 automatically, when MySQL connection is lost.
I didnt do any special configuration..

On 5/24/07, Alexandr Dubovikov <shurik at start4.info> wrote:
> 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