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@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@10.250.5.72>;tag=nDaJDf3lz To: sip:7@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@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]>;tag=U5jj715ZB6maK To: <sip:2031@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@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
You don't a port in those settings, it's triggering IPv6 code. On Monday, April 11, 2016, Nagorny, Dimitry <dimitry.nagorny@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@10.250.5.72 <javascript:_e(%7B%7D,'cvml','sip:7@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@10.250.5.72 <javascript:_e(%7B%7D,'cvml','sip:1001@10.250.5.72');>>;tag=nDaJDf3lz
To: sip:7@10.250.5.72 <javascript:_e(%7B%7D,'cvml','sip:7@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@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@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@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@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
Thank you very much Brian, that helped getting rid of the error. Now I’ve to find out how to tell FreeSWITCH to send gateway stuff on port 5070, because right now it keeps trying to send on 5060. Thanks again! Best Regards Dimitry Nagorny Trainee Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Brian West Gesendet: Montag, 11. April 2016 17:04 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] FreeSWITCH malforming SIP Package You don't a port in those settings, it's triggering IPv6 code. On Monday, April 11, 2016, Nagorny, Dimitry <dimitry.nagorny@robot5.de<mailto:dimitry.nagorny@robot5.de>> wrote: Sip-profiles/external/testpbx.xml: <include> <gateway name="testpbx"> <param name="realm" value="10.250.5.74:5070<http://10.250.5.74:5070>"/> <param name="from-domain" value="10.250.5.72:5070<http://10.250.5.72:5070>"/> <param name="proxy" value="10.250.5.74:5070<http://10.250.5.74:5070>"/> … </gateway> </include> -- Brian West brian@freeswitch.org<mailto:brian@freeswitch.org> [Das Bild wurde vom Absender entfernt.] 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
You just need to add (or replace the old line) in the settings section at the bottom for the testpbx profile: <param name="sip-port" value="5070"/>
On Apr 11, 2016, at 8:29 AM, Nagorny, Dimitry <dimitry.nagorny@robot5.de> wrote:
Thank you very much Brian, that helped getting rid of the error. Now I’ve to find out how to tell FreeSWITCH to send gateway stuff on port 5070, because right now it keeps trying to send on 5060. Thanks again!
Best Regards Dimitry Nagorny Trainee
Von: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org>[mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org>] Im Auftrag von Brian West Gesendet: Montag, 11. April 2016 17:04 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Betreff: Re: [Freeswitch-users] FreeSWITCH malforming SIP Package
You don't a port in those settings, it's triggering IPv6 code.
On Monday, April 11, 2016, Nagorny, Dimitry <dimitry.nagorny@robot5.de <mailto:dimitry.nagorny@robot5.de>> wrote: Sip-profiles/external/testpbx.xml: <include> <gateway name="testpbx"> <param name="realm" value="10.250.5.74:5070 <http://10.250.5.74:5070/>"/> <param name="from-domain" value="10.250.5.72:5070 <http://10.250.5.72:5070/>"/> <param name="proxy" value="10.250.5.74:5070 <http://10.250.5.74:5070/>"/> … </gateway> </include>
-- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org> <~WRD000.jpg>
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com <http://www.freeswitchbook.com/> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/> https://www.gofundme.com/freeswitch_ubuntu <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: <skype:briankwest>briankwest <skype:briankwest>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
participants (3)
-
Brian West
-
Mario G
-
Nagorny, Dimitry