<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:arial;padding:1px 0px"><span style="font-size:10pt;color:rgb(34,34,34)">Dear Kamailians,</span><br></div></div></div></div></div></div></div></div></div><div class="gmail_quote"><div dir="ltr"><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial"><div style="font-size:10pt;padding:1px 0px">Sorry for double posting, after joining the mailing list.</div><div style="font-size:10pt;padding:1px 0px"><br>I have Kamailio+rtpengine as a dispatcher in front of FreeSWITCH.<br><br>Kamailio and FreeSWITCH are on the same private network (in an AWS VPC).<br>Kamailio receives calls on the Public Internet IP address and port, and dispatches to FreeSWITCH on the private network.<br>All calls are coming from a SIP Trunk provider, from the Internet so no NAT on this side.<br>My Hello World scenario is: FreeSWITCH answers the calls, plays a media file and disconnects.<br><br>Problems:<br>1) In the INVITE relayed from Kamailio to FreeSWITCH, I can see a Record-Route with the public IP of Kamailio.<br>Hence, the BYE sent by FreeSWITCH is sent to this public IP, rather than going back to the Kamailio path, and the call never gets completed from the caller's point of view.<br>I tried adding record_route() in request_route{} but nothing changes.<br><br>2) The SDP part of all the messages coming back and forth from Kamailio and FreeSWITCH all contain the correct private IPs, but still the media file can't be heard on the caller's side. Is RTPengine correctly bridging the RTPs?<br><br>Kamailio configuration is here: <a href="https://gist.github.com/eravelo/b3f026723e27d42354804ef942b34a04" target="_blank">https://gist.github.com/eravelo/b3f026723e27d42354804ef942b34a04</a><br>Rtpengine configuration file has:<br>  [rtpengine]<br>  table = 0<br>  interface = internal/<a href="http://10.20.1.158" target="_blank">10.20.1.158</a>;external/<a href="http://10.20.1.158" target="_blank">10.20.1.158</a>!KAMAILIO_PUBLIC_IP<br>  listen-ng = <a href="http://127.0.0.1:2223" target="_blank">127.0.0.1:2223</a><br>  timeout = 60<br>  silent-timeout = 3600<br>  tos = 184<br>  port-min = 16384<br>  port-max = 32768<br><br>Your help is appreciated.<br>Thank you.<br></div><div style="font-size:10pt;padding:1px 0px"><br></div><div style="font-size:10pt;padding:1px 0px">Eric R.</div></div></div></div></div></div></div></div>
</div></div>