<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Calligraphy";
panose-1:3 1 1 1 1 1 1 1 1 1;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi <o:p></o:p></p>
<p class="MsoNormal">Im using rtpengine_offer as below <o:p></o:p></p>
<p class="MsoNormal">rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove")
<o:p></o:p></p>
<p class="MsoNormal">is there another flag I need to set to change c=in to the WAN alias?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">rtpeengine.conf <o:p></o:p></p>
<p class="MsoNormal">interface as set as below <o:p></o:p></p>
<p class="MsoNormal">### for different advertised address:<o:p></o:p></p>
<p class="MsoNormal">interface = 10.3.1.6!20.82.X.X<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But the SDP send to client c=IN contains the private IP of the kamailio server
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">v=0<o:p></o:p></p>
<p class="MsoNormal">o=root 321199167 321199167 IN IP4 10.3.1.5<o:p></o:p></p>
<p class="MsoNormal">s=Asterisk PBX 18.12.1<o:p></o:p></p>
<p class="MsoNormal">c=IN IP4 10.3.1.6<o:p></o:p></p>
<p class="MsoNormal">t=0 0<o:p></o:p></p>
<p class="MsoNormal">m=audio 32080 RTP/AVP 0 8 103<o:p></o:p></p>
<p class="MsoNormal">a=maxptime:150<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:0 PCMU/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:8 PCMA/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:103 telephone-event/8000<o:p></o:p></p>
<p class="MsoNormal">a=fmtp:103 0-16<o:p></o:p></p>
<p class="MsoNormal">a=sendrecv<o:p></o:p></p>
<p class="MsoNormal">a=rtcp:32081<o:p></o:p></p>
<p class="MsoNormal">a=ptime:20<o:p></o:p></p>
<p class="MsoNormal">m=video 0 RTP/AVP 34<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-IE">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-IE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Lucida Calligraphy";mso-fareast-language:EN-IE">Gerry<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IE"> Gerry Kernan
<br>
<b>Sent:</b> Saturday 8 October 2022 11:21<br>
<b>To:</b> Henning Westerholt <hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Subject:</b> RE: [SR-Users] kamailio & rtpengine question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ive tried setting below in rtpengine.conf , but i get the same behaviour <o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="background:white;border-collapse:collapse">
<tbody>
<tr>
<td style="background:transparent;padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td valign="top" style="padding:0cm 7.5pt 0cm 7.5pt">
<p class="MsoNormal" style="line-height:15.0pt"><span style="font-size:9.0pt;font-family:Consolas;color:#24292F;mso-fareast-language:EN-IE"> </span><span style="font-size:9.0pt;font-family:Consolas;color:#24292F;background:white">interface=</span><span style="font-size:9.0pt;font-family:Consolas;color:#24292F;mso-fareast-language:EN-IE">10.3.1.6!XX.XX.XX.XX<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="50" nowrap="" valign="top" style="width:37.5pt;background:transparent;padding:0cm 7.5pt 0cm 7.5pt">
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-IE">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-IE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Lucida Calligraphy";mso-fareast-language:EN-IE">Gerry<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IE"> Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>>
<br>
<b>Sent:</b> Saturday 8 October 2022 08:32<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>><br>
<b>Cc:</b> Gerry Kernan <<a href="mailto:gerry@infinityit.ie">gerry@infinityit.ie</a>><br>
<b>Subject:</b> RE: [SR-Users] kamailio & rtpengine question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">you might need to set the advertised address for rtpengine as well:</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><a href="https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf">https://github.com/sipwise/rtpengine/blob/master/etc/rtpengine.conf</a></span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><span lang="DE"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB">-- </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt – </span><span lang="DE"><a href="https://skalatan.de/blog/"><span lang="EN-GB">https://skalatan.de/blog/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services – </span><span lang="DE"><a href="https://gilawa.com/"><span lang="EN-GB">https://gilawa.com</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB"> </span><span lang="DE"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="DE" style="mso-fareast-language:DE">From:</span></b><span lang="DE" style="mso-fareast-language:DE"> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Gerry Kernan<br>
<b>Sent:</b> Friday, October 7, 2022 10:49 AM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] kamailio & rtpengine question</span><span lang="DE"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE"> <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Hi <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Looking for advise if anyone could point out where im going wrong.<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">My setup is Kamailio Ver 5.6.0 running in azure , rtpengine Version: git-master-dc395d5, behind kamailio I have asterisk ver 18.12.1<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Kamailio conf I have interface set as below<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">listen=udp:10.3.1.6:5060 advertise WANIP:5060<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">and rtpengine.conf set as below<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">interface = eth0/10.3.1.5<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">but when I can make a call I don’t get any audio, rtpengine.log extract below shows that rtp is going to the private IP rather that the Public IP of the phone that initiated the call, do I need to set rtpengine_manage()
to fix this?<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Confirmed peer address as 10.3.1.5:12890<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Oct 7 09:38:58 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30278]: [core] Kernelizing media stream: 10.3.1.5:12890 -> 10.3.1.6:30278 | 10.3.1.6:30298 -> 192.168.0.123:40042<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Oct 7 09:39:00 kamailio-proxy rtpengine[8127]: INFO: [NmE0MjdhMzA4NjUzYWVjMmRjYzIxNGJjMTY4ZTc2MWE. port 30279]: [core] Confirmed peer address as 10.3.1.5:12891<span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="NL" style="mso-fareast-language:EN-IE">Kind regards</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="NL" style="mso-fareast-language:EN-IE"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="NL" style="font-size:14.0pt;font-family:"Lucida Calligraphy";mso-fareast-language:EN-IE">gerry</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" align="right" style="margin-left:35.4pt;text-align:right"><span lang="NL" style="color:#44546A;mso-fareast-language:EN-IE"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="NL" style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE">Gerry Kernan
</span></b><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE">| Technical Director</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE">Mobile: +353(0)86-170 9790</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><a href="https://www.infinityit.ie/"><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;color:black;mso-fareast-language:EN-IE;text-decoration:none"><img border="0" width="540" height="230" style="width:5.625in;height:2.3958in" id="Picture_x0020_12" src="cid:image003.jpg@01D8DCAF.F733BC20" alt="Graphical user interface, website
Description automatically generated"></span></a><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE"><img border="0" width="174" height="30" style="width:1.8125in;height:.3125in" id="Picture_x0020_4" src="cid:image004.png@01D8DCAF.F733BC20" alt="A picture containing text, clipart
Description automatically generated,Icon
Description automatically generated"></span><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <span lang="DE"><o:p></o:p></span></p>
</div>
</body></html>