<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> <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> unforce_rtp_proxy();<BR>else if(is_method("INVITE")){<BR> force_rtp_proxy();<BR>}<BR><strong>in onreply_route</strong><BR> force_rtp_proxy("z160");<BR> <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> if (is_request()) {<br> if(has_totag()) {<br> if(check_route_param("nat=yes")) {<br> setbflag(FLB_NATB);<br> }<br> }<br> }<br> if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))<br> return;<BR> rtpproxy_manage("z150");<BR> if (is_request()) {<br> if (!has_totag()) {<br> add_rr_param(";nat=yes");<br> }<br> }<br> if (is_reply()) {<br> if(isbflagset(FLB_NATB)) {<br> fix_nated_contact();<br> }<br> }<br>#!endif<br> return;<br><BR><strong>onreply_route</strong><BR>this block is called route[NATMANAGE]. <BR> <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>