<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font style="font-size: 10pt;" face="Arial" size="2">hi all,</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">i am a new user kamailio.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">i have configure&nbsp; kamailio with RTP proxy, but i have a problem in using : </font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><h3 class="title"><font style="font-size: 10pt;" face="Arial" size="2"><code class="function">force_rtp_proxy("c","192.168.1.10")</code></font></h3><font style="font-size: 10pt;" face="Arial" size="2">because i want to change to force to this ip.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">my configure is :</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">when server receive "200 OK" it change value in "c= IN IP4 &lt;ip rtp server&gt;" to&nbsp; "c = IN IP4 192.168.1.10" </font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;i configure as :</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">kamailio.cfg :</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">#!ifdef WITH_NAT</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((isflagset(5) || isbflagset("6")) &amp;&amp; status=~"(183)|(2[0-9][0-9])") {</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_rtp_proxy("c","192.168.1.10");</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (isbflagset("6")) {</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_contact();</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">#!endif</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">}</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">when i make call from sip a to sip b, sip b answer .trace as :</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">U 115.78.129.190:54337 -&gt; &lt;server ip&gt;:5060</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">SIP/2.0 200 OK.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Via: SIP/2.0/UDP &lt;server ip&gt;;branch=z9hG4bK00c.daa8fe8.0.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Via: SIP/2.0/UDP 192.168.1.10:50937;received=115.78.129.190;branch=z9hG4bK-d8754z-1f66a816d651d504-1---d8754z-;rport=63930.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Record-Route: &lt;sip:&lt;server ip&gt;;lr;nat=yes&gt;.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Contact: &lt;sip:102@192.168.1.10:8576;rinstance=8392ffb3fe461110&gt;.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">To: &lt;sip:102@&lt;server ip&gt;:5060&gt;;tag=d179a842.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">From: &lt;sip:101@&lt;server ip&gt;:5060&gt;;tag=1c61b708.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Call-ID: ZTQzYjZkYzFjODE1MWFlNjIwNmQ2ZGU5MWUxYmM1NjQ..</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">CSeq: 1 INVITE.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Content-Type: application/sdp.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Supported: replaces.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">User-Agent: PortGo v6.0, Build 07282010.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Content-Length: 237.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">v=0.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">o=- 30452887 30452887 IN IP4 169.254.202.160.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">s=http://www.portsip.com.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">c=IN IP4 169.254.202.160.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">t=0 0.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">m=audio 21480 RTP/AVP 0 101.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=rtpmap:0 PCMU/8000.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=rtpmap:101 telephone-event/8000.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=fmtp:101 0-15.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=ptime:20.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=sendrecv.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">U &lt;server ip&gt;:5060 -&gt; 115.78.129.190:63930</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">SIP/2.0 200 OK.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Via: SIP/2.0/UDP 192.168.1.10:50937;received=115.78.129.190;branch=z9hG4bK-d8754z-1f66a816d651d504-1---d8754z-;rport=63930.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Record-Route: &lt;sip:server ip;lr;nat=yes&gt;.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Contact: &lt;sip:102@115.78.129.190:54337;rinstance=8392ffb3fe461110&gt;.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">To: &lt;sip:102@server ip&gt;:5060&gt;;tag=d179a842.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">From: &lt;sip:101@&lt;server ip&gt;:5060&gt;;tag=1c61b708.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Call-ID: ZTQzYjZkYzFjODE1MWFlNjIwNmQ2ZGU5MWUxYmM1NjQ..</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">CSeq: 1 INVITE.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Content-Type: application/sdp.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Supported: replaces.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">User-Agent: PortGo v6.0, Build 07282010.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">Content-Length: 237.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">v=0.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">o=- 30452887 30452887 IN IP4 169.254.202.160.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">s=http://www.portsip.com.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">c=IN IP4 169.254.202.160.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">t=0 0.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">m=audio 21480 RTP/AVP 0 101.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=rtpmap:0 PCMU/8000.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=rtpmap:101 telephone-event/8000.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=fmtp:101 0-15.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=ptime:20.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">a=sendrecv.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">thanks for help me.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">regards.</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2">beter_green</font><font style="font-size: 10pt;" face="Arial" size="2"><br></font><font style="font-size: 10pt;" face="Arial" size="2"><br></font>                                                </body>
</html>