<div dir="auto"><div><div dir="auto">Hi Mihai,</div><div dir="auto"><br></div>You need to provide both public and private interface in rtpengine params. Further, you will have to provide the direction while invoking rtpengine_manage/offer/answer.<div dir="auto">Check the rtpengine module documentation for details.</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 19, 2021, 3:13 AM Mihai Cezar <<a href="mailto:cezar@mokalife.ro">cezar@mokalife.ro</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I use lxc containers with asterisk wich their are connecting to<br>
kamailio, so far so good they work when i put the containers with<br>
public ips, but when i switched to private ip I have one-way audio.<br>
<br>
I tried to with rtpengine but no luck:<br>
<br>
 rtpengine --table=42 --listen-ng=<a href="http://127.0.0.1:2223" rel="noreferrer noreferrer" target="_blank">127.0.0.1:2223</a><br>
--interface=56.12.19.100 --tos=184 --pidfile=/run/rtpengine.pid<br>
--no-fallback --log-level=7 --log-facility=local3<br>
<br>
the setup looks like this:<br>
VM-KAMAILIO-(public ip 56.12.19.100 with static routes for the private<br>
IP) --> LxC(n) (with private class 192.168.0.n)<br>
<br>
The problem i think is when LxC asterisk is sending back the 200 OK<br>
from Invite it puts his private ip in the sdp filed:<br>
<br>
v=0<br>
o=- 2171376102 3 IN IP4 192.168.0.2<br>
s=Asterisk<br>
c=IN IP4 192.168.0.2<br>
t=0 0<br>
m=audio 11336 RTP/AVP 8 101<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=ptime:20<br>
a=maxptime:150<br>
a=sendrecv<br>
<br>
<br>
i've loaded the modules, but after this i am stuck....<br>
loadmodule "nathelper.so"<br>
loadmodule "rtpengine.so"<br>
modparam("nathelper", "received_avp", "$avp(RECEIVED)")<br>
modparam("nathelper", "nortpproxy_str", "a=sdpmangled:yes\r\n")<br>
modparam("nathelper", "natping_interval", 30)<br>
modparam("nathelper", "ping_nated_only", 1)<br>
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)<br>
modparam("nathelper", "sipping_from", "sip:pinger@proxy")<br>
<br>
# params needed for NAT traversal in other modules<br>
modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")<br>
modparam("usrloc", "nat_bflag", FLB_NATB)<br>
<br>
modparam("rtpengine", "rtpengine_sock", "udp:localhost:2223")<br>
modparam("rtpengine", "rtpengine_retr", 2)<br>
modparam("rtpengine", "hash_table_size", 256)<br>
modparam("rtpengine", "hash_table_tout", 600)<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>