[Freeswitch-users] SIP Header Via - IP Wrong

T Fred Farmington tfred31 at yahoo.com
Sat Apr 18 01:14:06 MSD 2015


I made some closely associated guesses and found the answer....

In the conf/sip_profiles/external.xml  I needed to change the    ext-sip-ip   &  ext-rtp-ip   from their default of   "auto-nat"   to the Public IP
Once that was done, the SIP Header Via  contents showed correctly and the calls were going out.

Thank you for your replies



--------------------------------------------
On Fri, 4/17/15, Steven Ayre <steveayre at gmail.com> wrote:

 Subject: Re: [Freeswitch-users] SIP Header Via - IP Wrong
 To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
 Date: Friday, April 17, 2015, 11:16 AM
 
 A
 profile has to listen on a specific IP address. If you want
 to listen on both IPs you'll need a profile on each one.
 It's probably easiest in your setup to put the IP
 addresses into the profile directly rather than setting them
 in vars.conf.xml or using $${local_ip4}. The profile will
 use the IP it is listening on for Via Contact etc.
 
 Set the
 sip-ip and rtp-ip parameters of the relevant sofia profile
 (in sip_profiles/) to the 107.1.nnn.n address. Since the
 server has the IP assigned directly (not unusual) you do
 -not- need to set ext-sip-ip and ext-rtp-ip since you're
 not behind NAT.
 
 
 
 On 17 April 2015 at 15:54,
 T Fred Farmington <tfred31 at yahoo.com>
 wrote:
 My
 FreeSWITCH server has 2 IP addresses   An Internal 
 192.168,nnn.nn   &  an External   107,1.nnn.nn
 
 This is accomplished via network 'magic' (I'm
 not the network guy) using a single network card
 
 
 
 And, in general, it works.
 
 I can Receive Outside calls from our SIP Trunk vendor
 
 But I can Not Send calls Out through the SIP Trunk
 vendor.
 
 
 
 The calls are being blocked (403 'Forbidden") by
 the vendor due to the contents of our SIP Header packet.
 
 
 
 Within the  Via:  part of the packet it shows:
 
      Via: SIP/2.0/UDP
 192.168.nnn.nn;rport;branch=z9hG4bKQKa7126jtX4mm
 
 They need it to show the External IP here.
 
 
 
 I have even tried setting    sip_via_host = 
 107.1.nnn.nn     but that did not change what it being
 sent.
 
 
 
 How/Where can I get this to change?
 
 
 
 
 
 
 
 
 
 
 
 _________________________________________________________________________
 
 Professional FreeSWITCH Consulting Services:
 
 consulting at freeswitch.org
 
 http://www.freeswitchsolutions.com
 
 
 
 Official FreeSWITCH Sites
 
 http://www.freeswitch.org
 
 http://confluence.freeswitch.org
 
 http://www.cluecon.com
 
 
 
 FreeSWITCH-users mailing list
 
 FreeSWITCH-users at lists.freeswitch.org
 
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 
 http://www.freeswitch.org
 
 
 
 -----Inline Attachment Follows-----
 
 _________________________________________________________________________
 Professional FreeSWITCH Consulting Services:
 
 consulting at freeswitch.org
 http://www.freeswitchsolutions.com
 
 Official FreeSWITCH Sites
 http://www.freeswitch.org
 http://confluence.freeswitch.org
 http://www.cluecon.com
 
 FreeSWITCH-users mailing
 list
 FreeSWITCH-users at lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org



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