hello,
I wrote one function which returns a int value in userloc.c module.
int no_call()
{
    if(count==0)
    {
        count=1;
        return 0;
    }
    else
    {
        count=0;
        return 1;
    }
}

I called that function in opensips,cfg.
if (is_method("INVITET"))
    {

    if(no_call())
    {
        forward();
        exit();
    }
    else
    {
        forward();
        exit;
    }
    }

opensips is not starting.
when i comment function call opensips work.
Please help me in this.
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to