[OpenSIPS-Devel] register a periodic timer

javad enaytai je.opensips at gmail.com
Mon Dec 6 08:17:21 CET 2010


Hello Dear ,

I want to register a periodic timer for overload control in Opensips 1.5.
I wrote these in a header file:
1)
void cal_delay(unsigned int ticks, void *param)
{
    LM_INFO(" timer is working. ");

}

2) //for initializing :
    if (register_timer(cal_delay, 0, 1)<0) {
        //LM_ERR("failed to register timer\n");
        LM_INFO("failed to register timer\n");
        goto error;
    }

but it dosn't work .

please help me.

Best regardes,
Enayati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20101206/b9cefc74/attachment.htm>


More information about the Devel mailing list