[Freeswitch-users] Control of IPv6 vs. IPv4

George F. Phelps GeorgePhelps at gfphelps.com
Mon Jan 5 16:03:45 MSK 2015


RESOLVED

 

The specific problem was, that I was defining my gateway in directory “/usr/local/freeswitch/conf/directory/default”.  This was causing Freeswitch to attempt registrations for both IPv4 and IPv6 — which my VoIP provider supports.  A Freeswitch bug, IMHO, due to unexpected, nondeterministic behavior.

 

I was mistakenly doing this (i.e., defining my gateway in directory “/usr/local/freeswitch/conf/directory/default”) due to incorrect (i.e., out of date, misleading, confusing) Freeswitch documentation, comments, and examples.  Not the least of which was an existing Freeswitch example file — “/usr/local/freeswitch/conf/directory/default/example.com.xml” — and multiple references to it.  IMHO, this file should be deleted in the next Freeswitch release.  And all other XML includes/comments for the file should be deleted.  It all makes sense now, but as a new Freeswitch user, I thought I was just following the recommended configuration guidelines.  For example, from Freeswitch configuration file “/usr/local/freeswitch/conf/vars.xml”:

 

  <!--

      Setting up your default sip provider is easy.

      Below are some values that should work in most cases.

 

      These are for conf/directory/default/example.com.xml

  -->

 

And for new Freeswitch users, it would probably be good to add a comment that SIP gateways defined in “/usr/local/freeswitch/conf/sip_profiles/external/” are implicitly IPv4 gateways.  Sure, it all makes sense now…

 

Thanks,

 

George

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, January 02, 2015 5:21 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Control of IPv6 vs. IPv4

 

I think he's in the unique position to have a provider that does ipv6, I've never seen one yet, its like the unicorn of voip. :P

 

On Fri, Jan 2, 2015 at 4:03 PM, Steven Ayre <steveayre at gmail.com> wrote:

Do you have the same gateway configured on both the external and external-ipv6 profiles? It looks like way, which would mean you actually have two user agents registering with the same details at the same time - one over ipv4 and one over ipv6.

 

Check your external-ipv6 is not including the gateways in the external subdirectory.

 

On 2 January 2015 at 18:12, George F. Phelps <GeorgePhelps at gfphelps.com> wrote:

Brian West,

 

With my mostly default, current configuration, I am seeing Freeswitch send out simultaneous IPv4 and IPv6 registration attempts — not just one or the other.

 

I am only configuring the (IPv4) IP address of the SIP proxy.  I assume Freeswitch is defaulting to use port 5060.  And empirically, it’s completely random as to which type of registration (IPv4 vs. IPv6) succeeds.  And if, for example, IPv6 registration succeeds, then the registration attempts for IPv4 continue retrying in the background.  See my “sofia status” output below —  IPv6=REGED and IPv4=TRYING (retry: 20s).

 

My specific question is what Freeswitch configuration should I change to only have one type of registration?  How do I: “…you should pick where you want your gateway to register at, and only allow it there and there only…”?

 

Thanks,

 

George

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Friday, January 02, 2015 12:13 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Control of IPv6 vs. IPv4

 

FreeSWITCH does one or the other, you should pick where you want your gateway to register at, and only allow it there and there only.

 

On Fri, Jan 2, 2015 at 10:02 AM, George F. Phelps <GeorgePhelps at gfphelps.com> wrote:

My VoIP provider supports both IPv4 and IPV6 registrations.  I can only have one registration active at a time.  Freeswitch is attempting both IPv4 and IPv6 connections.  Randomly, sometimes a IPv4 connection is the first (only) registration established; other times it is the IPv6 connection.

 

How to I configure Freeswitch to deterministically only attempt one type (my choice of either IPv4 or IPv6) of connection?

 

freeswitch at ip-172-31-33-109.ec2.internal> sofia status

 

                     Name          Type                                       Data      State

=================================================================================================

            external-ipv6       profile                   sip:mod_sofia@[::1]:5080      RUNNING (0)

external-ipv6::switch2voip.us   gateway               sip:XXXXXXXXXX at 66.33.147.150 <mailto:sip%3AXXXXXXXXXX at 66.33.147.150>       REGED

                 external       profile          sip:mod_sofia at 54.174.255.168:5080      RUNNING (0)

external::switch2voip.us       gateway               sip:XXXXXXXXXX at 66.33.147.150 <mailto:sip%3AXXXXXXXXXX at 66.33.147.150>       TRYING (retry: 20s)

            172.31.33.109         alias                                   internal      ALIASED

            internal-ipv6       profile                   sip:mod_sofia@[::1]:5060      RUNNING (0)

                 internal       profile          sip:mod_sofia at 54.174.255.168:5060      RUNNING (0)

=================================================================================================

4 profiles 1 alias

 

freeswitch at ip-172-31-33-109.ec2.internal>

 

Thanks,

 

George

 


_________________________________________________________________________
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





 

-- 

Brian West
brian at freeswitch.org

  <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> 

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T:+19184209001 <tel:%2B19184209001>  | F:+19184209002 <tel:%2B19184209002>  | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest


_________________________________________________________________________
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

 


_________________________________________________________________________
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





 

-- 

Brian West
brian at freeswitch.org

  <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> 

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

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/20150105/9a6acf02/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6528 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150105/9a6acf02/attachment-0001.bin 


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