<div dir="ltr">Dear All,<br><br>Can someone help me to connect my kamilio in order to make a PSTN call by rewriting host tp PSTN gateway? I changed my config in a manner to do that...The line is ringing but as soon as I open the line on other side the call will hangup...Please find the piece of code<br>
<br># RTPProxy control<br>route[RTPPROXY] {<br>#!ifdef WITH_NAT<br>        if (is_method(&quot;BYE&quot;)) {<br>                unforce_rtp_proxy();<br>        } else if (is_method(&quot;INVITE&quot;)){<br>rewritehost(&quot;XX.XX.XX.XX&quot;);<br>
                force_rtp_proxy();<br>        }<br>        if (!has_totag()) add_rr_param(&quot;;nat=yes&quot;);<br>#!endif<br>        return;<br>}<br><br><br>Regards<br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style></div>