[Freeswitch-users] FreeSWITCH malforming SIP Package

Brian West brian at freeswitch.org
Mon Apr 11 19:04:19 MSD 2016


You don't a port in those settings, it's triggering IPv6 code.

On Monday, April 11, 2016, Nagorny, Dimitry <dimitry.nagorny at robot5.de>
wrote:

> Good afternoon Ladies and Gentlemen,
>
>
>
> 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.
>
> 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:
>
>
>
> Network-Overview:
>
> PSTN(192.168.1.30) à Kamailio(192.168.1.150/10.250.5.74) à
> FreeSWITCH(10.250.5.72) à Our Server(10.250.5.67)
>
>
>
> 1st Initial Invite to FS:
>
> INVITE sip:7 at 10.250.5.72
> <javascript:_e(%7B%7D,'cvml','sip:7 at 10.250.5.72');> SIP/2.0
>
>    Via: SIP/2.0/UDP 10.250.5.17:5090;branch=z9hG4bK.GSRDySx-y;rport
>
>    From: <sip:1001 at 10.250.5.72
> <javascript:_e(%7B%7D,'cvml','sip:1001 at 10.250.5.72');>>;tag=nDaJDf3lz
>
>    To: sip:7 at 10.250.5.72
> <javascript:_e(%7B%7D,'cvml','sip:7 at 10.250.5.72');>
>
>    Route: <sip:10.250.5.72:5080;lr>
>
>    Content-Type: application/sdp
>
>
>
> 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):
>
> INVITE sip:2031 at 10.250.5.74:5070 SIP/2.0
>
>    Via: SIP/2.0/UDP 10.250.5.72:5070;rport;branch=z9hG4bKmgrc4De2Q0ySN
>
>    From: "" <sip:1001@*[10.250.5.72:5070 <http://10.250.5.72:5070>]*
> >;tag=U5jj715ZB6maK
>
>    To: <sip:2031 at 10.250.5.74:5070>
>
>
>
> 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 *square
> brackets* and due to that I’m getting error from PSTN later:
>
>
>
> SIP/2.0 400 Bad Request
>
>    Warning: 399 192.168.1.30 "Malformed headers : From "
>
>    To: <sip:2031 at 10.250.5.74:5070>;tag=ae0f6cb7ca85c1fb958bd8bed1f9b7b7
>
>
>
> Here some config data that is set in FreeSWITCH:
>
> Vars.xml:
>
>   <X-PRE-PROCESS cmd="set" data="domain=10.250.5.72"/>
>
>   <X-PRE-PROCESS cmd="set" data="external_sip_port=5070"/>
>
>   <X-PRE-PROCESS cmd="set" data="internal_sip_port=5080"/>
>
>
>
> Sip-profiles/external/testpbx.xml:
>
> <include>
>
>   <gateway name="testpbx">
>
>   <param name="realm" value="10.250.5.74:5070"/>
>
>   <param name="from-domain" value="10.250.5.72:5070"/>
>
>   <param name="proxy" value="10.250.5.74:5070"/>
>
>>
>   </gateway>
>
> </include>
>
>
>
> Sip-profiles/external.xml and internal.xml:
>
>     <param name="rtp-ip" value="10.250.5.72"/>
>
>     <param name="sip-ip" value="10.250.5.72"/>
>
>     <param name="ext-rtp-ip" value="10.250.5.72"/>
>
>     <param name="ext-sip-ip" value="10.250.5.72"/>
>
>
>
> 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?
>
> Here you can find full SIP-Trace Logs and Full FreeSWITCH Debugging Log:
> https://we.tl/FtPuknRrSw
>
>
>
>
>
> Very Respectfully
>
> *Dimitry Nagorny*
>
> Trainee
>
>
>


-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu

Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160411/ccfa0cc3/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list