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

Kevin P. Fleming kpfleming at digium.com
Tue Apr 14 16:08:45 CDT 2009


Olle E. Johansson wrote:

> I personally favour #1, even though it's not very beautiful. It's used  
> today in Asterisk.

I prefer that as well, although there is of course the risk that the
chosen naming pattern will conflict with actual peer/user entry names
that some user is already using.

There is a third option, not necessarily prettier, but that is to just
create another configuration file (sip_domains.conf or something
similar). The Asterisk configuration mechanism is really only designed
to handle one type of 'object' per configuration file, and even the
example you specified for extensions.conf they are still all the same
type of 'object' (a dialplan context), they just have different semantic
meaning.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list