<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<BR>I'm using the new kamailio 3.2 which has some changes in rtpproxy module. And i'm finding it hard to implement a certain configuration.<BR>&nbsp;<BR>Because of our network infrastructure i have to repackage rtp streams in one direction. Now in kamailio 3.1.5 i used to do this in this way:<BR><strong>In main route</strong><BR>route[RTPPROXY]{<BR>if(is_method("BYE"){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<BR>else if(is_method("INVITE")){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_rtp_proxy();<BR>}<BR><strong>in onreply_route</strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_rtp_proxy("z160");<BR>&nbsp;<BR>Now in kamailio 3.2 the <strong>force_rtp_proxy()</strong> is replaced by <strong>rtpproxy_manage(). </strong>Here the script reads like:<BR><strong>main route</strong><BR>route[NATMANAGE] {<br>#!ifdef WITH_NAT<br>&nbsp;if (is_request()) {<br>&nbsp;&nbsp;if(has_totag()) {<br>&nbsp;&nbsp;&nbsp;if(check_route_param("nat=yes")) {<br>&nbsp;&nbsp;&nbsp;&nbsp;setbflag(FLB_NATB);<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>&nbsp;}<br>&nbsp;if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))<br>&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtpproxy_manage("z150");<BR>&nbsp;if (is_request()) {<br>&nbsp;&nbsp;if (!has_totag()) {<br>&nbsp;&nbsp;&nbsp;add_rr_param(";nat=yes");<br>&nbsp;&nbsp;}<br>&nbsp;}<br>&nbsp;if (is_reply()) {<br>&nbsp;&nbsp;if(isbflagset(FLB_NATB)) {<br>&nbsp;&nbsp;&nbsp;fix_nated_contact();<br>&nbsp;&nbsp;}<br>&nbsp;}<br>#!endif<br>&nbsp;return;<br><BR><strong>onreply_route</strong><BR>this block is called route[NATMANAGE]. <BR>&nbsp;<BR>Now if i put rtpproxy_manage("z150"), it tries to repackage in both direction which i do not want. So i need to write a separate block for onreply_route instead of calling route[NATMANAGE]. <BR>So please help me to write a block for onreply_route.<BR>Thanks in advance.<BR><br><br>

With Best Regards<br>Ariful Hossain Tuhin<br>email: 1. <a href="mailto:etothepowerpi@gmail.com">etothepowerpi@gmail.com</a> 2. <a href="mailto:etothepowerpi@hotmail.com">etothepowerpi@hotmail.com</a> <a href="mailto:3.etothepowerpi@yahoo.com">3.etothepowerpi@yahoo.com</a><br>skype: freeburn1986<br><BR>                                               </div></body>
</html>