[asterisk-dev] Defining new section type in sip.conf - question about syntax
Olle E. Johansson
oej at edvina.net
Tue Apr 14 14:47:54 CDT 2009
In sip.conf we currently have
[general]
[authentication]
[<device_name>]
Domains are currently declared in the general section, by using the
domain= setting.
I want to find a way to define settings per domain, that applies as
defaults for devices within that domain. Instead of having only one
set of default settings in the general section, I want to be able to
have multiple default settings. I see two alternatives:
1. Using a prefix
=============
We have a way of defining context/section prefixes, used in the dialplan
[macro_<something>]
I could define
[domain_<someting>]
like
[domain_edvina.net]
2. Using type=
============
[edvina.net]
type=domain
I personally think this is a bit more confusing, as I want these to be
in memory (like the current domain= settings). Using type= something
might suggest that you can use realtime, which I don't want to support
for the domain object, in order to speed up the process of setting up
the device object, which might be in realtime.
I personally favour #1, even though it's not very beautiful. It's used
today in Asterisk.
Any comments, suggestions?
/O
More information about the asterisk-dev
mailing list