Dear All,

 

I was trying to make such that rtpproxy is used for all calls in kamailio,

 

Part of Kamailio.cfg looks like following:

=============================

loadmodule "rtpproxy.so"

 

# ----- rtpproxy params -----

modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")

 

route[RELAY] {

 

        # enable additional event routes for forwarded requests

        # - serial forking, RTP relaying handling, a.s.o.

        if (is_method("INVITE|BYE|SUBSCRIBE|UPDATE")) {

                if(!t_is_set("branch_route")) t_on_branch("MANAGE_BRANCH");

        }

        if (is_method("INVITE|SUBSCRIBE|UPDATE")) {

                if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");

        rtpproxy_manage("co") ; # added amar 20151015

        }

        if (is_method("INVITE")) {

                if(!t_is_set("failure_route")) t_on_failure("MANAGE_FAILURE");

        }

 

        if (!t_relay()) {

                sl_reply_error();

        }

        exit;

}

 

 

But when I run Kamailio start it gives error:

 

Error looks like following:

===================

Oct 15 16:13:42 smart kamailio[18472]: * Not starting Kamailio SIP server: invalid configuration file!

Oct 15 16:13:42 smart kamailio[18472]: *

Oct 15 16:13:42 smart kamailio[18472]: *  0(18480) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command rtpproxy_manage (params 1)

 

 

What could be the problem?