You don't a port in those settings, it's triggering IPv6 code.<br><br>On Monday, April 11, 2016, Nagorny, Dimitry <<a href="mailto:dimitry.nagorny@robot5.de">dimitry.nagorny@robot5.de</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Good afternoon Ladies and Gentlemen,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m using FreeSWITCH (1.7.0 git cae2553 2015-12-11 00:23:48Z 64bit) as B2BUA between Kamailio and our own Server. Our Server is attached to FreeSWICH via ESL.
<u></u><u></u></p>
<p class="MsoNormal">From Kamailio into our own Server it is connecting w/o problems. But when I initiate a call from our Server to Kamailio via FreeSWITCH I’ve a weird reaction:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Network-Overview:<u></u><u></u></p>
<p class="MsoNormal">PSTN(192.168.1.30) <span style="font-family:Wingdings">à</span> Kamailio(<a href="http://192.168.1.150/10.250.5.74" target="_blank">192.168.1.150/10.250.5.74</a>)
<span style="font-family:Wingdings">à</span> FreeSWITCH(10.250.5.72) <span style="font-family:Wingdings">
à</span> Our Server(10.250.5.67) <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">1st Initial Invite to FS:<u></u><u></u></p>
<p class="MsoNormal">INVITE <a href="javascript:_e(%7B%7D,'cvml','sip:7@10.250.5.72');" target="_blank">sip:7@10.250.5.72</a> SIP/2.0<u></u><u></u></p>
<p class="MsoNormal"> Via: SIP/2.0/UDP 10.250.5.17:5090;branch=z9hG4bK.GSRDySx-y;rport<u></u><u></u></p>
<p class="MsoNormal"> From: <<a href="javascript:_e(%7B%7D,'cvml','sip:1001@10.250.5.72');" target="_blank">sip:1001@10.250.5.72</a>>;tag=nDaJDf3lz<u></u><u></u></p>
<p class="MsoNormal"> To: <a href="javascript:_e(%7B%7D,'cvml','sip:7@10.250.5.72');" target="_blank">sip:7@10.250.5.72</a><u></u><u></u></p>
<p class="MsoNormal"> Route: <sip:10.250.5.72:5080;lr><u></u><u></u></p>
<p class="MsoNormal"> Content-Type: application/sdp<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">7 is mapped to go to our Server and our Server then is trying to connect to a UA (2031) at PSTN via FreeSWITCH gateway(Kamailio):<u></u><u></u></p>
<p class="MsoNormal">INVITE <a href="http://sip:2031@10.250.5.74:5070" target="_blank">sip:2031@10.250.5.74:5070</a> SIP/2.0<u></u><u></u></p>
<p class="MsoNormal"> Via: SIP/2.0/UDP 10.250.5.72:5070;rport;branch=z9hG4bKmgrc4De2Q0ySN<u></u><u></u></p>
<p class="MsoNormal"> From: "" <sip:1001@<b><span style="background:yellow">[<a href="http://10.250.5.72:5070" target="_blank">10.250.5.72:5070</a>]</span></b>>;tag=U5jj715ZB6maK<u></u><u></u></p>
<p class="MsoNormal"> To: <<a href="http://sip:2031@10.250.5.74:5070" target="_blank">sip:2031@10.250.5.74:5070</a>><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This Invite was built by FreeSWITCH and I could confirm that the „SIP-Invite“ sent via ESL to FreeSWITCH from our Server was correct but as you can see here FreeSWITCH „malformed“ the From-Header with the
<b>square brackets</b> and due to that I’m getting error from PSTN later:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">SIP/2.0 400 Bad Request<u></u><u></u></p>
<p class="MsoNormal"> Warning: 399 192.168.1.30 "Malformed headers : From "<u></u><u></u></p>
<p class="MsoNormal"> To: <<a href="http://sip:2031@10.250.5.74:5070" target="_blank">sip:2031@10.250.5.74:5070</a>>;tag=ae0f6cb7ca85c1fb958bd8bed1f9b7b7<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Here some config data that is set in FreeSWITCH:<u></u><u></u></p>
<p class="MsoNormal">Vars.xml:<u></u><u></u></p>
<p class="MsoNormal"> <X-PRE-PROCESS cmd="set" data="domain=10.250.5.72"/><u></u><u></u></p>
<p class="MsoNormal"> <X-PRE-PROCESS cmd="set" data="external_sip_port=5070"/><u></u><u></u></p>
<p class="MsoNormal"> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5080"/><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sip-profiles/external/testpbx.xml:<u></u><u></u></p>
<p class="MsoNormal"><include><u></u><u></u></p>
<p class="MsoNormal"> <gateway name="testpbx"><u></u><u></u></p>
<p class="MsoNormal"> <param name="realm" value="<a href="http://10.250.5.74:5070" target="_blank">10.250.5.74:5070</a>"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="from-domain" value="<a href="http://10.250.5.72:5070" target="_blank">10.250.5.72:5070</a>"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="proxy" value="<a href="http://10.250.5.74:5070" target="_blank">10.250.5.74:5070</a>"/><u></u><u></u></p>
<p class="MsoNormal"> …<u></u><u></u></p>
<p class="MsoNormal"> </gateway><u></u><u></u></p>
<p class="MsoNormal"></include><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sip-profiles/external.xml and internal.xml:<u></u><u></u></p>
<p class="MsoNormal"> <param name="rtp-ip" value="10.250.5.72"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="sip-ip" value="10.250.5.72"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="ext-rtp-ip" value="10.250.5.72"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="ext-sip-ip" value="10.250.5.72"/><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can anyone help why FreeSWITCH is doing this or can point to a class where the the From Header is built? Maybe someone knows a solution?<u></u><u></u></p>
<p class="MsoNormal">Here you can find full SIP-Trace Logs and Full FreeSWITCH Debugging Log:
<span style="font-size:10.0pt;font-family:"Helvetica",sans-serif"><a href="https://we.tl/FtPuknRrSw" target="_blank"><span style="color:#1294dc;text-decoration:none">https://we.tl/FtPuknRrSw</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span>Very Respectfully<u></u><u></u></span></p>
<p class="MsoNormal"><b><span>Dimitry Nagorny<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt">Trainee</span><span lang="EN-US" style="font-size:8.0pt;color:#7f7f7f"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</blockquote><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div><br>