[OpenSIPS-Users] about writing function

prasad kelkar durga144 at gmail.com
Mon May 7 17:41:31 CEST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120507/12f4d15d/attachment.htm>


More information about the Users mailing list