<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 8/21/13 10:36 AM, Steve Davies
wrote:<br>
</div>
<blockquote
cite="mid:CABFTEGXEbR+7eGZxBv-iFQ7L_fDgUZ2W5-wLOuu4edyQ=z4YHQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 20 August 2013 18:49,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">I wanted to add such
logic in default config for kamailio as well (not mangle
contact if not first proxy), but forgot about it, I'll
do it soon. There is a new function is_first_hop() in
devel version, for older version the solution is to
store the number of record-route headers for request
and compare with the number of them in response.<br>
</div>
</blockquote>
<div><br>
</div>
<div>Hi Daniel,</div>
<div><br>
</div>
<div>If you are going to work on the default config, note
also that the rtpproxy_manage as is doesn't work properly
if the rtpproxy is working in bridged mode on a
multi-homed box. Per Alex's advice and my experiments
you need to to the rtpproxy_manage with "ie" or "ei" flags
depending whether the request is inside->outside or
outside->inside.</div>
</div>
</div>
</div>
</blockquote>
multi-homed/bridging networks is a custom installation, not the
common one and anyhow 'e', 'i' flags don't work automatically, they
require to know the order of listen interfaces provided to rtpproxy
application as well as conditions on local receiving sockets.
Therefore I think it doesn't belong to default config -- the case is
documented in several places, there are some examples in the
rtpproxy module folder as well as articles on the web.<br>
<br>
We have the kamailio-advanced.cfg (installed as well and shipped in
packages), file that tries to collect as many features as people
want to add, if someone is interesting in adding a option for
multihomed, it's free to do it (ie., using some define condition
such as WITH_MULTIHOMED).<br>
<br>
On the other hand, peering with other voip networks (which can run a
proxy) is common and we actually allow that in the default config
(calls from local users to foreign networks and calls from foreign
networks to local users).<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
</body>
</html>