<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 days I try to construct a scheme LB RTPProxy:<br>incoming calls -> GW [10.2.42.70] -> [10.2.42.74] OpenSIPs + RTPProxy [192.168.1.2] -> [192.168.1.3 (/ 4/5/6)] 4x Asterisks (in a test using only the 192.168.1.3)<br>Calls come in Asterisk, but RTP session is established directly between Asterisk andGW. When I add the script to use RTPProxy, it appears only in the INVITE message and RTP session is established between 192.168.1.2 and 192.168.1.3, but not with thecallers. In the "ACK" and "200 OK" everything as it was before.<br>Example of 200<br>"<br><--- SIP read from UDP: 10.2.42.74:5060 ---><br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.2.42.70:5060; received = 10.2.42.70; branch = z9hG4bK342cdd3c; rport = 5060<br>Record-Route: <sip:192.168.1.2;r2=on;lr;ftag=as3d53f405;did=0e8.e8c24272><br>Record-Route: <sip:10.2.42.74;r2=on;lr;ftag=as3d53f405;did=0e8.e8c24272><br>From: "New User" <sip:12345@10.2.42.70>; tag = as3d53f405<br>To: <sip:7441@10.2.42.74:5060>; tag = as3b390137<br>Call-ID: 6e15f78d6bcdbb293620488a251174f8@10.2.42.70: 5060<br>CSeq: 102 INVITE<br>Server: Asterisk PBX<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>Contact: <sip:7441@192.168.1.3:5060><br>Content-Type: application / sdp<br>Content-Length: 255<br><br>v = 0,<br>o = root 1604383785 1604383785 IN IP4 192.168.1.3<br>s = Asterisk PBX 10.3.0<br>c = IN IP4 192.168.1.3<br>t = 0 0<br>m = audio 18100 RTP / AVP 8 0 3111<br>a = rtpmap: 8 PCMA/8000<br>a = rtpmap: 0 PCMU/8000<br>a = rtpmap: 3 GSM/8000<br>a = rtpmap: 111 G726-32/8000<br>a = ptime: 20<br>a = sendrecv<br>"<br><br>I would be grateful 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> </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> </o:p></span></p></div></body></html>