<br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 9:13 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com">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 class="im">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 class="im"><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 class="im"><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><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>