[asterisk-dev] Defining new section type in sip.conf - question about syntax
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Wed Apr 15 14:27:26 CDT 2009
On Wednesday 15 April 2009 13:38:02 Jared Smith wrote:
> On Wed, 2009-04-15 at 13:19 -0500, Tilghman Lesher wrote:
> > My inclination is also the type method, but I suggest that we make that
> > field a comma-delimited field, such that type=friend is the same as
> > type=user,peer. Additionally, the type could be along the lines of
> > type=peer,domain or whatever syntax makes the most sense.
>
> Well, the problem here is that type=peer means one thing, and that
> type=domain means this section of the configuration file is essentially
> a template of [general] for a domain.
>
> I can't fathom how it would be useful to have them both set on the same
> section. Which is why I'm not a fan of overloading the type= setting in
> first place.
>
> > I'd like to see some discussion about the differences that force the need
> > to use a separate configuration file before we go down that path. If the
> > question is merely one of ease of coding, then I don't think the standard
> > is met.
>
> No, it's all about being able to look at a config file, find the section
> that's relevant to the devices I'm adding/fixing/removing, and grok what
> Asterisk is actually going to do with said config. Having
> "type=peer,domain" seriously complicates that.
I'd still like to see an example structure, before we commit to a separate
configuration file. Right now, all I'm getting is hand-waving, which isn't
helpful in drawing a conclusion.
--
Tilghman
More information about the asterisk-dev
mailing list