Yes, you're right. Sorry for that.<br>-pascal<br><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 1:52 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@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;"><div class="im"><br>
<br>
On 06/22/2009 01:46 PM, Pascal Maugeri wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I understood correctly you want me to test the patch nhelpr_func.c you've done in sr in kamailio ?<br>
This is what I've done and at least it compiles :-)<br>
<br>
(I also tried to compile sr, but I need to sudy it a bit more as I've never installed sr so far)<br>
<br>
Nevertheless, the ouput payload is wrong:<br>
<br>
Content-Type: application/sdp<br>
<br>
v=0<br>
o=- 3454665275 3454665275 IN IP4 10.1.1.248<br>
s=pjmedia<br>
c=IN IP4 88.29.163.14288.29.163.142<br>
t=0 0<br>
a=X-nat:0<br>
m=audio 5191251912 RTP/AVP 115<br>
[...]<br>
m=application 4198041980 udp TBCP<br>
<br>
The RTP and RTCP ports are wrong: 5191251912 and 4198041980 ?!<br>
<br>
Where could I have a look in nathelper source to see what is wrong ?<br>
</blockquote>
<br></div>
it seems you call force_rtp_rpoxy() twice, as you get the port two times as well as the ip address. Check your config.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
-pascal<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
On Mon, Jun 22, 2009 at 11:36 AM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>> wrote:<br>
<br>
Hello Pascal,<br>
<br>
I have just committed support for multipart bodies in sip router,<br>
if works then I will backport to 1.5.<br>
<br>
<a href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1f41271e1c1b879217835b8b3fdbdc2680138f25" target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1f41271e1c1b879217835b8b3fdbdc2680138f25</a><br>
<br>
<br>
Can you test it? Unfortunately I cannot do it these days properly<br>
due to traveling. Patch should work pretty straightforward with<br>
1.5 though, if you want to test it directly there.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 06/22/2009 11:30 AM, Pascal Maugeri wrote:<br>
<br>
I tried to install mediaproxy but it looks tricky to install<br>
(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<br>
can be used using rtpproxy ? I think yes as these are two<br>
different things as said Juha.<br>
<br>
Regards,<br>
Pascal<br>
<br>
<br>
On Fri, Jun 19, 2009 at 9:26 PM, Pascal Maugeri<br>
<<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a> <mailto:<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a>><br>
<mailto:<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a><br>
<mailto:<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a>>>> wrote:<br>
<br>
<br>
<br>
On Fri, Jun 19, 2009 at 9:13 PM, Juha Heinanen<br>
<<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a> <mailto:<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>><br></div></div><div><div></div><div class="h5">
<mailto:<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a> <mailto:<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>>>> wrote:<br>
<br>
Pascal Maugeri writes:<br>
<br>
> So if I understand well (please correct me if I'm wrong)<br>
the "plan" is:<br>
><br>
> 1º) I install MediaProxy and use Kamailio MEDIAPROXY<br>
module<br>
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>
you don't need to call filter_body if you use mediaproxy.<br>
<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<br>
need to<br>
> #$avp(s:media_relay) = "1.2.3.4";<br>
> engage_media_proxy();<br>
> }<br>
<br>
i have never used engage_media_proxy() functions,<br>
because it<br>
makes some<br>
assumptions that are not generally true. i use<br>
use_media_proxy() instead.<br>
<br>
> 4º) finally put the body part(s) that have been<br>
removed in<br>
1º) and relay the<br>
> INVITE to my next hop.<br>
> I believe I can save the body part(s) in 1º)<br>
and put<br>
them back using<br>
> set_body(txt, content_type).<br>
<br>
you don't need to do anything like that if you use<br>
use_media_proxy()<br>
function, because it does not remove anything.<br>
<br>
<br>
Thanks Juha ! I can't wait for monday to test it :-)<br>
<br>
Have a nice week-end<br>
Pascal<br>
<br>
<br>
-- juha<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br></div></div>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a> <mailto:<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a>><div class="im"><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
-- Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</div></div></blockquote></div><br>