Thanks Guys, I&#39;ll be trying this. Do you know if I can use AVP or vars as parameters for these functions?<br><code class="function">encode_contact(encoding_prefix)<br></code><code class="function">decode_contact()</code><br>
<br><div class="gmail_quote">On Mon, May 3, 2010 at 5:47 AM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The best would be to tell the providers that they should fix their systems.<br>
<br>
As a workaround you could try encode/decode contact functions:<br>
<a href="http://sip-router.org/docbook/sip-router/branch/master/modules_k/siputils/siputils.html#id2878034" target="_blank">http://sip-router.org/docbook/sip-router/branch/master/modules_k/siputils/siputils.html#id2878034</a><br>

<br>
IIRC these functions may cause strange results if you do other contact rewriting too (e.g. fix_nated_contact).<br>
<br>
regards<br>
klaus<br>
<br>
Am 30.04.2010 18:32, schrieb Uriel Rozenbaum:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
Guys,<br>
<br>
I&#39;m successfully using a Kamailio + RTPproxy setup in bridge mode with<br>
most of my Gateways. My setup includes two different interfaces one with<br>
a public IP and teh other with the private IP.<br>
<br>
Now I&#39;m facing some slight issue. Some providers won&#39;t accept my calls<br>
(or calls will have some strange behavior) if the Contact header has an<br>
IP out of immediate range.<br>
<br>
I tried to use fix_nated_contact() function but as per my topology, this<br>
function will not change the contact header because the IP is already<br>
the one on the interface.<br>
<br>
Example:<br>
U 192.168.200.X:5060 -&gt; 192.168.200.Y:5060<br>
INVITE sip:111160911097@192.168.200.Y SIP/2.0.<br>
Via: SIP/2.0/UDP 192.168.200.X:5060;branch=z9hG4bK096baacc;rport.<br>
From: &quot;Uriel Rozenbaum&quot; &lt;sip:60911100@192.168.200.X&gt;;tag=as32794d5e.<br>
To: &lt;sip:111160911097@192.168.200.Y&gt;.<br>
Contact: &lt;sip:60911100@*192.168.200.X*&gt;.<br>
<br>
U 200.A.A.A:5060 -&gt; 200.B.B.B:5060<br>
INVITE sip:898960911097@200.B.B.B SIP/2.0.<br>
Record-Route: &lt;sip:200.A.A.A;r2=on;lr=on;ftag=as32794d5e&gt;.<br>
Record-Route: &lt;sip:192.168.200.Y;r2=on;lr=on;ftag=as32794d5e&gt;.<br>
Via: SIP/2.0/UDP 200.A.A.A;branch=z9hG4bK5222.14fbf4f7.0.<br>
Via: SIP/2.0/UDP<br>
192.168.200.X:5060;received=192.168.200.X;branch=z9hG4bK096baacc;rport=5060.<br>
From: &quot;Uriel Rozenbaum&quot; &lt;sip:60911100@192.168.200.X&gt;;tag=as32794d5e.<br>
To: &lt;sip:111160911097@192.168.200.Y&gt;.<br>
Contact: &lt;sip:60911100@*192.168.200.X*&gt;.<br>
<br>
Is there any way to let know Kamailio the outgoing IP I&#39;ll be using and<br>
fix the contact accordingly?<br>
I can trigger this change after I know the destination IP.<br>
<br>
Thanks!<br>
Uriel<br>
<br>
<br>
<br></div></div><div class="im">
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></blockquote>
</blockquote></div><br>