<div dir="ltr">Bela<div><br></div><div>Much appreciated!</div><div><br></div><div>That fixed the "User-Agent" problem.</div><div><br></div><div>Cheers,</div><div>Nitesh</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 19, 2022 at 8:03 PM Bela H <<a href="mailto:hobe69@hotmail.com">hobe69@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="msg-809723978768535575">
<div lang="EN-NZ" style="word-wrap:break-word">
<div class="m_-2182506177585424016WordSection1">
<p class="MsoNormal">I hope this helps:</p>
<p class="MsoNormal"><a href="https://opensips.org/docs/modules/3.2.x/sipmsgops.html#func_remove_hf" target="_blank">https://opensips.org/docs/modules/3.2.x/sipmsgops.html#func_remove_hf</a></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From: </b><a href="mailto:aviator.nitesh.d@gmail.com" target="_blank">Nitesh Divecha</a><br>
<b>Sent: </b>Thursday, 20 October 2022 12:29<br>
<b>To: </b><a href="mailto:users@lists.opensips.org" target="_blank">OpenSIPS users mailling list</a><br>
<b>Subject: </b>Re: [OpenSIPS-Users] - INVITE (SDP) includes Originators IP info</p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Bela,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Much appreciated!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Changing topolgy_hiding("C"); fixed the Call-ID issue.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Call-ID shows clean <span style="font-size:9pt;font-family:"ProFont for Powerline",serif;color:rgb(0,166,0);background-color:black;background-position:initial initial;background-repeat:initial initial">Call-ID:</span><span style="font-size:9pt;font-family:"ProFont for Powerline",serif;color:rgb(191,191,191);background-color:black;background-position:initial initial;background-repeat:initial initial">
</span><b><span style="font-size:9pt;font-family:"ProFont for Powerline",serif;color:rgb(179,0,179);background-color:black;background-position:initial initial;background-repeat:initial initial">DLGCH_W0xtTFgVXWleUV1fVgFvEiVSRVdabgccAltXbUFf</span></b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Now gotta figure out how to stop sending Originator User-Agent to outbound provider and how to configure rtpproxy behind NAT.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Nitesh<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, Oct 19, 2022 at 5:35 PM Bela H <<a href="mailto:hobe69@hotmail.com" target="_blank">hobe69@hotmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">For the first problem check this:</p>
<p class="MsoNormal"><em><span style="font-family:Calibri,sans-serif">C</span></em> - Encode the callid header</p>
<p class="MsoNormal"><em><span style="font-family:Calibri,sans-serif">Note:</span></em> Changing the callid of the call using the "C" flag is only available when doing topology_hiding with
<em><span style="font-family:Calibri,sans-serif">dialog support</span></em>. Using this flag without dialog support will not change the callid at all!.</p>
<p class="MsoNormal"> </p>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>From:
</b><a href="mailto:aviator.nitesh.d@gmail.com" target="_blank">Nitesh Divecha</a><br>
<b>Sent: </b>Thursday, 20 October 2022 10:09<br>
<b>To: </b><a href="mailto:bogdan@opensips.org" target="_blank">Bogdan-Andrei Iancu</a><br>
<b>Cc: </b><a href="mailto:users@lists.opensips.org" target="_blank">OpenSIPS users mailling list</a><br>
<b>Subject: </b>Re: [OpenSIPS-Users] - INVITE (SDP) includes Originators IP info</p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hello All, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">So I had some success using topology_hiding and rtpproxy but found few problems. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">After implementing topology_hiding(), SIP INVITE was much better but still showing following: </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black">INVITE
<a href="http://sip:aaabbbcccc@outboundprovider.com:5060" target="_blank">sip:aaabbbcccc@outboundprovider.com:5060</a> SIP/2.0</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black">Call-ID:
<a href="mailto:4ed41738da10faa5@172.16.16.250" target="_blank">4ed41738da10faa5@172.16.16.250</a>
</span><b><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:red"><<<-- showing originators Device LAN IP —>>></span></b></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black">Content-Length: 329</span><span style="font-size:9pt;font-family:Helvetica,sans-serif"><br>
<span style="color:black">CSeq: 8002 INVITE</span><br>
<span style="color:black">From: <<a href="mailto:sip%3Azzzzzzzzzz@outboundprovider.com" target="_blank">sip:zzzzzzzzzz@outboundprovider.com</a>>;tag=SP39b79130abfb7487f</span><br>
<span style="color:black">Max-Forwards: 69</span><br>
<span style="color:black">To: <sip: aaabbbcccc@3.xxx.xxx.49></span><br>
<span style="color:black">Via: SIP/2.0/UDP 3.xxx.xxx.49:5060;branch=z9hG4bK1dcb.5bb78035.0</span><br>
<span style="color:black">User-Agent: OBIHAI/OBi302-3.2.2.6259 </span><b><span style="color:red"><<<-- showing originators User-Agent —>>></span></b><br>
<span style="color:black">Contact: <sip:3.xxx.xxx.49;did=6a7.5e849703></span><br>
<span style="color:black">Expires: 60</span><br>
<span style="color:black">Supported: replaces</span><br>
<span style="color:black">Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,PRACK,REFER,UPDATE</span><br>
<span style="color:black">Content-Type: application/sdp</span><br>
<br>
===</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif">1) How can I remove IP from Call-ID and rewrite Originators User-Agent to local OpenSIPS User-Agent?</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif">===</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif">Now issue with rtpproxy - I'm running this OpenSIPS on AWS cloud... AWS cloud does natting by default, so my Public
IP is <span style="color:black">3.xxx.xxx.49 and actual VM IP is <b>172.31.29.47. </b></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif">After implement rtpproxy (<a href="https://www.rtpproxy.org/" target="_blank">https://www.rtpproxy.org/</a>), it
is running on local IP: </span> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">└─183589 /usr/local/bin/rtpproxy -s udp:172.31.29.47 22222 -u rtpproxy rtpproxy -p /var/run/rtpproxy/rtpproxy.pid -l 172.31.29.47 -m 1000 -M 2000 -d INFO LOG_LOCAL5</p>
</div>
<div>
<p class="MsoNormal">As it shows from SIP INVITE and due to that no audio or RTP because IP is not reachable... </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black">v=0</span><span style="font-size:9pt;font-family:Helvetica,sans-serif"><br>
<span style="color:black">o=- 16210664 1 IN IP4 <b>172.31.29.47 <<<-- OpenSIPS NAT IP —>>></b></span><br>
<span style="color:black">s=-</span><br>
<span style="color:black">c=IN IP4 <b>172.31.29.47 <<<-- OpenSIPS NAT IP —>>></b></span><br>
<span style="color:black">t=0 0</span><br>
<span style="color:black">m=audio 1958 RTP/AVP 0 8 18 104 101</span><br>
<span style="color:black">a=rtpmap:0 PCMU/8000</span><br>
<span style="color:black">a=rtpmap:8 PCMA/8000</span><br>
<span style="color:black">a=rtpmap:18 G729/8000</span><br>
<span style="color:black">a=rtpmap:104 G726-32/8000</span><br>
<span style="color:black">a=rtpmap:101 telephone-event/8000</span><br>
<span style="color:black">a=fmtp:101 0-15</span><br>
<span style="color:black">a=sendrecv</span><br>
<span style="color:black">a=ptime:20</span><br>
<span style="color:black">a=xg726bitorder:big-endian</span><br>
<span style="color:black">a=nortpproxy:yes</span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">===</p>
</div>
<div>
<p class="MsoNormal">2. How can I configure rtpproxy with Public IP? Or do I start rtpproxy with <span style="font-size:9pt;font-family:Helvetica,sans-serif">Public IP <span style="color:black">3.xxx.xxx.49
and reconfigure OpenSIPS with Public IP?</span></span></p>
</div>
<p class="MsoNormal">modparam("rtpproxy", "rtpproxy_sock", "udp:<a href="http://172.31.29.47:22222" target="_blank">172.31.29.47:22222</a>") </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanking in advance... </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Cheers,</p>
</div>
<div>
<p class="MsoNormal">Nitesh</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Wed, Oct 19, 2022 at 10:17 AM Nitesh Divecha <<a href="mailto:aviator.nitesh.d@gmail.com" target="_blank">aviator.nitesh.d@gmail.com</a>> wrote:</p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<p class="MsoNormal">Hello, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thank y'all for the input... I will try to read the documentation and work on implementing these modules. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">By any chance do either of you have any working examples which I can refer to? I'm a work in progress and every time I change something I break OpenSIPS and it takes me hours to
troubleshoot! :-) </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanking in advance... </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Cheers,</p>
</div>
<div>
<p class="MsoNormal">Nitesh</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Wed, Oct 19, 2022 at 2:20 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:</p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-family:"Courier New"">Hi there,<br>
<br>
Actually you do not need the B2B, you can achieve the same kind of privacy (at SIP level) with dialog module and topology_hiding module together.<br>
<br>
Regards,</span></p>
<pre>Bogdan-Andrei Iancu</pre>
<pre> </pre>
<pre>OpenSIPS Founder and Developer</pre>
<pre> <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a></pre>
<pre>OpenSIPS Bootcamp 5-16 Dec 2022, online</pre>
<pre> <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
<div>
<p class="MsoNormal">On 10/19/22 1:23 AM, Abdul Basit wrote:</p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">Nitesh,
</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">You need a
<a href="https://www.tutorialspoint.com/session_initiation_protocol/session_initiation_protocol_b2bua.htm" target="_blank">
B2BUA function</a> with the help of a topo-hiding module with opensips as Bela shared in his email.</p>
</div>
<div>
<p class="MsoNormal">Also, install the RTP proxy on the same opensips box (not necessary if you need separate signaling and media boxes).</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Far end party will not be able to see the A-party information. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><a href="https://www.opensips.org/Documentation/Tutorials-B2BUA-3-2" target="_blank">https://www.opensips.org/Documentation/Tutorials-B2BUA-3-2<br>
</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I hope this will help. </p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
</p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(39,78,19)">--<br>
regards,</span></p>
</div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(39,78,19)"><br>
abdul basit</span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Wed, 19 Oct 2022 at 03:14, Bela H <<a href="mailto:hobe69@hotmail.com" target="_blank">hobe69@hotmail.com</a>> wrote:</p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal">Hi Nitesh,</p>
<p class="MsoNormal"> </p>
<ol start="1" type="1">
<li class="MsoNormal">
Check the topology hiding function: <a href="https://opensips.org/docs/modules/3.2.x/topology_hiding.html" target="_blank">
https://opensips.org/docs/modules/3.2.x/topology_hiding.html</a><u></u><u></u></li><li class="MsoNormal">
Use e.g. rtpproxy: <u></u><u></u></li></ol>
<p><a href="https://opensips.org/docs/modules/3.2.x/rtpproxy.html#func_rtpproxy_offer" target="_blank">https://opensips.org/docs/modules/3.2.x/rtpproxy.html#func_rtpproxy_offer</a></p>
<p><a href="http://opensips.com.br/wiki/index.php?title=Oopensips_Nat_script_with_RTPPROXY_-_English" target="_blank">http://opensips.com.br/wiki/index.php?title=Oopensips_Nat_script_with_RTPPROXY_-_English</a></p>
<p><a href="https://github.com/sippy/rtpproxy" target="_blank">https://github.com/sippy/rtpproxy</a></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I hope these help!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cheers,</p>
<p class="MsoNormal">Bela</p>
<p class="MsoNormal"> </p>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>From:
</b><a href="mailto:aviator.nitesh.d@gmail.com" target="_blank">Nitesh Divecha</a><br>
<b>Sent: </b>Wednesday, 19 October 2022 04:26<br>
<b>To: </b><a href="mailto:users@lists.opensips.org" target="_blank">OpenSIPS users mailling list</a><br>
<b>Subject: </b>[OpenSIPS-Users] - INVITE (SDP) includes Originators IP info</p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hello All, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">This is my first OpenSIPS project so I'm a newbie! </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">After going back and forth with "uac_replace_from()", I was successfully able to make a call from my ATA -> OpenSIPS -> Outbound Provider -> CellPhone. All worked fine with two-way
audio except few issues: </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">1) Outbound Provider was able to see my ATA (Originator's IP/User-Agent/etc) in SIP INVITE (SDP) which kinda raised some eyebrows with Outbound provider. How can I block or strip
all the Originator's contact info in SIP INVITE (SDP) and only send OpenSIPS info? Meaning I want to protect my Originators and don't want to show anything to the Outbound Provider. Outbound providers should only communicate to the OpenSIPS server. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">2) When the call was up I failed to capture any media/RTP on the OpenSIPS server. I want to involve OpenSIPS in media/RTP between ATA and outbound providers. How can I force media/RTP
to pass-thru OpenSIPS IP so I'm not exposing Originator's IP.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Any insights will be highly appreciated. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Cheers, </p>
</div>
</div>
<p class="MsoNormal">Nitesh</p>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
<pre>_______________________________________________</pre>
<pre>Users mailing list</pre>
<pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:9.6pt">
</p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:4.8pt">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div>