Thank you very much, Thomas! It seems to work :) I did something like this:<br>
<br>
if (is_present_hf("User-Agent"))<br>
{<br>
remove_hf("User-Agent");<br>
remove_hf("P-Asserted-Identity");<br>
subst("/^From: \".+\" (<sip: *[a-zA-Z0-9_\.-]+@.*>)/From: \1/ig");<br>
subst("/^To: \".+\" (<sip: *[a-zA-Z0-9_\.-]+@.*>)/To: \1/ig");<br>
}<br>
<br>
if (has_body("application/sdp"))<br>
{<br>
replace_body("^a=rtpmap:0 PCMU/8000\r\n", "");<br>
replace_body("^a=rtpmap:8 PCMA/8000\r\n", "");<br>
replace_body("^s=[ A-Za-z0-9\._/-]+\r\n", "s=-\r\n");<br>
}<br>
<br>
This cuts enough bytes to make our dumb gateway accept requests.<br><br><div class="gmail_quote">2009/11/2 Thomas Gelf <span dir="ltr"><<a href="mailto:thomas@gelf.net">thomas@gelf.net</a>></span><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">Iñaki Baz Castillo wrote:<br>
> El Viernes, 30 de Octubre de 2009, Alexander escribió:<br>
>> BTW, what do you think about possible performance loss because of TCP? Or<br>
>> it's neglible?<br>
><br>
> The problem of SIP TCP in OpenSIPS is not the performance, but the fact that<br>
> each running OpenSIPS process blocks until its TCP transaction in processed.<br>
<br>
</div>Alexander: I faced issues with stupid devices unable to handle fragmen-<br>
ted UDP packets several times. TCP would help, however as Iñaki wrote it<br>
also has some drawbacks. I tried to write down some suggestions on how<br>
to solve this issue:<br>
<br>
<a href="http://thomas.gelf.net/blog/archives/Smaller-SIP-packets-to-avoid-fragmentation,27.html" target="_blank">http://thomas.gelf.net/blog/archives/Smaller-SIP-packets-to-avoid-fragmentation,27.html</a><br>
<br>
This is not what a proxy should usually do - but, honestly: who cares if<br>
it helps? I'm doing so on my productional systems (OpenSIPS 1.6), and I<br>
didn't meet any issues so far.<br>
<br>
Iñaki, others: I'm pretty curious about your valued opinion on this - as<br>
you definitively have deeper SIP knowledge than I do.<br>
<br>
Cheers,<br>
Thomas<br>
<font color="#888888"><br>
--<br>
mail: <a href="mailto:thomas@gelf.net">thomas@gelf.net</a><br>
web: <a href="http://thomas.gelf.net/" target="_blank">http://thomas.gelf.net/</a><br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>