[SR-Users] KAMAILIO 4.2 - RTPPROXY config confirmation - error message from systemctl status kamailio.service -l (ERROR: <script>: NATMANAGE coee)

yboujraf at by-research.be yboujraf at by-research.be
Wed Nov 21 18:24:22 CET 2018


Dear,

I checked in the /etc/kamailio/kamailio.cfg the COEE.

This is the default code not updated by us :

# RTPProxy control
route[NATMANAGE] {
#!ifdef WITH_NAT
	if (is_request()) {
		if(has_totag()) {
			if(check_route_param("nat=yes")) {
				setbflag(FLB_NATB);
			}
		}
	}
	if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
		return;

	xlog("NATMANAGE M=$rm OU=$ou  RURI=$ru RD=$rd F=$fu T=$tu NH=$nh(d)
IP=$si ID=$ci\n");

	if(dst_ip == _ip_public_address_) {
		if(is_ipv4($nh(d)) && is_in_subnet($nh(d), PRIVATE_NET)) {
			xlog("NATMANAGE coei\n");
			rtpproxy_manage("cowei");
		} else {
			xlog("NATMANAGE coee\n");
			rtpproxy_manage("cowee");
		}
	} else {
		if(is_ipv4($nh(d)) && is_in_subnet($nh(d), PRIVATE_NET)) {
			xlog("NATMANAGE coii\n");
			rtpproxy_manage("cowii");
		} else {
			xlog("NATMANAGE coie\n");
			rtpproxy_manage("cowie");
		}
	}

	if (is_request()) {
		if (!has_totag()) {
			if(t_is_branch_route()) {
				add_rr_param(";nat=yes");
			}
		}
	}
	if (is_reply()) {
		if(isbflagset(FLB_NATB)) {
			if(is_first_hop())
				set_contact_alias();
		}
	}
#!endif
	return;
}

Is it an issue with the public ip address configured in the rtpproxy
(/etc/default/rtpproxy)?

# Defaults for rtpproxy
# The control socket.
#CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock"
# To listen on an UDP socket, uncomment this line:
 CONTROL_SOCK=udp:127.0.0.1:7722
# Additional options that are passed to the daemon.
# log in /var/log/kamailio.log
 EXTRA_OPTS="-l _ip_public_address_/192.168.40.101 -m 11000 -M 12000 -d
DBUG:LOG_LOCAL0"

Thanks in advance

Best Regards,
Youssef

-----Original Message-----
From: Daniel Tryba <d.tryba at pocos.nl> 
Sent: Wednesday, 21 November 2018 10:31
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] KAMAILIO 4.2 - RTPPROXY config confirmation - error
message from systemctl status kamailio.service -l (ERROR: <script>:
NATMANAGE coee)

On Tue, Nov 20, 2018 at 10:41:51PM +0100, yboujraf at by-research.be wrote:
> 
> WHEN I MAKE AN INVITE FROM 801 TO 803, I HAVE THIS ERROR MESSAGE : 
> 
> KAMAILIO SERVICE (ERROR: <SCRIPT>: NATMANAGE COEE) 

check you config and search for COEE. it this a xlog?

if so see the way you can call xlog and what facility is used by
default:
https://www.kamailio.org/docs/modules/5.1.x/modules/xlog.html#xlog.f.xlog




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the sr-users mailing list