<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.longtext
        {mso-style-name:long_text;}
span.hps
        {mso-style-name:hps;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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=RU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='background:whitesmoke'><span lang=EN style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Good afternoon.<br><br>For several&nbsp;days&nbsp;I try to&nbsp;construct a scheme&nbsp;LB RTPProxy:<br>incoming calls&nbsp;-&gt; GW [10.2.42.70] -&gt; [10.2.42.74] OpenSIPs + RTPProxy [192.168.1.2] -&gt; [192.168.1.3 (/ 4/5/6)] 4x Asterisks (in a test&nbsp;using&nbsp;only the&nbsp;192.168.1.3)<br>Calls&nbsp;come&nbsp;in&nbsp;Asterisk, but&nbsp;RTP&nbsp;session&nbsp;is established&nbsp;directly between&nbsp;Asterisk andGW.&nbsp;When I add&nbsp;the script&nbsp;to use&nbsp;RTPProxy,&nbsp;it&nbsp;appears only&nbsp;in the&nbsp;INVITE&nbsp;message&nbsp;and RTP&nbsp;session&nbsp;is established between&nbsp;192.168.1.2&nbsp;and&nbsp;192.168.1.3,&nbsp;but not&nbsp;with thecallers.&nbsp;In the&nbsp;&quot;ACK&quot;&nbsp;and &quot;200 OK&quot;&nbsp;everything as it&nbsp;was&nbsp;before.<br>Example of&nbsp;200<br>&quot;<br>&lt;--- SIP read from UDP: 10.2.42.74:5060 ---&gt;<br>SIP/2.0&nbsp;200 OK<br>Via: SIP/2.0/UDP 10.2.42.70:5060; received = 10.2.42.70; branch = z9hG4bK342cdd3c; rport =&nbsp;5060<br>Record-Route: &lt;sip:192.168.1.2;r2=on;lr;ftag=as3d53f405;did=0e8.e8c24272&gt;<br>Record-Route: &lt;sip:10.2.42.74;r2=on;lr;ftag=as3d53f405;did=0e8.e8c24272&gt;<br>From: &quot;New User&quot; &lt;sip:12345@10.2.42.70&gt;; tag = as3d53f405<br>To: &lt;sip:7441@10.2.42.74:5060&gt;; tag = as3b390137<br>Call-ID: 6e15f78d6bcdbb293620488a251174f8@10.2.42.70:&nbsp;5060<br>CSeq:&nbsp;102&nbsp;INVITE<br>Server: Asterisk PBX<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>Contact: &lt;sip:7441@192.168.1.3:5060&gt;<br>Content-Type: application / sdp<br>Content-Length:&nbsp;255<br><br>v = 0,<br>o = root&nbsp;1604383785&nbsp;1604383785&nbsp;IN IP4 192.168.1.3<br>s = Asterisk PBX 10.3.0<br>c = IN IP4 192.168.1.3<br>t =&nbsp;0 0<br>m = audio&nbsp;18100&nbsp;RTP / AVP&nbsp;8 0&nbsp;3111<br>a = rtpmap:&nbsp;8&nbsp;PCMA/8000<br>a = rtpmap:&nbsp;0&nbsp;PCMU/8000<br>a = rtpmap:&nbsp;3&nbsp;GSM/8000<br>a = rtpmap:&nbsp;111&nbsp;G726-32/8000<br>a = ptime:&nbsp;20<br>a = sendrecv<br>&quot;<br><br>I would be grateful&nbsp;for any help.</span><span lang=EN-US style='font-size:10.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Vladimir.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>