<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Calibri">Hi Alex,<br>
Don't believe so, it's a very minimal configuration; its contents
are below.</font><br>
<font face="Calibri"><font face="Calibri">Thanks for your input!</font><br>
</font><tt><br>
mpath = "/usr/lib/x86_64-linux-gnu/kamailio/modules"<br>
<br>
loadmodule "mi_fifo.so"<br>
loadmodule "kex.so"<br>
loadmodule "sl.so"<br>
loadmodule "rr.so"<br>
loadmodule "pv.so"<br>
loadmodule "maxfwd.so"<br>
loadmodule "textops.so"<br>
loadmodule "siputils.so"<br>
loadmodule "xlog.so"<br>
loadmodule "sanity.so"<br>
loadmodule "ctl.so"<br>
loadmodule "cfg_rpc.so"<br>
loadmodule "mi_rpc.so"<br>
loadmodule "path.so"<br>
loadmodule "dispatcher.so"<br>
loadmodule "nathelper.so"<br>
loadmodule "rtpproxy.so"<br>
<br>
#!ifdef WITH_DEBUG<br>
loadmodule "debugger.so"<br>
#!endif<br>
<br>
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")<br>
modparam("rr", "enable_full_lr", 1)<br>
modparam("path", "use_received", 1)<br>
modparam("nathelper", "received_avp", "$avp(RECEIVED)")<br>
modparam("nathelper", "nortpproxy_str", "a=sdpmangled:yes\r\n")<br>
modparam("rtpproxy", "rtpproxy_sock",
"unix:/var/run/rtpproxy/rtpproxy.sock")<br>
<br>
#!ifdef WITH_DEBUG<br>
modparam("debugger", "cfgtrace", 1)<br>
#!endif<br>
<br>
#----- Routing -----#<br>
<br>
<br>
route {<br>
if (!sanity_check()) {<br>
exit;<br>
}<br>
<br>
if ( !mf_process_maxfwd_header("10") )<br>
{<br>
sl_send_reply("483","To Many Hops");<br>
xlog("L_NOTICE", "$si $rm $ru -- too many hops\n");<br>
exit;<br>
}<br>
<br>
<br>
force_rport();<br>
<br>
if (!ds_is_from_list("1"))<br>
{<br>
# SIP request packet client->backend<br>
<br>
if( !loose_route() )<br>
{<br>
if( !ds_select_dst("1", "1") )<br>
{<br>
# TODO: Handle gracefully once everything works
fine<br>
drop();<br>
}<br>
}<br>
<br>
if (nat_uac_test("19")) {<br>
if (method=="REGISTER") {<br>
fix_nated_register();<br>
} else {<br>
fix_nated_contact();<br>
}<br>
}<br>
<br>
<br>
add_path_received();<br>
rtpproxy_manage("cw");<br>
record_route();<br>
}<br>
else<br>
{<br>
# SIP request packet backend->client<br>
loose_route();<br>
rtpproxy_manage("cw");<br>
record_route();<br>
}<br>
<br>
forward();<br>
}<br>
<br>
<br>
onreply_route {<br>
<br>
if(!ds_is_from_list("1"))<br>
{<br>
# SIP reply packet client->backend<br>
<br>
fix_nated_contact();<br>
rtpproxy_manage("cw");<br>
}<br>
else<br>
{<br>
# SIP reply packet backend->client<br>
rtpproxy_manage("cw");<br>
}<br>
<br>
return(1);<br>
}</tt><font face="Calibri"><br>
<br>
Kind regards,<br>
</font>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<title></title>
Iskren<br>
<br>
</div>
</div>
<div class="moz-cite-prefix">On 20.7.2017 г. 18:20, Alex Balashov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20170720152005.GB5993@tlaquepaque.localdomain">
<pre wrap="">On Thu, Jul 20, 2017 at 06:18:18PM +0300, Iskren Hadzhinedev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">doesn't use the 'received' parameter and it forwards to the RFC1918 IP
address. The initial INVITE from FreeSWITCH has the following headers:
To: <a class="moz-txt-link-rfc2396E" href="sip:1001@192.168.1.200:5063"><sip:1001@192.168.1.200:5063></a>
Route: <a class="moz-txt-link-rfc2396E" href="sip:1.2.3.4"><sip:1.2.3.4></a>;lr;received=<a class="moz-txt-link-freetext" href="sip:5.6.7.8:5063">sip:5.6.7.8:5063</a>
</pre>
</blockquote>
<pre wrap="">
Is there any possibility that your Kamailio config strips Route headers
from initial invites? The stock config ships this way.
-- Alex
</pre>
</blockquote>
<br>
</body>
</html>