<div dir="ltr">don't add recordroute on the register packet that is being forwarded to FreeSWITCH <div><span style="font-family:monospace;font-size:10.4px"> add_path_received();</span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> rtpproxy_manage("cw");</span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> # record_route(); <- this line</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 20, 2017 at 1:00 PM, Iskren Hadzhinedev <span dir="ltr"><<a href="mailto:iskren.hadzhinedev@ikiji.com" target="_blank">iskren.hadzhinedev@ikiji.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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/<wbr>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)<span class=""><br>
modparam("path", "use_received", 1)<br></span>
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/<wbr>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"<wbr>) )<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="m_691011177532516189moz-signature">
<div class="m_691011177532516189moz-signature">
Iskren<br>
<br>
</div>
</div><span class="">
<div class="m_691011177532516189moz-cite-prefix">On 20.7.2017 г. 18:20, Alex Balashov
wrote:<br>
</div>
<blockquote type="cite">
<pre>On Thu, Jul 20, 2017 at 06:18:18PM +0300, Iskren Hadzhinedev wrote:
</pre>
<blockquote type="cite">
<pre>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="m_691011177532516189moz-txt-link-rfc2396E"><sip:1001@192.168.1.200:5063></a>
Route: <a class="m_691011177532516189moz-txt-link-rfc2396E"><sip:1.2.3.4></a>;lr;received=<a class="m_691011177532516189moz-txt-link-freetext">sip:<wbr>5.6.7.8:5063</a>
</pre>
</blockquote>
<pre>Is there any possibility that your Kamailio config strips Route headers
from initial invites? The stock config ships this way.
-- Alex
</pre>
</blockquote>
<br>
</span></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>