[asterisk-dev] Defining new section type in sip.conf - question about syntax

Jared Smith jsmith at digium.com
Wed Apr 15 13:38:02 CDT 2009


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.


-- 
Jared Smith
Training Manager
Digium, Inc.




More information about the asterisk-dev mailing list