I tried to install mediaproxy but it looks tricky to install (many dependencies, including kernel specific configurations) :-( <br>and I would like to stick to rtpproxy for performance reason.<br><br>Do you believe the same workaround using textops/filter_body can be used using rtpproxy ? I think yes as these are two different things as said Juha.<br>
<br>Regards,<br>Pascal<br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 9:26 PM, Pascal Maugeri <span dir="ltr"><<a href="mailto:pascal.maugeri@gmail.com">pascal.maugeri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Jun 19, 2009 at 9:13 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Pascal Maugeri writes:<br>
<br>
> So if I understand well (please correct me if I'm wrong) the "plan" is:<br>
><br>
> 1º) I install MediaProxy and use Kamailio MEDIAPROXY module instead of<br>
> rtpproxy/NATHelper<br>
><br>
> 2º) filter the app/sdp part with<br>
><br>
> if (has_body("multipart/mixed")) {<br>
> if (filter_body("application/sdp") {<br>
> remove_hf("Content-Type");<br>
><br>
> append_hf("Content-Type: application/sdp\r\n");<br>
> } else {<br>
><br>
> xlog("Body part application/sdp not found\n");<br>
> }<br>
> }<br>
<br>
</div>you don't need to call filter_body if you use mediaproxy.<br>
<div><br>
> 3º) then engage the media proxy with<br>
><br>
> if (method==INVITE && !has_totag()) {<br>
><br>
> # We can also use a specific media relay if we need to<br>
> #$avp(s:media_relay) = "1.2.3.4";<br>
> engage_media_proxy();<br>
> }<br>
<br>
</div>i have never used engage_media_proxy() functions, because it makes some<br>
assumptions that are not generally true. i use use_media_proxy() instead.<br>
<div><br>
> 4º) finally put the body part(s) that have been removed in 1º) and relay the<br>
> INVITE to my next hop.<br>
> I believe I can save the body part(s) in 1º) and put them back using<br>
> set_body(txt, content_type).<br>
<br>
</div>you don't need to do anything like that if you use use_media_proxy()<br>
function, because it does not remove anything.<br>
<font color="#888888"></font></blockquote></div></div><div><br>Thanks Juha ! I can't wait for monday to test it :-)<br><br>Have a nice week-end<br>Pascal<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
-- juha<br>
</font></blockquote></div><br>
</blockquote></div><br>