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?
Hello,
Are there any other errors in the surrounding logging context, below or above what you pasted?
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry. Original Message From: amar Smart Telecom Sent: Thursday, October 15, 2015 07:05 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio configuration file rtpproxy_manage not found when starting
Hi,
Below is the error before and after:
root@smart:~# root@smart:~# root@smart:~# root@smart:~# systemctl status kamailio.service -l â kamailio.service - LSB: Start the Kamailio SIP proxy server Loaded: loaded (/etc/init.d/kamailio) Active: failed (Result: exit-code) since Thu 2015-10-15 16:13:42 NPT; 46min ago Docs: man:systemd-sysv-generator(8) Process: 18217 ExecStop=/etc/init.d/kamailio stop (code=exited, status=0/SUCCESS) Process: 18472 ExecStart=/etc/init.d/kamailio start (code=exited, status=1/FAILURE)
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) Oct 15 16:13:42 smart kamailio[18472]: 0(18480) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 573, column 22: unknown command, missing loadmodule? Oct 15 16:13:42 smart kamailio[18472]: ERROR: bad config file (1 errors) Oct 15 16:13:42 smart kamailio[18472]: * Oct 15 16:13:42 smart systemd[1]: kamailio.service: control process exited, code=exited status=1 Oct 15 16:13:42 smart systemd[1]: Failed to start LSB: Start the Kamailio SIP proxy server. Oct 15 16:13:42 smart systemd[1]: Unit kamailio.service entered failed state. Oct 15 16:13:42 smart systemd[1]: kamailio.service failed. root@smart:~# root@smart:~#
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, October 15, 2015 4:52 PM To: amar Smart Telecom Subject: Re: [SR-Users] Kamailio configuration file rtpproxy_manage not found when starting
Hello,
Are there any other errors in the surrounding logging context, below or above what you pasted?
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry. Original Message From: amar Smart Telecom Sent: Thursday, October 15, 2015 07:05 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio configuration file rtpproxy_manage not found when starting
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
have you loaded the rtpproxy module?
Cheers, Daniel
On 15/10/15 13:17, amar Smart Telecom wrote:
Hi,
Below is the error before and after:
root@smart:~# root@smart:~# root@smart:~# root@smart:~# systemctl status kamailio.service -l â kamailio.service - LSB: Start the Kamailio SIP proxy server Loaded: loaded (/etc/init.d/kamailio) Active: failed (Result: exit-code) since Thu 2015-10-15 16:13:42 NPT; 46min ago Docs: man:systemd-sysv-generator(8) Process: 18217 ExecStop=/etc/init.d/kamailio stop (code=exited, status=0/SUCCESS) Process: 18472 ExecStart=/etc/init.d/kamailio start (code=exited, status=1/FAILURE)
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) Oct 15 16:13:42 smart kamailio[18472]: 0(18480) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 573, column 22: unknown command, missing loadmodule? Oct 15 16:13:42 smart kamailio[18472]: ERROR: bad config file (1 errors) Oct 15 16:13:42 smart kamailio[18472]: * Oct 15 16:13:42 smart systemd[1]: kamailio.service: control process exited, code=exited status=1 Oct 15 16:13:42 smart systemd[1]: Failed to start LSB: Start the Kamailio SIP proxy server. Oct 15 16:13:42 smart systemd[1]: Unit kamailio.service entered failed state. Oct 15 16:13:42 smart systemd[1]: kamailio.service failed. root@smart:~# root@smart:~#
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, October 15, 2015 4:52 PM To: amar Smart Telecom Subject: Re: [SR-Users] Kamailio configuration file rtpproxy_manage not found when starting
Hello,
Are there any other errors in the surrounding logging context, below or above what you pasted?
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry. Original Message From: amar Smart Telecom Sent: Thursday, October 15, 2015 07:05 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio configuration file rtpproxy_manage not found when starting
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users