[asterisk-dev] port= or bindport= in .conf files ?

Luigi Rizzo rizzo at icir.org
Wed Dec 13 13:47:46 MST 2006


On Wed, Dec 13, 2006 at 02:20:51PM -0500, Marc Blanchet wrote:
> this is also what we did for the IPv6 port:
> 
> bindaddr = 1.2.3.4
> bindaddr = 1.2.3.4:5678
> bindaddr = 3ffe:b00:1:1::1
> bindaddr = [3ffe:b00:1:1::1]:5678

i suppose the [ ] in the latter form are to remove
the ambiguity ?

do you have some kind of parse_addr() routine that i can
use, without having to write it by adapting the various
versions that are in the source tree ?

	cheers
	luigi

> Marc.
> 
> Le 06-12-12 à 12:29, Russell Bryant a écrit :
> 
> > Luigi Rizzo wrote:
> >> Given the above, would people agree to use "bindport" everywhere
> >> to specify a port number for inbound connections, and possibly even
> >> support a port number in bindaddr same as iax.conf does e.g.
> >> 	bindaddr = 1.2.3.4	# use default port for the service
> >> 	bindaddr = 1.2.3.4:5678	# explicit port number
> >> 	bindaddr = :5678	# same as 0.0.0.0:5678
> >> 	bindaddr = *:5678	# same as 0.0.0.0:5678
> >
> > Yes, I think this would be fine as long as the code still supported  
> > whatever the option used to be for the sake of backwards  
> > compatibility with older configuration.
> >
> > -- 
> > Russell Bryant
> > Software Engineer
> > Digium, Inc.
> > <russell.vcf>
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev


More information about the asterisk-dev mailing list