Does not parse with presence

Dims
2010-10-17
2013-05-09
  • Dims
    Dims
    2010-10-17

    I have uncommented all lines in default cfg to enable presence working. But now I am getting parse error if trying to start opensips:

    Oct 17 19:49:03 scisbo opensips: CRITICAL:core:yyerror: parse error in config file, line 503, column 13-14: unknown command <t_release>, missing loadmodule?
    Oct 17 19:49:03 scisbo opensips: CRITICAL:core:yyerror: parse error in config file, line 509, column 13-14: unknown command <t_release>, missing loadmodule?
    Oct 17 19:49:03 scisbo opensips: ERROR:core:main: bad config file (2 errors)

    Of course

    loadmodule "tm.so"

    is in place in modules section and not commented.

    What's the problem?

     
  • Anca Vamanu
    Anca Vamanu
    2010-10-18

    Hi,

    The t_release() function does not exist anymore in 1.6, so you have the two lines containing it from your config ( it's also written in the comments).

    Regards,
    Anca

     
  • Dims
    Dims
    2010-10-18

    I have already found information about function disappear. Hence I just have commented out their usage in cfg, is this correct?

    if(is_method("PUBLISH"))
            {
                    handle_publish();
                    #t_release();
            }
            else
            if( is_method("SUBSCRIBE"))
            {
                    handle_subscribe();
                    #t_release();
            }

            exit;

    Btw, why does disappearence of the function not mentionned in the documentation?